@scalar/api-client 2.2.12 → 2.2.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,49 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.2.16
4
+
5
+ ### Patch Changes
6
+
7
+ - 875a04a: fix: path params missing from client
8
+
9
+ ## 2.2.15
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [c263aaf]
14
+ - Updated dependencies [573d113]
15
+ - Updated dependencies [c263aaf]
16
+ - @scalar/types@0.0.25
17
+ - @scalar/oas-utils@0.2.90
18
+ - @scalar/openapi-parser@0.10.1
19
+ - @scalar/themes@0.9.57
20
+ - @scalar/import@0.2.9
21
+ - @scalar/postman-to-openapi@0.1.13
22
+ - @scalar/components@0.13.7
23
+ - @scalar/use-hooks@0.1.10
24
+ - @scalar/use-codemirror@0.11.51
25
+
26
+ ## 2.2.14
27
+
28
+ ### Patch Changes
29
+
30
+ - 984e394: fix: hides flow row for unique scheme flow
31
+ - 40ec239: fix: updates address bar servers dropdown display logic
32
+
33
+ ## 2.2.13
34
+
35
+ ### Patch Changes
36
+
37
+ - 23daedd: feat(components): create ScalarHeader component
38
+ - Updated dependencies [23daedd]
39
+ - @scalar/components@0.13.6
40
+ - @scalar/themes@0.9.56
41
+ - @scalar/use-codemirror@0.11.50
42
+ - @scalar/oas-utils@0.2.89
43
+ - @scalar/use-hooks@0.1.9
44
+ - @scalar/import@0.2.8
45
+ - @scalar/postman-to-openapi@0.1.12
46
+
3
47
  ## 2.2.12
4
48
 
5
49
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBar.vue"],"names":[],"mappings":";;;;;AAswBA,wBAMG"}
1
+ {"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBar.vue"],"names":[],"mappings":";;;;;AAuxBA,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./AddressBar.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-455b0236"]]);
4
+ const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-cb8f6677"]]);
5
5
  export {
6
- m as default
6
+ f as default
7
7
  };
@@ -1,154 +1,157 @@
1
- import { defineComponent as H, ref as u, watch as L, onMounted as z, onBeforeUnmount as A, unref as a, openBlock as K, createElementBlock as O, createElementVNode as o, createVNode as n, withCtx as w, normalizeClass as y, normalizeStyle as N, createCommentVNode as T } from "vue";
2
- import $ from "../CodeInput/CodeInput.vue.js";
3
- import { useActiveEntities as P } from "../../store/active-entities.js";
4
- import { Listbox as D } from "@headlessui/vue";
5
- import { ScalarButton as Q, ScalarIcon as W } from "@scalar/components";
6
- import { REQUEST_METHODS as j } from "@scalar/oas-utils/helpers";
7
- import { isMacOS as F } from "@scalar/use-tooltip";
8
- import { useMagicKeys as G, whenever as J } from "@vueuse/core";
9
- import X from "../HttpMethod/HttpMethod.vue.js";
10
- import Y from "./AddressBarHistory.vue.js";
11
- import Z from "./AddressBarServer.vue.js";
12
- import { useWorkspace as ee } from "../../store/store.js";
13
- const te = {
1
+ import { defineComponent as $, ref as i, watch as P, onMounted as D, onBeforeUnmount as Q, unref as o, openBlock as q, createElementBlock as W, createElementVNode as r, createVNode as u, withCtx as B, normalizeClass as E, normalizeStyle as j, createBlock as F, createCommentVNode as S } from "vue";
2
+ import G from "../CodeInput/CodeInput.vue.js";
3
+ import { useActiveEntities as J } from "../../store/active-entities.js";
4
+ import { Listbox as X } from "@headlessui/vue";
5
+ import { ScalarButton as Y, ScalarIcon as Z } from "@scalar/components";
6
+ import { REQUEST_METHODS as ee } from "@scalar/oas-utils/helpers";
7
+ import { isMacOS as te } from "@scalar/use-tooltip";
8
+ import { useMagicKeys as le, whenever as oe } from "@vueuse/core";
9
+ import re from "../HttpMethod/HttpMethod.vue.js";
10
+ import ae from "./AddressBarHistory.vue.js";
11
+ import se from "./AddressBarServer.vue.js";
12
+ import { useWorkspace as ne } from "../../store/store.js";
13
+ const ie = {
14
14
  key: 0,
15
15
  class: "order-last lg:order-none lg:w-auto w-full"
16
- }, le = { class: "m-auto flex flex-row items-center" }, oe = { class: "pointer-events-none absolute left-0 top-0 block h-full w-full overflow-hidden" }, ae = { class: "flex gap-1" }, re = { class: "codemirror-bg-switcher scroll-timeline-x scroll-timeline-x-hidden relative flex w-full" }, se = {
16
+ }, ue = { class: "m-auto flex flex-row items-center" }, de = { class: "pointer-events-none absolute left-0 top-0 block h-full w-full overflow-hidden" }, fe = { class: "flex gap-1" }, me = { class: "codemirror-bg-switcher scroll-timeline-x scroll-timeline-x-hidden relative flex w-full" }, ce = {
17
17
  "aria-hidden": "true",
18
18
  class: "inline-flex gap-1 items-center"
19
- }, we = /* @__PURE__ */ H({
19
+ }, Be = /* @__PURE__ */ $({
20
20
  __name: "AddressBar",
21
21
  emits: ["importCurl"],
22
- setup(ne) {
23
- const { activeRequest: l, activeExample: C, activeServer: _ } = P(), { isReadOnly: c, requestMutators: m, requestHistory: R, events: d } = ee(), v = u(R[0]), p = u(null), x = G();
24
- J(
25
- F() ? x.meta_enter : x.ctrl_enter,
22
+ setup(ve) {
23
+ const { activeRequest: l, activeExample: V, activeServer: M, activeCollection: c } = J(), { isReadOnly: v, requestMutators: m, requestHistory: I, events: d } = ne(), p = i(I[0]), x = i(null), h = le();
24
+ oe(
25
+ te() ? h.meta_enter : h.ctrl_enter,
26
26
  () => d.executeRequest.emit()
27
27
  );
28
- const k = (e) => {
28
+ const U = (e) => {
29
29
  !l.value || l.value.path === e || m.edit(l.value.uid, "path", e);
30
30
  };
31
- L(
31
+ P(
32
32
  () => {
33
33
  var e;
34
34
  return (e = l.value) == null ? void 0 : e.path;
35
35
  },
36
36
  (e) => {
37
- !l.value || !e || k(e);
37
+ !l.value || !e || U(e);
38
38
  }
39
39
  );
40
- const r = u(100), h = u(0), s = u(!1), i = u();
41
- function q() {
42
- s.value ? r.value -= (r.value - 15) / 60 : r.value -= h.value / 20, r.value <= 0 && (clearInterval(i.value), i.value = void 0, r.value = 100, s.value = !1);
40
+ const a = i(100), b = i(0), s = i(!1), n = i();
41
+ function H() {
42
+ s.value ? a.value -= (a.value - 15) / 60 : a.value -= b.value / 20, a.value <= 0 && (clearInterval(n.value), n.value = void 0, a.value = 100, s.value = !1);
43
43
  }
44
- function B() {
45
- i.value || (s.value = !0, i.value = setInterval(q, 20));
44
+ function L() {
45
+ n.value || (s.value = !0, n.value = setInterval(H, 20));
46
46
  }
47
- function E() {
48
- h.value = r.value, s.value = !1;
47
+ function z() {
48
+ b.value = a.value, s.value = !1;
49
49
  }
50
- function S() {
51
- clearInterval(i.value), i.value = void 0, r.value = 100, s.value = !1;
50
+ function A() {
51
+ clearInterval(n.value), n.value = void 0, a.value = 100, s.value = !1;
52
52
  }
53
53
  d.requestStatus.on((e) => {
54
- e === "start" && B(), e === "stop" && E(), e === "abort" && S();
54
+ e === "start" && L(), e === "stop" && z(), e === "abort" && A();
55
55
  });
56
- function V(e) {
56
+ function K(e) {
57
57
  l.value && m.edit(l.value.uid, "method", e);
58
58
  }
59
- function M() {
59
+ function O() {
60
60
  if (!l.value) return;
61
61
  const { method: e } = l.value;
62
- return j[e].backgroundColor;
62
+ return ee[e].backgroundColor;
63
63
  }
64
- function b() {
64
+ function g() {
65
65
  s.value || (s.value = !0, d.executeRequest.emit());
66
66
  }
67
- function I(e) {
67
+ function N(e) {
68
68
  l.value && m.edit(l.value.uid, "path", e);
69
69
  }
70
- function g(e) {
70
+ function w(e) {
71
71
  var t;
72
- e != null && e.focusAddressBar && ((t = p.value) == null || t.focus());
72
+ e != null && e.focusAddressBar && ((t = x.value) == null || t.focus());
73
73
  }
74
- return z(() => d.hotKeys.on(g)), A(() => d.hotKeys.off(g)), (e, t) => a(l) && a(C) ? (K(), O("div", te, [
75
- o("div", le, [
76
- n(a(D), {
77
- modelValue: v.value,
78
- "onUpdate:modelValue": t[1] || (t[1] = (f) => v.value = f)
74
+ return D(() => d.hotKeys.on(w)), Q(() => d.hotKeys.off(w)), (e, t) => o(l) && o(V) ? (q(), W("div", ie, [
75
+ r("div", ue, [
76
+ u(o(X), {
77
+ modelValue: p.value,
78
+ "onUpdate:modelValue": t[1] || (t[1] = (f) => p.value = f)
79
79
  }, {
80
- default: w(({ open: f }) => [
81
- o("div", {
82
- class: y([
83
- "addressbar-bg-states text-xxs relative flex w-full xl:min-w-[720px] xl:max-w-[720px] lg:min-w-[580px] lg:max-w-[580px] order-last overflow-hidden lg:order-none flex-1 flex-row items-stretch rounded-lg border-1/2 p-[3px]",
84
- { "border-transparent overflow-visible rounded-b-none": f }
85
- ])
86
- }, [
87
- o("div", oe, [
88
- o("div", {
89
- class: y(["bg-mix-transparent bg-mix-amount-90 absolute left-0 top-0 h-full w-full z-context", M()]),
90
- style: N({ transform: `translate3d(-${r.value}%,0,0)` })
91
- }, null, 6)
92
- ]),
93
- o("div", ae, [
94
- n(X, {
95
- isEditable: !a(c),
96
- isSquare: "",
97
- method: a(l).method,
98
- teleport: "",
99
- onChange: V
100
- }, null, 8, ["isEditable", "method"])
101
- ]),
102
- o("div", re, [
103
- t[2] || (t[2] = o("div", { class: "fade-left" }, null, -1)),
104
- n(Z),
105
- n($, {
106
- ref_key: "addressBarRef",
107
- ref: p,
108
- "aria-label": "Path",
109
- class: "outline-none",
110
- disableCloseBrackets: "",
111
- disabled: a(c),
112
- disableEnter: "",
113
- disableTabIndent: "",
114
- emitOnBlur: !1,
115
- importCurl: "",
116
- modelValue: a(l).path,
117
- placeholder: a(_) ? "" : "Enter a URL or cURL command",
118
- server: "",
119
- onCurl: t[0] || (t[0] = (U) => e.$emit("importCurl", U)),
120
- onSubmit: b,
121
- "onUpdate:modelValue": I
122
- }, null, 8, ["disabled", "modelValue", "placeholder"]),
123
- t[3] || (t[3] = o("div", { class: "fade-right" }, null, -1))
124
- ]),
125
- n(Y, { open: f }, null, 8, ["open"]),
126
- n(a(Q), {
127
- class: "relative h-auto shrink-0 overflow-hidden !pl-2 !pr-2.5 !py-1 font-bold",
128
- disabled: s.value,
129
- onClick: b
130
- }, {
131
- default: w(() => [
132
- o("span", se, [
133
- n(a(W), {
134
- class: "relative shrink-0 fill-current",
135
- icon: "Play",
136
- size: "xs"
137
- }),
138
- t[4] || (t[4] = o("span", { class: "text-xxs lg:flex hidden" }, "Send", -1))
139
- ]),
140
- t[5] || (t[5] = o("span", { class: "sr-only" }, " Send Request ", -1))
80
+ default: B(({ open: f }) => {
81
+ var y, C, k, _, R;
82
+ return [
83
+ r("div", {
84
+ class: E([
85
+ "addressbar-bg-states text-xxs relative flex w-full xl:min-w-[720px] xl:max-w-[720px] lg:min-w-[580px] lg:max-w-[580px] order-last overflow-hidden lg:order-none flex-1 flex-row items-stretch rounded-lg border-1/2 p-[3px]",
86
+ { "border-transparent overflow-visible rounded-b-none": f }
87
+ ])
88
+ }, [
89
+ r("div", de, [
90
+ r("div", {
91
+ class: E(["bg-mix-transparent bg-mix-amount-90 absolute left-0 top-0 h-full w-full z-context", O()]),
92
+ style: j({ transform: `translate3d(-${a.value}%,0,0)` })
93
+ }, null, 6)
94
+ ]),
95
+ r("div", fe, [
96
+ u(re, {
97
+ isEditable: !o(v),
98
+ isSquare: "",
99
+ method: o(l).method,
100
+ teleport: "",
101
+ onChange: K
102
+ }, null, 8, ["isEditable", "method"])
141
103
  ]),
142
- _: 1
143
- }, 8, ["disabled"])
144
- ], 2)
145
- ]),
104
+ r("div", me, [
105
+ t[2] || (t[2] = r("div", { class: "fade-left" }, null, -1)),
106
+ (C = (y = o(c)) == null ? void 0 : y.servers) != null && C.length ? (q(), F(se, { key: 0 })) : S("", !0),
107
+ u(G, {
108
+ ref_key: "addressBarRef",
109
+ ref: x,
110
+ "aria-label": "Path",
111
+ class: "outline-none",
112
+ disableCloseBrackets: "",
113
+ disabled: o(v),
114
+ disableEnter: "",
115
+ disableTabIndent: "",
116
+ emitOnBlur: !1,
117
+ importCurl: "",
118
+ modelValue: o(l).path,
119
+ placeholder: (R = (k = o(c)) == null ? void 0 : k.servers) != null && R.includes((_ = o(M)) == null ? void 0 : _.uid) ? "" : "Enter a URL or cURL command",
120
+ server: "",
121
+ onCurl: t[0] || (t[0] = (T) => e.$emit("importCurl", T)),
122
+ onSubmit: g,
123
+ "onUpdate:modelValue": N
124
+ }, null, 8, ["disabled", "modelValue", "placeholder"]),
125
+ t[3] || (t[3] = r("div", { class: "fade-right" }, null, -1))
126
+ ]),
127
+ u(ae, { open: f }, null, 8, ["open"]),
128
+ u(o(Y), {
129
+ class: "relative h-auto shrink-0 overflow-hidden !pl-2 !pr-2.5 !py-1 font-bold",
130
+ disabled: s.value,
131
+ onClick: g
132
+ }, {
133
+ default: B(() => [
134
+ r("span", ce, [
135
+ u(o(Z), {
136
+ class: "relative shrink-0 fill-current",
137
+ icon: "Play",
138
+ size: "xs"
139
+ }),
140
+ t[4] || (t[4] = r("span", { class: "text-xxs lg:flex hidden" }, "Send", -1))
141
+ ]),
142
+ t[5] || (t[5] = r("span", { class: "sr-only" }, " Send Request ", -1))
143
+ ]),
144
+ _: 1
145
+ }, 8, ["disabled"])
146
+ ], 2)
147
+ ];
148
+ }),
146
149
  _: 1
147
150
  }, 8, ["modelValue"])
148
151
  ])
149
- ])) : T("", !0);
152
+ ])) : S("", !0);
150
153
  }
151
154
  });
152
155
  export {
153
- we as default
156
+ Be as default
154
157
  };
@@ -1 +1 @@
1
- {"version":3,"file":"AddressBarServer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBarServer.vue"],"names":[],"mappings":";AAoWA,wBAKG"}
1
+ {"version":3,"file":"AddressBarServer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBarServer.vue"],"names":[],"mappings":";AA6UA,wBAMG"}
@@ -1,116 +1,109 @@
1
- import { defineComponent as V, computed as c, watch as E, openBlock as l, createBlock as S, unref as o, withCtx as w, createElementBlock as n, createCommentVNode as v, Fragment as m, renderList as g, createVNode as p, createElementVNode as a, createTextVNode as O, toDisplayString as b } from "vue";
2
- import { useActiveEntities as R } from "../../store/active-entities.js";
3
- import { ScalarDropdown as W, ScalarDropdownDivider as A, ScalarDropdownItem as I, ScalarIcon as L } from "@scalar/components";
4
- import C from "./AddressBarServerItem.vue.js";
5
- import { useWorkspace as T } from "../../store/store.js";
6
- const j = {
1
+ import { defineComponent as B, computed as i, watch as U, openBlock as s, createBlock as v, unref as l, withCtx as m, createElementBlock as a, createCommentVNode as p, Fragment as d, renderList as _, createVNode as c, createElementVNode as o, createTextVNode as V, toDisplayString as E } from "vue";
2
+ import { useActiveEntities as O } from "../../store/active-entities.js";
3
+ import { ScalarDropdown as R, ScalarDropdownDivider as b, ScalarDropdownItem as W, ScalarIcon as I } from "@scalar/components";
4
+ import h from "./AddressBarServerItem.vue.js";
5
+ import { useWorkspace as L } from "../../store/store.js";
6
+ const T = {
7
7
  class: "font-code lg:text-sm text-xs whitespace-nowrap border border-b-3 border-solid rounded px-1.5 py-0.5 text-c-2 -outline-offset-1",
8
8
  type: "button"
9
- }, z = {
9
+ }, j = {
10
10
  key: 0,
11
11
  class: "text-xxs text-c-2 ml-8"
12
- }, F = { class: "flex items-center justify-center h-4 w-4" }, M = {
13
- key: 1,
14
- class: "flex whitespace-nowrap items-center font-code lg:text-sm text-xs"
15
- }, K = /* @__PURE__ */ V({
12
+ }, z = { class: "flex items-center justify-center h-4 w-4" }, H = /* @__PURE__ */ B({
16
13
  __name: "AddressBarServer",
17
- setup(P) {
18
- const { activeRequest: y, activeCollection: k, activeServer: x } = R(), { isReadOnly: D, servers: _, collectionMutators: N, events: B } = T(), d = c(
14
+ setup(F) {
15
+ const { activeRequest: x, activeCollection: f, activeServer: u } = O(), { isReadOnly: g, servers: S, collectionMutators: A, events: C } = L(), w = i(
19
16
  () => {
20
17
  var t, e;
21
- return (e = (t = y.value) == null ? void 0 : t.servers) == null ? void 0 : e.map((r) => {
22
- var s;
18
+ return (e = (t = x.value) == null ? void 0 : t.servers) == null ? void 0 : e.map((r) => {
19
+ var n;
23
20
  return {
24
21
  id: r,
25
- label: ((s = _[r]) == null ? void 0 : s.url) ?? "Unknown server"
22
+ label: ((n = S[r]) == null ? void 0 : n.url) ?? "Unknown server"
26
23
  };
27
24
  });
28
25
  }
29
- ), u = c(
26
+ ), y = i(
30
27
  () => {
31
28
  var t, e;
32
- return (e = (t = k.value) == null ? void 0 : t.servers) == null ? void 0 : e.map((r) => {
33
- var s;
29
+ return (e = (t = f.value) == null ? void 0 : t.servers) == null ? void 0 : e.map((r) => {
30
+ var n;
34
31
  return {
35
32
  id: r,
36
- label: ((s = _[r]) == null ? void 0 : s.url) ?? "Unknown server"
33
+ label: ((n = S[r]) == null ? void 0 : n.url) ?? "Unknown server"
37
34
  };
38
35
  });
39
36
  }
40
- ), h = c(
37
+ ), k = i(
41
38
  () => {
42
39
  var t, e;
43
- return ((t = d.value) == null ? void 0 : t.length) && ((e = u.value) == null ? void 0 : e.length);
40
+ return ((t = w.value) == null ? void 0 : t.length) && ((e = y.value) == null ? void 0 : e.length);
44
41
  }
45
42
  );
46
- E([k, y], ([t, e]) => {
47
- !t || t.selectedServerUid || e != null && e.selectedServerUid || N.edit(
43
+ U([f, x], ([t, e]) => {
44
+ !t || t.selectedServerUid || e != null && e.selectedServerUid || A.edit(
48
45
  t.uid,
49
46
  "selectedServerUid",
50
47
  t.servers[0]
51
48
  );
52
49
  });
53
- const U = () => B.commandPalette.emit({
50
+ const D = () => C.commandPalette.emit({
54
51
  commandName: "Add Server"
55
- }), f = c(() => {
52
+ }), N = i(() => {
56
53
  var t, e, r;
57
- return (e = (t = x.value) == null ? void 0 : t.url) != null && e.endsWith("/") ? x.value.url.slice(0, -1) : ((r = x.value) == null ? void 0 : r.url) || "";
54
+ return (e = (t = u.value) == null ? void 0 : t.url) != null && e.endsWith("/") ? u.value.url.slice(0, -1) : ((r = u.value) == null ? void 0 : r.url) || "";
58
55
  });
59
- return (t, e) => {
60
- var r, s;
61
- return d.value && ((r = d.value) == null ? void 0 : r.length) > 1 || u.value && ((s = u.value) == null ? void 0 : s.length) > 1 ? (l(), S(o(W), {
62
- key: 0,
63
- class: "w-max",
64
- teleport: ""
65
- }, {
66
- items: w(() => [
67
- h.value ? (l(), n("div", z, " Request Servers ")) : v("", !0),
68
- (l(!0), n(m, null, g(d.value, (i) => (l(), S(C, {
69
- key: i.id,
70
- serverOption: i,
71
- type: "request"
72
- }, null, 8, ["serverOption"]))), 128)),
73
- h.value ? (l(), n(m, { key: 1 }, [
74
- p(o(A)),
75
- e[1] || (e[1] = a("div", { class: "text-xxs text-c-2 ml-8" }, "Collection Servers", -1))
76
- ], 64)) : v("", !0),
77
- (l(!0), n(m, null, g(u.value, (i) => (l(), S(C, {
78
- key: i.id,
79
- serverOption: i,
80
- type: "collection"
81
- }, null, 8, ["serverOption"]))), 128)),
82
- o(D) ? v("", !0) : (l(), n(m, { key: 2 }, [
83
- p(o(A)),
84
- p(o(I), null, {
85
- default: w(() => [
86
- a("div", {
87
- class: "font-code text-xxs flex items-center gap-1.5",
88
- onClick: U
89
- }, [
90
- a("div", F, [
91
- p(o(L), {
92
- icon: "Add",
93
- size: "sm"
94
- })
95
- ]),
96
- e[2] || (e[2] = a("span", null, "Add Server", -1))
97
- ])
98
- ]),
99
- _: 1
100
- })
101
- ], 64))
102
- ]),
103
- default: w(() => [
104
- a("button", j, [
105
- e[0] || (e[0] = a("span", { class: "sr-only" }, "Server:", -1)),
106
- O(" " + b(f.value), 1)
107
- ])
108
- ]),
109
- _: 1
110
- })) : f.value ? (l(), n("div", M, b(f.value), 1)) : v("", !0);
111
- };
56
+ return (t, e) => (s(), v(l(R), {
57
+ class: "w-max",
58
+ teleport: ""
59
+ }, {
60
+ items: m(() => [
61
+ k.value ? (s(), a("div", j, " Request Servers ")) : p("", !0),
62
+ (s(!0), a(d, null, _(w.value, (r) => (s(), v(h, {
63
+ key: r.id,
64
+ serverOption: r,
65
+ type: "request"
66
+ }, null, 8, ["serverOption"]))), 128)),
67
+ k.value ? (s(), a(d, { key: 1 }, [
68
+ c(l(b)),
69
+ e[1] || (e[1] = o("div", { class: "text-xxs text-c-2 ml-8" }, "Collection Servers", -1))
70
+ ], 64)) : p("", !0),
71
+ (s(!0), a(d, null, _(y.value, (r) => (s(), v(h, {
72
+ key: r.id,
73
+ serverOption: r,
74
+ type: "collection"
75
+ }, null, 8, ["serverOption"]))), 128)),
76
+ l(g) ? p("", !0) : (s(), a(d, { key: 2 }, [
77
+ c(l(b)),
78
+ c(l(W), null, {
79
+ default: m(() => [
80
+ o("div", {
81
+ class: "font-code text-xxs flex items-center gap-1.5",
82
+ onClick: D
83
+ }, [
84
+ o("div", z, [
85
+ c(l(I), {
86
+ icon: "Add",
87
+ size: "sm"
88
+ })
89
+ ]),
90
+ e[2] || (e[2] = o("span", null, "Add Server", -1))
91
+ ])
92
+ ]),
93
+ _: 1
94
+ })
95
+ ], 64))
96
+ ]),
97
+ default: m(() => [
98
+ o("button", T, [
99
+ e[0] || (e[0] = o("span", { class: "sr-only" }, "Server:", -1)),
100
+ V(" " + E(N.value), 1)
101
+ ])
102
+ ]),
103
+ _: 1
104
+ }));
112
105
  }
113
106
  });
114
107
  export {
115
- K as default
108
+ H as default
116
109
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as h, openBlock as o, createElementBlock as r, normalizeClass as p, unref as e, createVNode as t, withCtx as n, createElementVNode as i, Fragment as v, renderList as w, createTextVNode as d, toDisplayString as y, createCommentVNode as b } from "vue";
1
+ import { defineComponent as h, openBlock as r, createElementBlock as o, normalizeClass as p, unref as e, createVNode as t, withCtx as n, createElementVNode as i, Fragment as v, renderList as w, createTextVNode as d, toDisplayString as y, createCommentVNode as b } from "vue";
2
2
  import { ROUTES as k } from "../../constants.js";
3
3
  import { ScalarIcon as N } from "@scalar/components";
4
4
  import { useRouter as S } from "vue-router";
@@ -14,9 +14,9 @@ const B = { class: "flex items-center" }, E = { class: "flex items-center" }, L
14
14
  __name: "SideNav",
15
15
  setup(R) {
16
16
  const { currentRoute: m } = S(), { layout: s } = j();
17
- return ($, l) => (o(), r("nav", {
17
+ return ($, l) => (r(), o("nav", {
18
18
  "aria-label": "App Navigation",
19
- class: p(["flex items-center justify-center sm:justify-between gap-1.5 app-drag-region", e(s) === "web" ? "border h-12" : "sm:flex-col px-2 pb-2"]),
19
+ class: p(["flex items-center justify-center sm:justify-between gap-1.5 app-drag-region", e(s) === "web" ? "border h-header" : "sm:flex-col px-2 pb-2"]),
20
20
  role: "navigation"
21
21
  }, [
22
22
  t(u, { class: "app-no-drag-region" }, {
@@ -33,11 +33,11 @@ const B = { class: "flex items-center" }, E = { class: "flex items-center" }, L
33
33
  size: "xl"
34
34
  })
35
35
  ], 2),
36
- (o(!0), r(v, null, w(e(k).filter(
36
+ (r(!0), o(v, null, w(e(k).filter(
37
37
  (a) => a.name !== "settings"
38
38
  ), ({ icon: a, name: c, prettyName: g }, x) => {
39
39
  var f;
40
- return o(), r("li", { key: x }, [
40
+ return r(), o("li", { key: x }, [
41
41
  t(_, {
42
42
  active: (f = e(m).name) == null ? void 0 : f.startsWith(c),
43
43
  icon: a,
@@ -70,7 +70,7 @@ const B = { class: "flex items-center" }, E = { class: "flex items-center" }, L
70
70
  i("li", E, [
71
71
  t(V)
72
72
  ]),
73
- e(s) !== "desktop" ? (o(), r("li", L, [
73
+ e(s) !== "desktop" ? (r(), o("li", L, [
74
74
  t(C)
75
75
  ])) : b("", !0)
76
76
  ]),
@@ -1,7 +1,7 @@
1
1
  import o from "./Sidebar.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-742cbf17"]]);
4
+ const d = /* @__PURE__ */ r(o, [["__scopeId", "data-v-1cfdf7d0"]]);
5
5
  export {
6
- m as default
6
+ d as default
7
7
  };
@@ -3,7 +3,7 @@ import { useBreakpoints as $ } from "@scalar/use-hooks/useBreakpoints";
3
3
  import { useWorkspace as z } from "../../store/store.js";
4
4
  const C = {
5
5
  key: 0,
6
- class: "min-h-12 xl:min-h-header flex items-center justify-between border-b-1/2 px-3 py-1.5 md:px-4 md:py-2.5 text-sm"
6
+ class: "min-h-12 xl:min-h-client-header flex items-center justify-between border-b-1/2 px-3 py-1.5 md:px-4 md:py-2.5 text-sm"
7
7
  }, I = { class: "font-medium m-0 text-sm whitespace-nowrap" }, R = { class: "relative z-10 pt-0 md:px-2.5 md:pb-2.5 sticky bottom-0 w-[inherit] has-[.empty-sidebar-item]:border-t-1/2" }, j = /* @__PURE__ */ S({
8
8
  __name: "Sidebar",
9
9
  props: {
@@ -1,15 +1,15 @@
1
1
  import { openBlock as o, createElementBlock as l, createElementVNode as n, renderSlot as t } from "vue";
2
2
  import s from "../../_virtual/_plugin-vue_export-helper.js";
3
- const r = {}, c = { class: "flex xl:h-full xl:min-w-0 flex-1 flex-col xl:custom-scroll bg-b-1" }, i = { class: "min-h-12 xl:min-h-header flex items-center border-b-1/2 px-3.5 py-1.5 md:px-4 md:py-2 xl:px-6 xl:pr-5 text-sm font-medium sticky top-0 bg-b-1 xl:rounded-none z-1" };
3
+ const c = {}, r = { class: "flex xl:h-full xl:min-w-0 flex-1 flex-col xl:custom-scroll bg-b-1" }, i = { class: "min-h-12 xl:min-h-client-header flex items-center border-b-1/2 px-3.5 py-1.5 md:px-4 md:py-2 xl:px-6 xl:pr-5 text-sm font-medium sticky top-0 bg-b-1 xl:rounded-none z-1" };
4
4
  function m(e, d) {
5
- return o(), l("section", c, [
5
+ return o(), l("section", r, [
6
6
  n("div", i, [
7
7
  t(e.$slots, "title")
8
8
  ]),
9
9
  t(e.$slots, "default")
10
10
  ]);
11
11
  }
12
- const p = /* @__PURE__ */ s(r, [["render", m]]);
12
+ const p = /* @__PURE__ */ s(c, [["render", m]]);
13
13
  export {
14
14
  p as default
15
15
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/Modal/ApiClientModal.vue"],"names":[],"mappings":";AA+ZA,wBAMG"}
1
+ {"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/Modal/ApiClientModal.vue"],"names":[],"mappings":";AAyZA,wBAMG"}
@@ -2,7 +2,7 @@ import o from "./ApiClientModal.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../../_virtual/_plugin-vue_export-helper.js";
5
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d1ef066c"]]);
5
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8a354e47"]]);
6
6
  export {
7
- a as default
7
+ m as default
8
8
  };