@scalar/api-client 2.2.39 → 2.2.41

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 (76) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBar.vue.js +2 -2
  4. package/dist/components/AddressBar/AddressBar.vue2.js +35 -31
  5. package/dist/components/AddressBar/index.d.ts +1 -2
  6. package/dist/components/AddressBar/index.d.ts.map +1 -1
  7. package/dist/components/DataTable/DataTableInputSelect.vue.js +29 -29
  8. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +7 -7
  9. package/dist/components/ImportCollection/WorkspaceSelector.vue.js +21 -21
  10. package/dist/components/{AddressBar/AddressBarServer.vue.d.ts → Server/ServerDropdown.vue.d.ts} +6 -1
  11. package/dist/components/Server/ServerDropdown.vue.d.ts.map +1 -0
  12. package/dist/components/Server/ServerDropdown.vue.js +155 -0
  13. package/dist/components/Server/ServerDropdown.vue2.js +4 -0
  14. package/dist/components/Server/ServerDropdownItem.vue.d.ts +19 -0
  15. package/dist/components/Server/ServerDropdownItem.vue.d.ts.map +1 -0
  16. package/dist/components/Server/ServerDropdownItem.vue.js +7 -0
  17. package/dist/components/Server/ServerDropdownItem.vue2.js +81 -0
  18. package/dist/components/Server/ServerVariablesForm.vue.js +20 -20
  19. package/dist/components/Server/ServerVariablesTextbox.vue.d.ts.map +1 -1
  20. package/dist/components/Server/ServerVariablesTextbox.vue.js +4 -4
  21. package/dist/components/Server/index.d.ts +3 -0
  22. package/dist/components/Server/index.d.ts.map +1 -0
  23. package/dist/components/Server/index.js +6 -0
  24. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts +1 -5
  25. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  26. package/dist/hooks/useLayout.d.ts +2 -0
  27. package/dist/hooks/useLayout.d.ts.map +1 -1
  28. package/dist/layouts/App/create-api-client-app.d.ts +30 -40
  29. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  30. package/dist/layouts/Modal/create-api-client-modal.d.ts +60 -80
  31. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  32. package/dist/layouts/Web/create-api-client-web.d.ts +30 -40
  33. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  34. package/dist/libs/create-client.d.ts +30 -40
  35. package/dist/libs/create-client.d.ts.map +1 -1
  36. package/dist/store/active-entities.d.ts +6 -8
  37. package/dist/store/active-entities.d.ts.map +1 -1
  38. package/dist/store/servers.d.ts +30 -40
  39. package/dist/store/servers.d.ts.map +1 -1
  40. package/dist/store/store.d.ts +30 -40
  41. package/dist/store/store.d.ts.map +1 -1
  42. package/dist/style.css +1 -1
  43. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +0 -1
  44. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
  45. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +40 -42
  46. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +1 -1
  47. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  48. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
  49. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +72 -72
  50. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts +1 -2
  51. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  52. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +3 -3
  53. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +18 -17
  54. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts +1 -1
  55. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts.map +1 -1
  56. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +1 -1
  57. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue2.js +12 -11
  58. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  59. package/dist/views/Request/RequestSection/RequestSection.vue.js +1 -1
  60. package/dist/views/Request/RequestSection/RequestSection.vue2.js +1 -0
  61. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  62. package/dist/views/Servers/index.d.ts +2 -0
  63. package/dist/views/Servers/index.d.ts.map +1 -0
  64. package/dist/views/Servers/index.js +4 -0
  65. package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
  66. package/dist/views/Settings/SettingsGeneral.vue.js +196 -160
  67. package/dist/views/Settings/components/SettingsAppearance.vue.d.ts.map +1 -1
  68. package/dist/views/Settings/components/SettingsAppearance.vue.js +50 -39
  69. package/package.json +20 -10
  70. package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +0 -1
  71. package/dist/components/AddressBar/AddressBarServer.vue.js +0 -123
  72. package/dist/components/AddressBar/AddressBarServer.vue2.js +0 -4
  73. package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts +0 -10
  74. package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts.map +0 -1
  75. package/dist/components/AddressBar/AddressBarServerItem.vue.js +0 -7
  76. package/dist/components/AddressBar/AddressBarServerItem.vue2.js +0 -77
package/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.2.41
4
+
5
+ ### Patch Changes
6
+
7
+ - be34e7d: feat: adds client server state usage in reference
8
+ - 4e6f0eb: fix: updates settings checkbox ui
9
+ - 42d08d7: fix: updates dropdown checkbox ui
10
+ - 2edbab2: fix: ensure add server button does not show on the references client server dropdown
11
+ - Updated dependencies [be34e7d]
12
+ - Updated dependencies [51f3177]
13
+ - Updated dependencies [42d08d7]
14
+ - @scalar/oas-utils@0.2.101
15
+ - @scalar/types@0.0.29
16
+ - @scalar/themes@0.9.63
17
+ - @scalar/components@0.13.18
18
+ - @scalar/import@0.2.21
19
+ - @scalar/postman-to-openapi@0.1.24
20
+ - @scalar/openapi-parser@0.10.4
21
+ - @scalar/use-codemirror@0.11.63
22
+ - @scalar/use-hooks@0.1.17
23
+
24
+ ## 2.2.40
25
+
26
+ ### Patch Changes
27
+
28
+ - 6636051: Add requests to the children of collections, so they'll be shown in the client
29
+
3
30
  ## 2.2.39
4
31
 
5
32
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBar.vue"],"names":[],"mappings":";;;;;AA0vBA,wBAMG"}
1
+ {"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBar.vue"],"names":[],"mappings":";;;;;AA8vBA,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 a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-893bff81"]]);
4
+ const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-2b1591cf"]]);
5
5
  export {
6
- a as default
6
+ f as default
7
7
  };
@@ -1,11 +1,11 @@
1
- import { defineComponent as M, useId as H, ref as n, watch as N, unref as l, openBlock as q, createElementBlock as T, createElementVNode as r, normalizeClass as $, normalizeStyle as O, createVNode as u, createBlock as P, createCommentVNode as y, withCtx as D } from "vue";
1
+ import { defineComponent as M, useId as H, ref as n, watch as N, unref as t, openBlock as y, createElementBlock as T, createElementVNode as r, normalizeClass as $, normalizeStyle as O, createVNode as u, createBlock as P, createCommentVNode as q, withCtx as D } from "vue";
2
2
  import K from "../CodeInput/CodeInput.vue.js";
3
3
  import { useActiveEntities as Q } from "../../store/active-entities.js";
4
4
  import { ScalarButton as W, ScalarIcon as j } from "@scalar/components";
5
5
  import { REQUEST_METHODS as F } from "@scalar/oas-utils/helpers";
6
6
  import G from "../HttpMethod/HttpMethod.vue.js";
7
7
  import J from "./AddressBarHistory.vue.js";
8
- import X from "./AddressBarServer.vue.js";
8
+ import X from "../Server/ServerDropdown.vue.js";
9
9
  import { useWorkspace as Y } from "../../store/store.js";
10
10
  import { useLayout as Z } from "../../hooks/useLayout.js";
11
11
  const ee = ["id"], te = { class: "m-auto flex flex-row items-center" }, le = { class: "addressbar-bg-states group text-xxs relative flex w-full xl:min-w-[720px] xl:max-w-[720px] lg:min-w-[580px] lg:max-w-[580px] order-last lg:order-none flex-1 flex-row items-stretch rounded-lg p-0.75 max-w-[calc(100dvw-24px)]" }, ae = { class: "border rounded-lg pointer-events-none absolute left-0 top-0 block h-full w-full overflow-hidden" }, re = { class: "flex gap-1 z-context-plus" }, oe = { class: "codemirror-bg-switcher scroll-timeline-x scroll-timeline-x-hidden z-context-plus relative flex w-full" }, se = {
@@ -15,16 +15,16 @@ const ee = ["id"], te = { class: "m-auto flex flex-row items-center" }, le = { c
15
15
  __name: "AddressBar",
16
16
  emits: ["importCurl"],
17
17
  setup(ie) {
18
- const d = H(), { activeRequest: t, activeExample: B, activeServer: v, activeCollection: p } = Q(), { requestMutators: c, events: f } = Y(), { layout: x } = Z(), h = n(null), E = (e) => {
19
- !t.value || t.value.path === e || c.edit(t.value.uid, "path", e);
18
+ const d = H(), { activeRequest: l, activeExample: B, activeServer: c, activeCollection: f } = Q(), { requestMutators: m, events: v } = Y(), { layout: x } = Z(), h = n(null), E = (e) => {
19
+ !l.value || l.value.path === e || m.edit(l.value.uid, "path", e);
20
20
  };
21
21
  N(
22
22
  () => {
23
23
  var e;
24
- return (e = t.value) == null ? void 0 : e.path;
24
+ return (e = l.value) == null ? void 0 : e.path;
25
25
  },
26
26
  (e) => {
27
- !t.value || !e || E(e);
27
+ !l.value || !e || E(e);
28
28
  }
29
29
  );
30
30
  const o = n(100), g = n(0), s = n(!1), i = n();
@@ -40,33 +40,33 @@ const ee = ["id"], te = { class: "m-auto flex flex-row items-center" }, le = { c
40
40
  function I() {
41
41
  clearInterval(i.value), i.value = void 0, o.value = 100, s.value = !1;
42
42
  }
43
- f.requestStatus.on((e) => {
43
+ v.requestStatus.on((e) => {
44
44
  e === "start" && S(), e === "stop" && z(), e === "abort" && I();
45
45
  });
46
46
  function V(e) {
47
- t.value && c.edit(t.value.uid, "method", e);
47
+ l.value && m.edit(l.value.uid, "method", e);
48
48
  }
49
49
  function L() {
50
- if (!t.value) return;
51
- const { method: e } = t.value;
50
+ if (!l.value) return;
51
+ const { method: e } = l.value;
52
52
  return F[e].backgroundColor;
53
53
  }
54
- function m() {
54
+ function p() {
55
55
  var e;
56
- s.value || (s.value = !0, f.executeRequest.emit({ requestUid: (e = t.value) == null ? void 0 : e.uid }));
56
+ s.value || (s.value = !0, v.executeRequest.emit({ requestUid: (e = l.value) == null ? void 0 : e.uid }));
57
57
  }
58
- f.hotKeys.on((e) => {
58
+ v.hotKeys.on((e) => {
59
59
  var a;
60
- e != null && e.focusAddressBar && ((a = h.value) == null || a.focus()), e != null && e.executeRequest && m();
60
+ e != null && e.focusAddressBar && ((a = h.value) == null || a.focus()), e != null && e.executeRequest && p();
61
61
  });
62
62
  function U(e) {
63
- t.value && c.edit(t.value.uid, "path", e);
63
+ l.value && m.edit(l.value.uid, "path", e);
64
64
  }
65
65
  return (e, a) => {
66
66
  var b, w, C, _, k;
67
- return l(t) && l(B) ? (q(), T("div", {
67
+ return t(l) && t(B) ? (y(), T("div", {
68
68
  key: 0,
69
- id: l(d),
69
+ id: t(d),
70
70
  class: "scalar-address-bar order-last lg:order-none lg:w-auto w-full [--scalar-address-bar-height:32px] h-[--scalar-address-bar-height]"
71
71
  }, [
72
72
  r("div", te, [
@@ -79,18 +79,22 @@ const ee = ["id"], te = { class: "m-auto flex flex-row items-center" }, le = { c
79
79
  ]),
80
80
  r("div", re, [
81
81
  u(G, {
82
- isEditable: l(x) !== "modal",
82
+ isEditable: t(x) !== "modal",
83
83
  isSquare: "",
84
- method: l(t).method,
84
+ method: t(l).method,
85
85
  teleport: "",
86
86
  onChange: V
87
87
  }, null, 8, ["isEditable", "method"])
88
88
  ]),
89
89
  r("div", oe, [
90
- (w = (b = l(p)) == null ? void 0 : b.servers) != null && w.length ? (q(), P(X, {
90
+ (w = (b = t(f)) == null ? void 0 : b.servers) != null && w.length ? (y(), P(t(X), {
91
91
  key: 0,
92
- target: l(d)
93
- }, null, 8, ["target"])) : y("", !0),
92
+ collection: t(f),
93
+ layout: "client",
94
+ operation: t(l),
95
+ server: t(c),
96
+ target: t(d)
97
+ }, null, 8, ["collection", "operation", "server", "target"])) : q("", !0),
94
98
  a[1] || (a[1] = r("div", { class: "fade-left" }, null, -1)),
95
99
  u(K, {
96
100
  ref_key: "addressBarRef",
@@ -98,29 +102,29 @@ const ee = ["id"], te = { class: "m-auto flex flex-row items-center" }, le = { c
98
102
  "aria-label": "Path",
99
103
  class: "outline-none min-w-fit",
100
104
  disableCloseBrackets: "",
101
- disabled: l(x) === "modal",
105
+ disabled: t(x) === "modal",
102
106
  disableEnter: "",
103
107
  disableTabIndent: "",
104
108
  emitOnBlur: !1,
105
109
  importCurl: "",
106
- modelValue: l(t).path,
107
- placeholder: (C = l(v)) != null && C.uid && ((k = (_ = l(p)) == null ? void 0 : _.servers) != null && k.includes(l(v).uid)) ? "" : "Enter a URL or cURL command",
110
+ modelValue: t(l).path,
111
+ placeholder: (C = t(c)) != null && C.uid && ((k = (_ = t(f)) == null ? void 0 : _.servers) != null && k.includes(t(c).uid)) ? "" : "Enter a URL or cURL command",
108
112
  server: "",
109
113
  onCurl: a[0] || (a[0] = (A) => e.$emit("importCurl", A)),
110
- onSubmit: m,
114
+ onSubmit: p,
111
115
  "onUpdate:modelValue": U
112
116
  }, null, 8, ["disabled", "modelValue", "placeholder"]),
113
117
  a[2] || (a[2] = r("div", { class: "fade-right" }, null, -1))
114
118
  ]),
115
- u(J, { target: l(d) }, null, 8, ["target"]),
116
- u(l(W), {
119
+ u(J, { target: t(d) }, null, 8, ["target"]),
120
+ u(t(W), {
117
121
  class: "relative h-auto shrink-0 z-context-plus overflow-hidden pl-2 pr-2.5 py-1 font-bold",
118
122
  disabled: s.value,
119
- onClick: m
123
+ onClick: p
120
124
  }, {
121
125
  default: D(() => [
122
126
  r("span", se, [
123
- u(l(j), {
127
+ u(t(j), {
124
128
  class: "relative shrink-0 fill-current",
125
129
  icon: "Play",
126
130
  size: "xs"
@@ -133,7 +137,7 @@ const ee = ["id"], te = { class: "m-auto flex flex-row items-center" }, le = { c
133
137
  }, 8, ["disabled"])
134
138
  ])
135
139
  ])
136
- ], 8, ee)) : y("", !0);
140
+ ], 8, ee)) : q("", !0);
137
141
  };
138
142
  }
139
143
  });
@@ -1,3 +1,2 @@
1
- import AddressBar from './AddressBar.vue.js';
2
- export { AddressBar };
1
+ export { default as AddressBar } from './AddressBar.vue.js';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,kBAAkB,CAAA;AAEzC,OAAO,EAAE,UAAU,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA"}
@@ -1,5 +1,5 @@
1
- import { defineComponent as O, computed as m, ref as y, watch as S, nextTick as E, openBlock as u, createElementBlock as f, createBlock as v, unref as a, withCtx as n, createVNode as s, createElementVNode as d, toDisplayString as w, withDirectives as K, withKeys as M, vModelText as R, Fragment as C, renderList as U, normalizeClass as W, createTextVNode as $, createCommentVNode as _ } from "vue";
2
- import { ScalarComboboxMultiselect as F, ScalarButton as b, ScalarIcon as h, ScalarDropdown as L, ScalarDropdownItem as D, ScalarDropdownDivider as q } from "@scalar/components";
1
+ import { defineComponent as O, computed as m, ref as y, watch as g, nextTick as E, openBlock as u, createElementBlock as f, createBlock as v, unref as a, withCtx as n, createVNode as s, createElementVNode as d, toDisplayString as w, withDirectives as K, withKeys as M, vModelText as R, Fragment as C, renderList as U, normalizeClass as W, createTextVNode as $, createCommentVNode as _ } from "vue";
2
+ import { ScalarComboboxMultiselect as F, ScalarButton as b, ScalarIcon as V, ScalarDropdown as L, ScalarDropdownItem as D, ScalarDropdownDivider as q } from "@scalar/components";
3
3
  const G = { class: "pr-4 w-full has-[:focus-visible]:outline has-[:focus-visible]:rounded-[4px] -outline-offset-1" }, H = { class: "text-c-1 whitespace-nowrap" }, J = { class: "text-c-1" }, P = { class: "flex items-center justify-center h-4 w-4" }, Z = /* @__PURE__ */ O({
4
4
  __name: "DataTableInputSelect",
5
5
  props: {
@@ -12,7 +12,7 @@ const G = { class: "pr-4 w-full has-[:focus-visible]:outline has-[:focus-visible
12
12
  emits: ["update:modelValue"],
13
13
  setup(B, { emit: j }) {
14
14
  const r = B, c = j, p = m(() => r.value ?? []), i = y(!1), o = y(""), x = y(null);
15
- S(o, (e) => {
15
+ g(o, (e) => {
16
16
  c("update:modelValue", e);
17
17
  });
18
18
  const k = (e) => {
@@ -22,25 +22,25 @@ const G = { class: "pr-4 w-full has-[:focus-visible]:outline has-[:focus-visible
22
22
  }, A = () => {
23
23
  o.value.trim() || (c("update:modelValue", ""), i.value = !1);
24
24
  }, N = (e) => r.modelValue.toString() === e;
25
- S(i, (e) => {
25
+ g(i, (e) => {
26
26
  e && E(() => {
27
- var t;
28
- (t = x.value) == null || t.focus();
27
+ var l;
28
+ (l = x.value) == null || l.focus();
29
29
  });
30
30
  });
31
- const g = m(() => r.modelValue !== void 0 ? r.modelValue : r.default), V = m(() => {
31
+ const S = m(() => r.modelValue !== void 0 ? r.modelValue : r.default), h = m(() => {
32
32
  const e = new Set(r.modelValue.toString().split(", "));
33
- return p.value.filter((t) => e.has(t)).map((t) => ({ id: t, label: t, value: t }));
33
+ return p.value.filter((l) => e.has(l)).map((l) => ({ id: l, label: l, value: l }));
34
34
  }), T = m(
35
35
  () => p.value.map((e) => ({ id: e, label: e, value: e }))
36
36
  ), I = (e) => {
37
- const t = e.map((l) => l.value);
38
- c("update:modelValue", t.join(", "));
37
+ const l = e.map((t) => t.value);
38
+ c("update:modelValue", l.join(", "));
39
39
  };
40
- return (e, t) => (u(), f("div", G, [
40
+ return (e, l) => (u(), f("div", G, [
41
41
  e.type === "array" ? (u(), v(a(F), {
42
42
  key: 0,
43
- modelValue: V.value,
43
+ modelValue: h.value,
44
44
  options: T.value,
45
45
  "onUpdate:modelValue": I
46
46
  }, {
@@ -51,8 +51,8 @@ const G = { class: "pr-4 w-full has-[:focus-visible]:outline has-[:focus-visible
51
51
  variant: "ghost"
52
52
  }, {
53
53
  default: n(() => [
54
- d("span", H, w(V.value.length > 0 ? V.value.map((l) => l.label).join(", ") : "Select a value"), 1),
55
- s(a(h), {
54
+ d("span", H, w(h.value.length > 0 ? h.value.map((t) => t.label).join(", ") : "Select a value"), 1),
55
+ s(a(V), {
56
56
  icon: "ChevronDown",
57
57
  size: "md"
58
58
  })
@@ -65,7 +65,7 @@ const G = { class: "pr-4 w-full has-[:focus-visible]:outline has-[:focus-visible
65
65
  key: 1,
66
66
  ref_key: "inputRef",
67
67
  ref: x,
68
- "onUpdate:modelValue": t[0] || (t[0] = (l) => o.value = l),
68
+ "onUpdate:modelValue": l[0] || (l[0] = (t) => o.value = t),
69
69
  class: "border-none text-c-1 min-w-0 w-full px-2 py-1.5 outline-none",
70
70
  placeholder: "Value",
71
71
  type: "text",
@@ -76,29 +76,29 @@ const G = { class: "pr-4 w-full has-[:focus-visible]:outline has-[:focus-visible
76
76
  ]) : (u(), v(a(L), {
77
77
  key: 2,
78
78
  resize: "",
79
- value: g.value
79
+ value: S.value
80
80
  }, {
81
81
  items: n(() => [
82
- (u(!0), f(C, null, U(p.value, (l) => (u(), v(a(D), {
83
- key: l,
82
+ (u(!0), f(C, null, U(p.value, (t) => (u(), v(a(D), {
83
+ key: t,
84
84
  class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
85
- value: l,
86
- onClick: (Q) => k(l)
85
+ value: t,
86
+ onClick: (Q) => k(t)
87
87
  }, {
88
88
  default: n(() => [
89
89
  d("div", {
90
90
  class: W([
91
91
  "flex items-center justify-center rounded-full p-[3px] w-4 h-4",
92
- N(l) ? "bg-c-accent text-b-1" : "group-hover/item:shadow-border text-transparent"
92
+ N(t) ? "bg-c-accent text-b-1" : "shadow-border text-transparent"
93
93
  ])
94
94
  }, [
95
- s(a(h), {
95
+ s(a(V), {
96
96
  class: "size-2.5",
97
97
  icon: "Checkmark",
98
- thickness: "3.5"
98
+ thickness: "3"
99
99
  })
100
100
  ], 2),
101
- $(" " + w(l), 1)
101
+ $(" " + w(t), 1)
102
102
  ]),
103
103
  _: 2
104
104
  }, 1032, ["value", "onClick"]))), 128)),
@@ -106,16 +106,16 @@ const G = { class: "pr-4 w-full has-[:focus-visible]:outline has-[:focus-visible
106
106
  p.value.length ? (u(), v(a(q), { key: 0 })) : _("", !0),
107
107
  s(a(D), {
108
108
  class: "flex items-center gap-1.5",
109
- onClick: t[1] || (t[1] = (l) => i.value = !0)
109
+ onClick: l[1] || (l[1] = (t) => i.value = !0)
110
110
  }, {
111
111
  default: n(() => [
112
112
  d("div", P, [
113
- s(a(h), {
113
+ s(a(V), {
114
114
  icon: "Add",
115
115
  size: "sm"
116
116
  })
117
117
  ]),
118
- t[2] || (t[2] = d("span", null, "Add value", -1))
118
+ l[2] || (l[2] = d("span", null, "Add value", -1))
119
119
  ]),
120
120
  _: 1
121
121
  })
@@ -128,8 +128,8 @@ const G = { class: "pr-4 w-full has-[:focus-visible]:outline has-[:focus-visible
128
128
  variant: "ghost"
129
129
  }, {
130
130
  default: n(() => [
131
- d("span", J, w(g.value || "Select a value"), 1),
132
- s(a(h), {
131
+ d("span", J, w(S.value || "Select a value"), 1),
132
+ s(a(V), {
133
133
  icon: "ChevronDown",
134
134
  size: "md"
135
135
  })
@@ -1,4 +1,4 @@
1
- import { defineComponent as I, computed as f, watch as B, onMounted as D, openBlock as c, createElementBlock as x, createVNode as s, unref as n, withCtx as l, Fragment as j, renderList as M, createBlock as h, withModifiers as w, createTextVNode as E, toDisplayString as k, createElementVNode as u, normalizeClass as V, createCommentVNode as z } from "vue";
1
+ import { defineComponent as I, computed as f, watch as B, onMounted as D, openBlock as c, createElementBlock as x, createVNode as s, unref as n, withCtx as l, Fragment as j, renderList as M, createBlock as w, withModifiers as h, createTextVNode as E, toDisplayString as k, createElementVNode as u, normalizeClass as V, createCommentVNode as z } from "vue";
2
2
  import { useActiveEntities as L } from "../../store/active-entities.js";
3
3
  import { ScalarDropdown as W, ScalarDropdownItem as m, ScalarListboxCheckbox as $, ScalarIcon as g, ScalarDropdownDivider as A, ScalarButton as F } from "@scalar/components";
4
4
  import { useRouter as O } from "vue-router";
@@ -43,10 +43,10 @@ const q = { class: "font-medium m-0 flex gap-1.5 items-center whitespace-nowrap"
43
43
  }), (e, t) => (c(), x("div", null, [
44
44
  s(n(W), { placement: "bottom-end" }, {
45
45
  items: l(() => [
46
- (c(!0), x(j, null, M(N.value, (o) => (c(), h(n(m), {
46
+ (c(!0), x(j, null, M(N.value, (o) => (c(), w(n(m), {
47
47
  key: o.uid,
48
48
  class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
49
- onClick: w((r) => d(o.uid), ["stop"])
49
+ onClick: h((r) => d(o.uid), ["stop"])
50
50
  }, {
51
51
  default: l(() => {
52
52
  var r;
@@ -61,7 +61,7 @@ const q = { class: "font-medium m-0 flex gap-1.5 items-center whitespace-nowrap"
61
61
  }, 1032, ["onClick"]))), 128)),
62
62
  s(n(m), {
63
63
  class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
64
- onClick: t[0] || (t[0] = w((o) => d(""), ["stop"]))
64
+ onClick: t[0] || (t[0] = h((o) => d(""), ["stop"]))
65
65
  }, {
66
66
  default: l(() => {
67
67
  var o, r;
@@ -69,13 +69,13 @@ const q = { class: "font-medium m-0 flex gap-1.5 items-center whitespace-nowrap"
69
69
  u("div", {
70
70
  class: V([
71
71
  "flex items-center justify-center rounded-full p-[3px] w-4 h-4",
72
- ((o = n(v)) == null ? void 0 : o.uid) === "" && ((r = n(a)) == null ? void 0 : r["x-scalar-active-environment"]) === "" ? "bg-c-accent text-b-1" : "group-hover/item:shadow-border text-transparent"
72
+ ((o = n(v)) == null ? void 0 : o.uid) === "" && ((r = n(a)) == null ? void 0 : r["x-scalar-active-environment"]) === "" ? "bg-c-accent text-b-1" : "shadow-border text-transparent"
73
73
  ])
74
74
  }, [
75
75
  s(n(g), {
76
76
  class: "size-2.5",
77
77
  icon: "Checkmark",
78
- thickness: "3.5"
78
+ thickness: "3"
79
79
  })
80
80
  ], 2),
81
81
  t[1] || (t[1] = E(" No Environment "))
@@ -84,7 +84,7 @@ const q = { class: "font-medium m-0 flex gap-1.5 items-center whitespace-nowrap"
84
84
  _: 1
85
85
  }),
86
86
  s(n(A)),
87
- n(b) !== "modal" ? (c(), h(n(m), {
87
+ n(b) !== "modal" ? (c(), w(n(m), {
88
88
  key: 0,
89
89
  class: "flex items-center gap-1.5",
90
90
  onClick: S
@@ -1,4 +1,4 @@
1
- import { defineComponent as W, ref as D, openBlock as m, createElementBlock as w, Fragment as v, createElementVNode as s, createVNode as o, unref as e, withCtx as r, renderList as z, createBlock as N, withModifiers as k, normalizeClass as M, toDisplayString as h, withDirectives as B, vModelText as V, createTextVNode as j } from "vue";
1
+ import { defineComponent as W, ref as D, openBlock as m, createElementBlock as w, Fragment as k, createElementVNode as s, createVNode as a, unref as e, withCtx as r, renderList as z, createBlock as N, withModifiers as v, normalizeClass as M, toDisplayString as h, withDirectives as B, vModelText as V, createTextVNode as j } from "vue";
2
2
  import { useActiveEntities as E } from "../../store/active-entities.js";
3
3
  import { useModal as T, ScalarDropdown as $, ScalarDropdownItem as _, ScalarIcon as u, ScalarDropdownDivider as A, ScalarButton as b, ScalarModal as I } from "@scalar/components";
4
4
  import { useToasts as F } from "@scalar/use-toasts";
@@ -30,14 +30,14 @@ const R = { class: "flex items-center text-sm w-[inherit]" }, U = { class: "font
30
30
  }
31
31
  }), l.value = "", c.hide();
32
32
  };
33
- return (n, t) => (m(), w(v, null, [
33
+ return (n, t) => (m(), w(k, null, [
34
34
  s("div", R, [
35
- o(e($), null, {
35
+ a(e($), null, {
36
36
  items: r(() => [
37
- (m(!0), w(v, null, z(e(g), (a, p) => (m(), N(e(_), {
37
+ (m(!0), w(k, null, z(e(g), (o, p) => (m(), N(e(_), {
38
38
  key: p,
39
39
  class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden w-full",
40
- onClick: k((d) => y(p), ["stop"])
40
+ onClick: v((d) => y(p), ["stop"])
41
41
  }, {
42
42
  default: r(() => {
43
43
  var d;
@@ -45,28 +45,28 @@ const R = { class: "flex items-center text-sm w-[inherit]" }, U = { class: "font
45
45
  s("div", {
46
46
  class: M([
47
47
  "flex items-center justify-center rounded-full p-[3px] w-4 h-4",
48
- ((d = e(i)) == null ? void 0 : d.uid) === p ? "bg-c-accent text-b-1" : "group-hover/item:shadow-border text-transparent"
48
+ ((d = e(i)) == null ? void 0 : d.uid) === p ? "bg-c-accent text-b-1" : "shadow-border text-transparent"
49
49
  ])
50
50
  }, [
51
- o(e(u), {
51
+ a(e(u), {
52
52
  class: "size-2.5",
53
53
  icon: "Checkmark",
54
- thickness: "3.5"
54
+ thickness: "3"
55
55
  })
56
56
  ], 2),
57
- s("span", G, h(a.name), 1)
57
+ s("span", G, h(o.name), 1)
58
58
  ];
59
59
  }),
60
60
  _: 2
61
61
  }, 1032, ["onClick"]))), 128)),
62
- o(e(A)),
63
- o(e(_), {
62
+ a(e(A)),
63
+ a(e(_), {
64
64
  class: "flex items-center gap-1.5",
65
- onClick: t[0] || (t[0] = (a) => e(c).show())
65
+ onClick: t[0] || (t[0] = (o) => e(c).show())
66
66
  }, {
67
67
  default: r(() => [
68
68
  s("div", H, [
69
- o(e(u), {
69
+ a(e(u), {
70
70
  icon: "Add",
71
71
  size: "sm"
72
72
  })
@@ -77,17 +77,17 @@ const R = { class: "flex items-center text-sm w-[inherit]" }, U = { class: "font
77
77
  })
78
78
  ]),
79
79
  default: r(() => [
80
- o(e(b), {
80
+ a(e(b), {
81
81
  class: "font-normal h-full justify-start line-clamp-1 py-1 px-1.5 text-c-1 hover:bg-b-2 w-fit text-c-3",
82
82
  fullWidth: "",
83
83
  variant: "ghost"
84
84
  }, {
85
85
  default: r(() => {
86
- var a;
86
+ var o;
87
87
  return [
88
88
  s("div", U, [
89
- s("h2", q, h((a = e(i)) == null ? void 0 : a.name), 1),
90
- o(e(u), {
89
+ s("h2", q, h((o = e(i)) == null ? void 0 : o.name), 1),
90
+ a(e(u), {
91
91
  icon: "ChevronDown",
92
92
  size: "md"
93
93
  })
@@ -100,7 +100,7 @@ const R = { class: "flex items-center text-sm w-[inherit]" }, U = { class: "font
100
100
  _: 1
101
101
  })
102
102
  ]),
103
- o(e(I), {
103
+ a(e(I), {
104
104
  bodyClass: "m-0 p-1 rounded-lg border-t-0",
105
105
  class: "absolute z-overlay",
106
106
  size: "xxs",
@@ -110,17 +110,17 @@ const R = { class: "flex items-center text-sm w-[inherit]" }, U = { class: "font
110
110
  default: r(() => [
111
111
  s("form", {
112
112
  class: "flex gap-1",
113
- onSubmit: k(S, ["prevent"])
113
+ onSubmit: v(S, ["prevent"])
114
114
  }, [
115
115
  B(s("input", {
116
- "onUpdate:modelValue": t[1] || (t[1] = (a) => l.value = a),
116
+ "onUpdate:modelValue": t[1] || (t[1] = (o) => l.value = o),
117
117
  class: "border-none outline-none flex-1 w-full text-sm min-h-8 p-1.5",
118
118
  placeholder: "New Workspace",
119
119
  type: "text"
120
120
  }, null, 512), [
121
121
  [V, l.value]
122
122
  ]),
123
- o(e(b), {
123
+ a(e(b), {
124
124
  class: "max-h-8 text-xs p-0 px-3",
125
125
  disabled: !l.value.trim(),
126
126
  type: "submit"
@@ -1,7 +1,12 @@
1
+ import type { Collection, Request as Operation, Server } from '@scalar/oas-utils/entities/spec';
1
2
  type __VLS_Props = {
3
+ collection: Collection;
4
+ operation?: Operation;
5
+ server: Server | undefined;
6
+ layout: 'client' | 'reference';
2
7
  /** The id of the target to use for the popover (e.g. address bar) */
3
8
  target: string;
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=AddressBarServer.vue.d.ts.map
12
+ //# sourceMappingURL=ServerDropdown.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ServerDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Server/ServerDropdown.vue"],"names":[],"mappings":"AA+LA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,IAAI,SAAS,EACpB,MAAM,EACP,MAAM,iCAAiC,CAAA;AAOxC,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;CACf,CAAC;;AAuRF,wBAOG"}