@scalar/api-client 2.3.1 → 2.3.3

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 (41) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/components/DataTable/DataTableHeader.vue.js +9 -9
  3. package/dist/components/DataTable/DataTableRow.vue.d.ts.map +1 -1
  4. package/dist/components/DataTable/DataTableRow.vue.js +8 -8
  5. package/dist/components/Server/ServerDropdown.vue.d.ts.map +1 -1
  6. package/dist/components/Server/ServerDropdown.vue.js +49 -38
  7. package/dist/components/Server/ServerDropdownItem.vue.d.ts.map +1 -1
  8. package/dist/components/Server/ServerDropdownItem.vue.js +1 -1
  9. package/dist/components/Server/ServerDropdownItem.vue2.js +49 -46
  10. package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +7 -7
  11. package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js +3 -3
  12. package/dist/layouts/App/create-api-client-app.d.ts +3 -3
  13. package/dist/layouts/Modal/create-api-client-modal.d.ts +6 -6
  14. package/dist/layouts/Web/create-api-client-web.d.ts +3 -3
  15. package/dist/libs/create-client.d.ts +3 -3
  16. package/dist/libs/create-client.d.ts.map +1 -1
  17. package/dist/libs/create-client.js +50 -50
  18. package/dist/store/active-entities.d.ts.map +1 -1
  19. package/dist/store/active-entities.js +69 -64
  20. package/dist/store/import-spec.d.ts.map +1 -1
  21. package/dist/store/store.d.ts +3 -3
  22. package/dist/style.css +1 -1
  23. package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
  24. package/dist/views/Request/RequestRoot.vue.js +1 -1
  25. package/dist/views/Request/RequestRoot.vue2.js +71 -64
  26. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +1 -1
  27. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +1 -1
  28. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
  29. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +2 -2
  30. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +60 -62
  31. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  32. package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
  33. package/dist/views/Request/RequestSection/RequestTable.vue2.js +120 -96
  34. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
  35. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +1 -1
  36. package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +32 -27
  37. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  38. package/dist/views/Request/RequestSidebar.vue.js +2 -2
  39. package/dist/views/Request/RequestSidebar.vue2.js +142 -141
  40. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  41. package/package.json +10 -10
@@ -1 +1 @@
1
- {"version":3,"file":"RequestRoot.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestRoot.vue"],"names":[],"mappings":";;cA8M8C,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AAiQjE,wBAMG"}
1
+ {"version":3,"file":"RequestRoot.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestRoot.vue"],"names":[],"mappings":";;cAyN8C,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AA+QjE,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestRoot.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1dfc8727"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fb90f3bc"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,96 +1,103 @@
1
- import { defineComponent as W, ref as N, computed as j, onMounted as L, onBeforeUnmount as M, watch as $, openBlock as m, createElementBlock as H, normalizeClass as w, unref as o, createBlock as O, isRef as Q, createCommentVNode as V, createElementVNode as _, createVNode as F } from "vue";
2
- import { isDefined as G } from "@scalar/oas-utils/helpers";
3
- import { safeJSON as K } from "@scalar/object-utils/parse";
4
- import { useToasts as X } from "@scalar/use-toasts";
5
- import { RouterView as Y } from "vue-router";
6
- import Z from "../../components/Sidebar/SidebarToggle.vue.js";
7
- import { useSidebar as ee } from "../../hooks/useSidebar.js";
8
- import { validateParameters as te } from "../../libs/validate-parameters.js";
9
- import { useActiveEntities as oe } from "../../store/active-entities.js";
10
- import { useOpenApiWatcher as re } from "./hooks/useOpenApiWatcher.js";
11
- import se from "./RequestSidebar.vue.js";
12
- import { createRequestOperation as ae } from "../../libs/send-request/create-request-operation.js";
13
- import { ERRORS as le } from "../../libs/errors.js";
14
- import { useWorkspace as ne } from "../../store/store.js";
1
+ import { defineComponent as L, ref as f, computed as M, onMounted as w, onBeforeUnmount as $, watch as H, openBlock as d, createElementBlock as Q, normalizeClass as O, unref as o, createBlock as V, isRef as F, createCommentVNode as U, createElementVNode as C, createVNode as G } from "vue";
2
+ import { isDefined as K } from "@scalar/oas-utils/helpers";
3
+ import { safeJSON as X } from "@scalar/object-utils/parse";
4
+ import { useToasts as Y } from "@scalar/use-toasts";
5
+ import { RouterView as Z } from "vue-router";
6
+ import ee from "../../components/Sidebar/SidebarToggle.vue.js";
7
+ import { useSidebar as te } from "../../hooks/useSidebar.js";
8
+ import { validateParameters as oe } from "../../libs/validate-parameters.js";
9
+ import { useActiveEntities as re } from "../../store/active-entities.js";
10
+ import { useOpenApiWatcher as se } from "./hooks/useOpenApiWatcher.js";
11
+ import ae from "./RequestSidebar.vue.js";
12
+ import { createRequestOperation as le } from "../../libs/send-request/create-request-operation.js";
13
+ import { ERRORS as ne } from "../../libs/errors.js";
14
+ import { useWorkspace as ue } from "../../store/store.js";
15
15
  import { useLayout as ie } from "../../hooks/useLayout.js";
16
- const ue = { class: "flex h-full" }, ce = { class: "flex h-full flex-1 flex-col" }, Oe = /* @__PURE__ */ W({
16
+ const ce = { class: "flex h-full" }, me = { class: "flex h-full flex-1 flex-col" }, Oe = /* @__PURE__ */ L({
17
17
  __name: "RequestRoot",
18
18
  emits: ["newTab"],
19
- setup(me) {
20
- const U = ne(), { toast: f } = X(), { layout: n } = ie(), {
21
- activeCollection: i,
22
- activeExample: a,
23
- activeEnvironment: d,
24
- activeRequest: u,
25
- activeWorkspace: v,
26
- activeServer: C
27
- } = oe(), { cookies: T, requestHistory: g, showSidebar: p, securitySchemes: A, events: l } = U, { isSidebarOpen: r } = ee(), S = N(), c = N(/* @__PURE__ */ new Set()), B = j(
19
+ setup(fe) {
20
+ const T = ue(), { toast: v } = Y(), { layout: a } = ie(), {
21
+ activeCollection: u,
22
+ activeExample: l,
23
+ activeEnvironment: p,
24
+ activeRequest: i,
25
+ activeWorkspace: S,
26
+ activeServer: g
27
+ } = re(), { cookies: A, requestHistory: B, showSidebar: R, securitySchemes: D, events: n } = T, { isSidebarOpen: r } = te(), c = f(), b = f(), m = f(/* @__PURE__ */ new Set()), P = M(
28
28
  () => {
29
29
  var e, t;
30
- return (n === "modal" ? (e = i.value) == null ? void 0 : e.selectedSecuritySchemeUids : (t = u.value) == null ? void 0 : t.selectedSecuritySchemeUids) ?? [];
30
+ return (a === "modal" ? (e = u.value) == null ? void 0 : e.selectedSecuritySchemeUids : (t = i.value) == null ? void 0 : t.selectedSecuritySchemeUids) ?? [];
31
31
  }
32
- ), R = async () => {
33
- var q, h, E, k;
34
- if (!u.value || !a.value || !i.value)
32
+ ), x = async () => {
33
+ var k, E, N, _;
34
+ if (!i.value || !l.value || !u.value)
35
35
  return;
36
- c.value = te(a.value);
37
- const e = typeof d.value == "object" ? d.value.value : "{}", t = K.parse(e);
36
+ m.value = oe(l.value);
37
+ const e = typeof p.value == "object" ? p.value.value : "{}", t = X.parse(e);
38
38
  t.error && console.error("INVALID ENVIRONMENT!");
39
- const s = t.error || typeof t.data != "object" ? {} : t.data ?? {}, P = ((q = v.value) == null ? void 0 : q.cookies.map((J) => T[J]).filter(G)) ?? [], z = ((E = (h = i.value) == null ? void 0 : h.info) == null ? void 0 : E.title) === "Drafts" ? void 0 : C.value, [x, b] = ae({
40
- request: u.value,
41
- example: a.value,
42
- selectedSecuritySchemeUids: B.value,
43
- proxyUrl: ((k = v.value) == null ? void 0 : k.proxyUrl) ?? "",
39
+ const s = t.error || typeof t.data != "object" ? {} : t.data ?? {}, I = ((k = S.value) == null ? void 0 : k.cookies.map((j) => A[j]).filter(K)) ?? [], J = ((N = (E = u.value) == null ? void 0 : E.info) == null ? void 0 : N.title) === "Drafts" ? void 0 : g.value, [y, q] = le({
40
+ request: i.value,
41
+ example: l.value,
42
+ selectedSecuritySchemeUids: P.value,
43
+ proxyUrl: ((_ = S.value) == null ? void 0 : _.proxyUrl) ?? "",
44
44
  environment: s,
45
- globalCookies: P,
46
- status: l.requestStatus,
47
- securitySchemes: A,
48
- server: z
45
+ globalCookies: I,
46
+ status: n.requestStatus,
47
+ securitySchemes: D,
48
+ server: J
49
49
  });
50
- if (x) {
51
- f(x.message, "error");
50
+ if (y) {
51
+ v(y.message, "error");
52
52
  return;
53
53
  }
54
- S.value = b.controller;
55
- const [y, I] = await b.sendRequest();
56
- y ? f(y.message, "error") : g.push(JSON.parse(JSON.stringify(I)));
57
- }, D = async () => {
54
+ b.value = q.controller;
55
+ const [h, W] = await q.sendRequest();
56
+ h ? v(h.message, "error") : B.push(JSON.parse(JSON.stringify(W)));
57
+ }, z = async () => {
58
58
  var e;
59
- return (e = S.value) == null ? void 0 : e.abort(le.REQUEST_ABORTED);
59
+ return (e = b.value) == null ? void 0 : e.abort(ne.REQUEST_ABORTED);
60
60
  };
61
- return L(() => {
62
- l.executeRequest.on(R), l.cancelRequest.on(D);
63
- }), re(), M(() => l.executeRequest.off(R)), $(
61
+ return w(() => {
62
+ n.executeRequest.on(x), n.cancelRequest.on(z);
63
+ }), w(() => {
64
+ if (c.value && a === "modal") {
65
+ const e = c.value.querySelector("button");
66
+ e && e.focus();
67
+ }
68
+ }), se(), $(() => n.executeRequest.off(x)), H(
64
69
  () => {
65
70
  var e;
66
- return (e = a.value) == null ? void 0 : e.parameters;
71
+ return (e = l.value) == null ? void 0 : e.parameters;
67
72
  },
68
73
  () => {
69
- c.value.clear();
74
+ m.value.clear();
70
75
  },
71
76
  { deep: !0 }
72
- ), (e, t) => (m(), H("div", {
73
- class: w(["bg-b-1 relative z-0 flex h-full flex-1 flex-col overflow-hidden pt-0", {
74
- "!mb-0 !mr-0 !border-0": o(n) === "modal"
77
+ ), (e, t) => (d(), Q("div", {
78
+ ref_key: "element",
79
+ ref: c,
80
+ class: O(["bg-b-1 relative z-0 flex h-full flex-1 flex-col overflow-hidden pt-0", {
81
+ "!mb-0 !mr-0 !border-0": o(a) === "modal"
75
82
  }])
76
83
  }, [
77
- o(p) ? (m(), O(Z, {
84
+ o(R) ? (d(), V(ee, {
78
85
  key: 0,
79
86
  modelValue: o(r),
80
- "onUpdate:modelValue": t[0] || (t[0] = (s) => Q(r) ? r.value = s : null),
81
- class: w(["absolute left-3 top-2 z-50", [
87
+ "onUpdate:modelValue": t[0] || (t[0] = (s) => F(r) ? r.value = s : null),
88
+ class: O(["absolute left-3 top-2 z-50", [
82
89
  { hidden: o(r) },
83
90
  { "xl:!flex": !o(r) },
84
- { "!flex": o(n) === "modal" }
91
+ { "!flex": o(a) === "modal" }
85
92
  ]])
86
- }, null, 8, ["modelValue", "class"])) : V("", !0),
87
- _("div", ue, [
88
- o(p) ? (m(), O(se, {
93
+ }, null, 8, ["modelValue", "class"])) : U("", !0),
94
+ C("div", ce, [
95
+ o(R) ? (d(), V(ae, {
89
96
  key: 0,
90
97
  onNewTab: t[1] || (t[1] = (s) => e.$emit("newTab", s))
91
- })) : V("", !0),
92
- _("div", ce, [
93
- F(o(Y), { invalidParams: c.value }, null, 8, ["invalidParams"])
98
+ })) : U("", !0),
99
+ C("div", me, [
100
+ G(o(Z), { invalidParams: m.value }, null, 8, ["invalidParams"])
94
101
  ])
95
102
  ])
96
103
  ], 2));
@@ -218,7 +218,7 @@ const I = { class: "flex h-8 items-center justify-self-end" }, A = { class: "bor
218
218
  default: o(() => [
219
219
  $("div", A, [
220
220
  a(r(b), {
221
- class: "mr-1 p-0 px-2 py-0.5",
221
+ class: "mr-0.75 p-0 px-2 py-0.5",
222
222
  loading: r(y),
223
223
  size: "sm",
224
224
  variant: "outlined",
@@ -49,7 +49,7 @@ const z = { class: "flex h-fit w-full" }, E = { class: "flex-1" }, F = {
49
49
  return [
50
50
  n(t(B), {
51
51
  class: b([
52
- "group/scopes-accordion hover:text-c-1 flex h-auto min-h-8 cursor-pointer items-center gap-1.5 pl-3 pr-2.5 text-left",
52
+ "group/scopes-accordion hover:text-c-1 pr-2.25 flex h-auto min-h-8 cursor-pointer items-center gap-1.5 pl-3 text-left",
53
53
  (((h = (s = e.flow) == null ? void 0 : s.selectedScopes) == null ? void 0 : h.length) || 0) > 0 ? "text-c-1" : "text-c-3"
54
54
  ])
55
55
  }, {
@@ -1 +1 @@
1
- {"version":3,"file":"RequestAuthTab.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue"],"names":[],"mappings":"AAwPA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EAEV,MAAM,EACP,MAAM,iCAAiC,CAAA;AAKxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAQ1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,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;;AA0aF,wBAMG"}
1
+ {"version":3,"file":"RequestAuthTab.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue"],"names":[],"mappings":"AA6PA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EAEV,MAAM,EACP,MAAM,iCAAiC,CAAA;AAKxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAQ1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,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;;AA0aF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import t from "./RequestAuthTab.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-be1373d0"]]);
4
+ const f = /* @__PURE__ */ o(t, [["__scopeId", "data-v-fc488741"]]);
5
5
  export {
6
- m as default
6
+ f as default
7
7
  };
@@ -1,16 +1,16 @@
1
- import { defineComponent as N, computed as P, ref as j, openBlock as o, createElementBlock as n, Fragment as p, renderList as U, createBlock as _, unref as d, normalizeClass as C, withCtx as l, createVNode as u, createTextVNode as y, toDisplayString as g, createCommentVNode as b, mergeProps as V, createElementVNode as T, capitalize as c } from "vue";
2
- import { useWorkspace as q } from "../../../../store/store.js";
3
- import R from "./OAuth2.vue.js";
1
+ import { defineComponent as F, computed as N, ref as P, openBlock as a, createElementBlock as n, Fragment as p, renderList as U, createBlock as x, unref as d, normalizeClass as C, withCtx as l, createVNode as u, createTextVNode as y, toDisplayString as m, createCommentVNode as v, mergeProps as V, createElementVNode as T, capitalize as _ } from "vue";
2
+ import { useWorkspace as j } from "../../../../store/store.js";
3
+ import q from "./OAuth2.vue.js";
4
4
  import w from "./RequestAuthDataTableInput.vue.js";
5
5
  import s from "../../../../components/DataTable/DataTableRow.vue.js";
6
6
  import S from "../../../../components/DataTable/DataTableCell.vue.js";
7
- const z = {
7
+ const R = {
8
8
  key: 0,
9
9
  class: "flex min-h-8 border-t text-sm"
10
- }, M = { class: "flex h-8 max-w-full gap-2.5 overflow-x-auto px-3" }, Q = ["onClick"], D = { class: "relative z-10" }, E = {
10
+ }, z = { class: "flex h-8 max-w-full gap-2.5 overflow-x-auto px-3" }, L = ["onClick"], M = { class: "relative z-10" }, Q = {
11
11
  key: 5,
12
12
  class: "text-c-3 bg-b-1 flex min-h-16 items-center justify-center border-t px-4 text-sm"
13
- }, X = /* @__PURE__ */ N({
13
+ }, J = /* @__PURE__ */ F({
14
14
  __name: "RequestAuthTab",
15
15
  props: {
16
16
  collection: {},
@@ -21,28 +21,29 @@ const z = {
21
21
  server: {},
22
22
  workspace: {}
23
23
  },
24
- setup(m) {
25
- const { securitySchemes: B, securitySchemeMutators: I } = q(), $ = P(
26
- () => m.securitySchemeUids.map((t) => ({
24
+ setup(c) {
25
+ const { securitySchemes: B, securitySchemeMutators: I } = j(), g = N(
26
+ () => c.securitySchemeUids.map((t) => ({
27
27
  scheme: B[t]
28
28
  }))
29
- ), i = j(""), K = (t) => {
29
+ ), i = P(""), K = (t) => {
30
+ const r = t.description ? `: ${t.description}` : "", e = `${_(t.nameKey)}${r || `: ${t.type}`}`;
30
31
  if (t.type === "apiKey")
31
- return `${c(t.nameKey)}: ${t.in}`;
32
+ return `${_(t.nameKey)}${r || `: ${t.in}`}`;
32
33
  if (t.type === "oauth2") {
33
- const r = Object.values(t.flows ?? {})[0];
34
- return `${c(t.nameKey)}: ${i.value ? i.value : (r == null ? void 0 : r.type) ?? ""}`;
34
+ const o = Object.values(t.flows ?? {})[0];
35
+ return `${_(t.nameKey)}: ${i.value ? i.value : (o == null ? void 0 : o.type) ?? ""}${r}`;
35
36
  }
36
- return t.type === "http" ? `${c(t.nameKey)}: ${t.scheme}` : `${c(t.nameKey)}: ${t.type}`;
37
- }, k = (t, r, e) => I.edit(t, r, e), v = {
38
- environment: m.environment,
39
- envVariables: m.envVariables,
40
- workspace: m.workspace
37
+ return t.type === "http" ? `${_(t.nameKey)}: ${t.scheme}${r}` : `${e}${r}`;
38
+ }, k = (t, r, e) => I.edit(t, r, e), b = {
39
+ environment: c.environment,
40
+ envVariables: c.envVariables,
41
+ workspace: c.workspace
41
42
  };
42
- return (t, r) => (o(!0), n(p, null, U($.value, ({ scheme: e }, F) => (o(), n(p, {
43
+ return (t, r) => (a(!0), n(p, null, U(g.value, ({ scheme: e }) => (a(), n(p, {
43
44
  key: e == null ? void 0 : e.uid
44
45
  }, [
45
- $.value.length > 1 ? (o(), _(d(s), {
46
+ g.value.length > 1 ? (a(), x(d(s), {
46
47
  key: 0,
47
48
  class: C({
48
49
  "request-example-references-header": t.layout === "reference"
@@ -50,39 +51,36 @@ const z = {
50
51
  }, {
51
52
  default: l(() => [
52
53
  u(d(S), {
53
- class: C([
54
- "text-c-3 flex items-center pl-3 font-medium",
55
- t.layout === "reference" && `border-t ${F !== 0 ? "mt-2" : ""}`
56
- ])
54
+ class: C(["auth-bg-description text-c-2 flex items-center pl-3", t.layout === "reference" && "border-b"])
57
55
  }, {
58
56
  default: l(() => [
59
- y(g(K(e)), 1)
57
+ y(m(K(e)), 1)
60
58
  ]),
61
59
  _: 2
62
60
  }, 1032, ["class"])
63
61
  ]),
64
62
  _: 2
65
- }, 1032, ["class"])) : b("", !0),
66
- e != null && e.description ? (o(), _(d(s), { key: 1 }, {
63
+ }, 1032, ["class"])) : v("", !0),
64
+ e != null && e.description && g.value.length <= 1 ? (a(), x(d(s), { key: 1 }, {
67
65
  default: l(() => [
68
- u(d(S), { class: "text-c-3 flex items-center overflow-auto whitespace-nowrap pl-3 font-medium" }, {
66
+ u(d(S), { class: "auth-bg-description text-c-2 flex items-center overflow-auto whitespace-nowrap pl-3" }, {
69
67
  default: l(() => [
70
- y(g(e.description), 1)
68
+ y(m(e.description), 1)
71
69
  ]),
72
70
  _: 2
73
71
  }, 1024)
74
72
  ]),
75
73
  _: 2
76
- }, 1024)) : b("", !0),
77
- (e == null ? void 0 : e.type) === "http" ? (o(), n(p, { key: 2 }, [
78
- e.scheme === "bearer" ? (o(), _(d(s), { key: 0 }, {
74
+ }, 1024)) : v("", !0),
75
+ (e == null ? void 0 : e.type) === "http" ? (a(), n(p, { key: 2 }, [
76
+ e.scheme === "bearer" ? (a(), x(d(s), { key: 0 }, {
79
77
  default: l(() => [
80
- u(w, V({ ref_for: !0 }, v, {
78
+ u(w, V({ ref_for: !0 }, b, {
81
79
  containerClass: t.layout === "reference" && "border-t",
82
80
  modelValue: e.token,
83
81
  placeholder: "Token",
84
82
  type: "password",
85
- "onUpdate:modelValue": (a) => k(e.uid, "token", a)
83
+ "onUpdate:modelValue": (o) => k(e.uid, "token", o)
86
84
  }), {
87
85
  default: l(() => r[0] || (r[0] = [
88
86
  y(" Bearer Token ")
@@ -91,16 +89,16 @@ const z = {
91
89
  }, 1040, ["containerClass", "modelValue", "onUpdate:modelValue"])
92
90
  ]),
93
91
  _: 2
94
- }, 1024)) : (e == null ? void 0 : e.scheme) === "basic" ? (o(), n(p, { key: 1 }, [
92
+ }, 1024)) : (e == null ? void 0 : e.scheme) === "basic" ? (a(), n(p, { key: 1 }, [
95
93
  u(d(s), null, {
96
94
  default: l(() => [
97
- u(w, V({ ref_for: !0 }, v, {
95
+ u(w, V({ ref_for: !0 }, b, {
98
96
  class: "text-c-2",
99
97
  containerClass: t.layout === "reference" && "auth-blend-required border-t",
100
98
  modelValue: e.username,
101
99
  placeholder: "janedoe",
102
100
  required: "",
103
- "onUpdate:modelValue": (a) => k(e.uid, "username", a)
101
+ "onUpdate:modelValue": (o) => k(e.uid, "username", o)
104
102
  }), {
105
103
  default: l(() => r[1] || (r[1] = [
106
104
  y(" Username ")
@@ -112,11 +110,11 @@ const z = {
112
110
  }, 1024),
113
111
  u(d(s), null, {
114
112
  default: l(() => [
115
- u(w, V({ ref_for: !0 }, v, {
113
+ u(w, V({ ref_for: !0 }, b, {
116
114
  modelValue: e.password,
117
115
  placeholder: "********",
118
116
  type: "password",
119
- "onUpdate:modelValue": (a) => k(e.uid, "password", a)
117
+ "onUpdate:modelValue": (o) => k(e.uid, "password", o)
120
118
  }), {
121
119
  default: l(() => r[2] || (r[2] = [
122
120
  y(" Password ")
@@ -126,15 +124,15 @@ const z = {
126
124
  ]),
127
125
  _: 2
128
126
  }, 1024)
129
- ], 64)) : b("", !0)
130
- ], 64)) : (e == null ? void 0 : e.type) === "apiKey" ? (o(), n(p, { key: 3 }, [
127
+ ], 64)) : v("", !0)
128
+ ], 64)) : (e == null ? void 0 : e.type) === "apiKey" ? (a(), n(p, { key: 3 }, [
131
129
  u(d(s), null, {
132
130
  default: l(() => [
133
- u(w, V({ ref_for: !0 }, v, {
131
+ u(w, V({ ref_for: !0 }, b, {
134
132
  containerClass: t.layout === "reference" && "border-t",
135
133
  modelValue: e.name,
136
134
  placeholder: "api-key",
137
- "onUpdate:modelValue": (a) => k(e.uid, "name", a)
135
+ "onUpdate:modelValue": (o) => k(e.uid, "name", o)
138
136
  }), {
139
137
  default: l(() => r[3] || (r[3] = [
140
138
  y(" Name ")
@@ -146,10 +144,10 @@ const z = {
146
144
  }, 1024),
147
145
  u(d(s), null, {
148
146
  default: l(() => [
149
- u(w, V({ ref_for: !0 }, v, {
147
+ u(w, V({ ref_for: !0 }, b, {
150
148
  modelValue: e.value,
151
149
  placeholder: "QUxMIFlPVVIgQkFTRSBBUkUgQkVMT05HIFRPIFVT",
152
- "onUpdate:modelValue": (a) => k(e.uid, "value", a)
150
+ "onUpdate:modelValue": (o) => k(e.uid, "value", o)
153
151
  }), {
154
152
  default: l(() => r[4] || (r[4] = [
155
153
  y(" Value ")
@@ -159,43 +157,43 @@ const z = {
159
157
  ]),
160
158
  _: 2
161
159
  }, 1024)
162
- ], 64)) : (e == null ? void 0 : e.type) === "oauth2" ? (o(), n(p, { key: 4 }, [
160
+ ], 64)) : (e == null ? void 0 : e.type) === "oauth2" ? (a(), n(p, { key: 4 }, [
163
161
  u(d(s), null, {
164
162
  default: l(() => [
165
- Object.keys(e.flows).length > 1 ? (o(), n("div", z, [
166
- T("div", M, [
167
- (o(!0), n(p, null, U(e == null ? void 0 : e.flows, (a, f, x) => (o(), n("button", {
163
+ Object.keys(e.flows).length > 1 ? (a(), n("div", R, [
164
+ T("div", z, [
165
+ (a(!0), n(p, null, U(e == null ? void 0 : e.flows, (o, f, $) => (a(), n("button", {
168
166
  key: f,
169
167
  class: C(["floating-bg text-c-3 relative cursor-pointer border-b-[1px] border-transparent py-1 text-sm font-medium", {
170
- "!text-c-1 !rounded-none border-b-[1px] !border-current": t.layout !== "reference" && (i.value === f || x === 0 && !i.value),
171
- "!text-c-1 !rounded-none border-b-[1px] !border-current opacity-100": t.layout === "reference" && (i.value === f || x === 0 && !i.value)
168
+ "!text-c-1 !rounded-none border-b-[1px] !border-current": t.layout !== "reference" && (i.value === f || $ === 0 && !i.value),
169
+ "!text-c-1 !rounded-none border-b-[1px] !border-current opacity-100": t.layout === "reference" && (i.value === f || $ === 0 && !i.value)
172
170
  }]),
173
171
  type: "button",
174
- onClick: (L) => i.value = f
172
+ onClick: (D) => i.value = f
175
173
  }, [
176
- T("span", D, g(f), 1)
177
- ], 10, Q))), 128))
174
+ T("span", M, m(f), 1)
175
+ ], 10, L))), 128))
178
176
  ])
179
- ])) : b("", !0)
177
+ ])) : v("", !0)
180
178
  ]),
181
179
  _: 2
182
180
  }, 1024),
183
- (o(!0), n(p, null, U(e == null ? void 0 : e.flows, (a, f, x) => (o(), n(p, { key: f }, [
184
- i.value === f || x === 0 && !i.value ? (o(), _(R, V({
181
+ (a(!0), n(p, null, U(e == null ? void 0 : e.flows, (o, f, $) => (a(), n(p, { key: f }, [
182
+ i.value === f || $ === 0 && !i.value ? (a(), x(q, V({
185
183
  key: 0,
186
184
  ref_for: !0
187
- }, v, {
185
+ }, b, {
188
186
  collection: t.collection,
189
- flow: a,
187
+ flow: o,
190
188
  scheme: e,
191
189
  server: t.server,
192
190
  workspace: t.workspace
193
- }), null, 16, ["collection", "flow", "scheme", "server", "workspace"])) : b("", !0)
191
+ }), null, 16, ["collection", "flow", "scheme", "server", "workspace"])) : v("", !0)
194
192
  ], 64))), 128))
195
- ], 64)) : (e == null ? void 0 : e.type) === "openIdConnect" ? (o(), n("div", E, " Coming soon ")) : b("", !0)
193
+ ], 64)) : (e == null ? void 0 : e.type) === "openIdConnect" ? (a(), n("div", Q, " Coming soon ")) : v("", !0)
196
194
  ], 64))), 128));
197
195
  }
198
196
  });
199
197
  export {
200
- X as default
198
+ J as default
201
199
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RequestTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTable.vue"],"names":[],"mappings":"AAmPA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAOlD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAO1D,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,CAAC,uBAAuB,GAAG;QAAE,KAAK,CAAC,EAAE,gBAAgB,CAAA;KAAE,CAAC,EAAE,CAAA;IAClE,8BAA8B;IAC9B,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;IACpB,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAC5B,CAAC;;;;;;;;;;;;;;;;;;;;yBARsB,OAAO;sBACV,OAAO;cACf,OAAO;gBACL,OAAO;;AA6exB,wBASG"}
1
+ {"version":3,"file":"RequestTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTable.vue"],"names":[],"mappings":"AAyPA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAQlD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAO1D,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,CAAC,uBAAuB,GAAG;QAAE,KAAK,CAAC,EAAE,gBAAgB,CAAA;KAAE,CAAC,EAAE,CAAA;IAClE,8BAA8B;IAC9B,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;IACpB,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CAC5B,CAAC;;;;;;;;;;;;;;;;;;;;yBARsB,OAAO;sBACV,OAAO;cACf,OAAO;gBACL,OAAO;;AA+gBxB,wBASG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./RequestTable.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-cabdb6a1"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7f27d2f7"]]);
5
5
  export {
6
- m as default
6
+ a as default
7
7
  };