@scalar/api-client 2.3.1 → 2.3.2

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 (25) hide show
  1. package/CHANGELOG.md +19 -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/store/active-entities.d.ts.map +1 -1
  13. package/dist/store/active-entities.js +69 -64
  14. package/dist/style.css +1 -1
  15. package/dist/views/Request/RequestRoot.vue.d.ts.map +1 -1
  16. package/dist/views/Request/RequestRoot.vue.js +1 -1
  17. package/dist/views/Request/RequestRoot.vue2.js +71 -64
  18. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  19. package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
  20. package/dist/views/Request/RequestSection/RequestTable.vue2.js +120 -96
  21. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
  22. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +1 -1
  23. package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +32 -27
  24. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  25. package/package.json +9 -9
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.3.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 1437882: feat(components): create ScalarTextInput and ScalarTextArea
8
+ - 060ada9: feat: adds server deselection
9
+ - cf58fba: fix(api-reference): focus and screenreader improvements for client libraries, endpoints list and API client
10
+ - Updated dependencies [e0ee082]
11
+ - Updated dependencies [1437882]
12
+ - Updated dependencies [e00fa7e]
13
+ - Updated dependencies [632978d]
14
+ - @scalar/components@0.13.36
15
+ - @scalar/themes@0.9.78
16
+ - @scalar/use-codemirror@0.11.81
17
+ - @scalar/oas-utils@0.2.119
18
+ - @scalar/use-hooks@0.1.32
19
+ - @scalar/import@0.3.1
20
+ - @scalar/postman-to-openapi@0.1.42
21
+
3
22
  ## 2.3.1
4
23
 
5
24
  ### Patch Changes
@@ -1,13 +1,13 @@
1
- import { defineComponent as r, openBlock as o, createBlock as n, mergeProps as a, unref as m, withCtx as p, renderSlot as s } from "vue";
2
- import { useBindCx as c } from "@scalar/components";
3
- import f from "./DataTableCell.vue.js";
4
- const x = /* @__PURE__ */ r({
1
+ import { defineComponent as o, openBlock as r, createBlock as n, mergeProps as m, unref as s, withCtx as a, renderSlot as f } from "vue";
2
+ import { useBindCx as i } from "@scalar/components";
3
+ import c from "./DataTableCell.vue.js";
4
+ const x = /* @__PURE__ */ o({
5
5
  __name: "DataTableHeader",
6
- setup(i) {
7
- const { cx: e } = c();
8
- return (t, u) => (o(), n(f, a({ is: "th" }, m(e)("truncate font-medium px-2 py-1.5")), {
9
- default: p(() => [
10
- s(t.$slots, "default")
6
+ setup(p) {
7
+ const { cx: e } = i();
8
+ return (t, u) => (r(), n(c, m({ is: "th" }, s(e)("items-center font-medium px-2 min-w-0 -outline-offset-1")), {
9
+ default: a(() => [
10
+ f(t.$slots, "default")
11
11
  ]),
12
12
  _: 3
13
13
  }, 16));
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableRow.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableRow.vue"],"names":[],"mappings":"AAcA,iBAAS,cAAc;WAsCT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAOD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,+RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"DataTableRow.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableRow.vue"],"names":[],"mappings":"AAcA,iBAAS,cAAc;WAoCT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AAOD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,+RAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,12 +1,12 @@
1
- import { openBlock as e, createElementBlock as o, renderSlot as r } from "vue";
2
- import n from "../../_virtual/_plugin-vue_export-helper.js";
3
- const c = {}, s = { class: "group contents w-fit min-w-full" };
4
- function l(t, a) {
5
- return e(), o("tr", s, [
6
- r(t.$slots, "default")
1
+ import { openBlock as t, createElementBlock as o, renderSlot as r } from "vue";
2
+ import c from "../../_virtual/_plugin-vue_export-helper.js";
3
+ const n = {}, s = { class: "group contents" };
4
+ function a(e, l) {
5
+ return t(), o("tr", s, [
6
+ r(e.$slots, "default")
7
7
  ]);
8
8
  }
9
- const i = /* @__PURE__ */ n(c, [["render", l]]);
9
+ const d = /* @__PURE__ */ c(n, [["render", a]]);
10
10
  export {
11
- i as default
11
+ d as default
12
12
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ServerDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Server/ServerDropdown.vue"],"names":[],"mappings":"AAsKA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,IAAI,SAAS,EACpB,MAAM,EACP,MAAM,iCAAiC,CAAA;AAUxC,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;CACf,CAAC;;AAgRF,wBAOG"}
1
+ {"version":3,"file":"ServerDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Server/ServerDropdown.vue"],"names":[],"mappings":"AA+KA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,IAAI,SAAS,EACpB,MAAM,EACP,MAAM,iCAAiC,CAAA;AAUxC,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAA;CACf,CAAC;;AA2RF,wBAOG"}
@@ -1,8 +1,8 @@
1
- import { defineComponent as V, computed as i, watch as A, openBlock as n, createBlock as v, unref as a, withCtx as c, createElementVNode as s, createElementBlock as d, Fragment as m, renderList as h, createVNode as u, createCommentVNode as x, createTextVNode as z, toDisplayString as L } from "vue";
2
- import { ScalarPopover as W, ScalarDropdownDivider as q, ScalarIcon as E, ScalarFloatingBackdrop as F, ScalarButton as I } from "@scalar/components";
1
+ import { defineComponent as V, computed as u, watch as z, openBlock as n, createBlock as m, unref as s, withCtx as v, createElementVNode as a, createElementBlock as i, Fragment as c, renderList as h, createVNode as d, createCommentVNode as k, createTextVNode as L, toDisplayString as W } from "vue";
2
+ import { ScalarPopover as q, ScalarDropdownDivider as E, ScalarIcon as x, ScalarFloatingBackdrop as F, ScalarButton as I } from "@scalar/components";
3
3
  import { useLayout as M } from "../../hooks/useLayout.js";
4
4
  import { useWorkspace as P } from "../../store/store.js";
5
- import k from "./ServerDropdownItem.vue.js";
5
+ import y from "./ServerDropdownItem.vue.js";
6
6
  const T = ["onClick"], j = { class: "flex h-4 w-4 items-center justify-center" }, Q = /* @__PURE__ */ V({
7
7
  __name: "ServerDropdown",
8
8
  props: {
@@ -12,7 +12,7 @@ const T = ["onClick"], j = { class: "flex h-4 w-4 items-center justify-center" }
12
12
  target: {}
13
13
  },
14
14
  setup(l) {
15
- const { layout: y } = M(), { servers: p, collectionMutators: w, events: C, serverMutators: D } = P(), f = i(
15
+ const { layout: U } = M(), { servers: p, collectionMutators: w, events: A, serverMutators: C } = P(), f = u(
16
16
  () => {
17
17
  var e, r;
18
18
  return (r = (e = l.operation) == null ? void 0 : e.servers) == null ? void 0 : r.map((t) => {
@@ -23,14 +23,14 @@ const T = ["onClick"], j = { class: "flex h-4 w-4 items-center justify-center" }
23
23
  };
24
24
  });
25
25
  }
26
- ), b = i(
26
+ ), S = u(
27
27
  () => {
28
28
  var e, r;
29
29
  return (
30
30
  // Filters out servers already present in the request
31
31
  (r = (e = l.collection) == null ? void 0 : e.servers) == null ? void 0 : r.filter((t) => {
32
- var o, S;
33
- return !((S = (o = l.operation) == null ? void 0 : o.servers) != null && S.includes(t));
32
+ var o, g;
33
+ return !((g = (o = l.operation) == null ? void 0 : o.servers) != null && g.includes(t));
34
34
  }).map((t) => {
35
35
  var o;
36
36
  return {
@@ -40,30 +40,30 @@ const T = ["onClick"], j = { class: "flex h-4 w-4 items-center justify-center" }
40
40
  })
41
41
  );
42
42
  }
43
- ), U = i(
43
+ ), D = u(
44
44
  () => {
45
45
  var e, r;
46
- return ((e = f.value) == null ? void 0 : e.length) && ((r = b.value) == null ? void 0 : r.length);
46
+ return ((e = f.value) == null ? void 0 : e.length) && ((r = S.value) == null ? void 0 : r.length);
47
47
  }
48
48
  );
49
- A([() => l.collection, () => l.operation], ([e, r]) => {
49
+ z([() => l.collection, () => l.operation], ([e, r]) => {
50
50
  var o;
51
51
  if (!e || e.selectedServerUid || r != null && r.selectedServerUid)
52
52
  return;
53
53
  const t = (o = l.collection.servers) == null ? void 0 : o[0];
54
54
  t && w.edit(l.collection.uid, "selectedServerUid", t);
55
55
  });
56
- const B = () => C.commandPalette.emit({
56
+ const B = () => A.commandPalette.emit({
57
57
  commandName: "Add Server"
58
- }), N = i(() => {
58
+ }), N = u(() => {
59
59
  var e, r, t;
60
60
  return (r = (e = l.server) == null ? void 0 : e.url) != null && r.endsWith("/") ? l.server.url.slice(0, -1) : ((t = l.server) == null ? void 0 : t.url) || "";
61
- }), g = (e, r) => {
61
+ }), b = (e, r) => {
62
62
  if (!l.server) return;
63
63
  const t = l.server.variables || {};
64
- t[e] = { ...t[e], default: r }, D.edit(l.server.uid, "variables", t);
64
+ t[e] = { ...t[e], default: r }, C.edit(l.server.uid, "variables", t);
65
65
  };
66
- return (e, r) => (n(), v(a(W), {
66
+ return (e, r) => (n(), m(s(q), {
67
67
  class: "max-h-[inherit] p-0 text-sm",
68
68
  focus: "",
69
69
  offset: 0,
@@ -72,61 +72,72 @@ const T = ["onClick"], j = { class: "flex h-4 w-4 items-center justify-center" }
72
72
  target: e.target,
73
73
  teleport: `#${e.target}`
74
74
  }, {
75
- popover: c(({ close: t }) => [
76
- s("div", {
75
+ popover: v(({ close: t }) => [
76
+ a("div", {
77
77
  class: "custom-scroll flex max-h-[inherit] flex-col gap-1 border-t p-1",
78
78
  onClick: t
79
79
  }, [
80
- (n(!0), d(m, null, h(f.value, (o) => (n(), v(k, {
80
+ (n(!0), i(c, null, h(f.value, (o) => (n(), m(y, {
81
81
  key: o.id,
82
82
  collection: e.collection,
83
83
  operation: e.operation,
84
84
  server: e.server,
85
85
  serverOption: o,
86
86
  type: "request",
87
- "onUpdate:variable": g
87
+ "onUpdate:variable": b
88
88
  }, null, 8, ["collection", "operation", "server", "serverOption"]))), 128)),
89
- U.value ? (n(), d(m, { key: 0 }, [
90
- u(a(q)),
91
- r[1] || (r[1] = s("div", { class: "text-xxs text-c-2 px-2.5 py-1" }, "Collection", -1))
92
- ], 64)) : x("", !0),
93
- (n(!0), d(m, null, h(b.value, (o) => (n(), v(k, {
89
+ D.value ? (n(), i(c, { key: 0 }, [
90
+ d(s(E)),
91
+ r[2] || (r[2] = a("div", { class: "text-xxs text-c-2 px-2.5 py-1" }, "Collection", -1))
92
+ ], 64)) : k("", !0),
93
+ (n(!0), i(c, null, h(S.value, (o) => (n(), m(y, {
94
94
  key: o.id,
95
95
  collection: e.collection,
96
96
  operation: e.operation,
97
97
  server: e.server,
98
98
  serverOption: o,
99
99
  type: "collection",
100
- "onUpdate:variable": g
100
+ "onUpdate:variable": b
101
101
  }, null, 8, ["collection", "operation", "server", "serverOption"]))), 128)),
102
- a(y) !== "modal" ? (n(), d("button", {
102
+ s(U) !== "modal" ? (n(), i("button", {
103
103
  key: 1,
104
104
  class: "text-xxs p-1.75 hover:bg-b-2 flex cursor-pointer items-center gap-1.5 rounded",
105
105
  type: "button",
106
106
  onClick: B
107
107
  }, [
108
- s("div", j, [
109
- u(a(E), {
108
+ a("div", j, [
109
+ d(s(x), {
110
110
  icon: "Add",
111
111
  size: "sm"
112
112
  })
113
113
  ]),
114
- r[2] || (r[2] = s("span", null, "Add Server", -1))
115
- ])) : x("", !0)
114
+ r[3] || (r[3] = a("span", null, "Add Server", -1))
115
+ ])) : k("", !0)
116
116
  ], 8, T)
117
117
  ]),
118
- backdrop: c(() => [
119
- u(a(F), { class: "-top-[--scalar-address-bar-height] rounded-lg" })
118
+ backdrop: v(() => [
119
+ d(s(F), { class: "-top-[--scalar-address-bar-height] rounded-lg" })
120
120
  ]),
121
- default: c(() => [
122
- u(a(I), {
121
+ default: v(() => [
122
+ d(s(I), {
123
123
  class: "gap-0.75 z-context-plus h-6.5 hover:bg-b-2 font-code ml-0.75 text-c-2 whitespace-nowrap rounded border px-1.5 text-xs lg:text-sm",
124
124
  variant: "ghost"
125
125
  }, {
126
- default: c(() => [
127
- r[0] || (r[0] = s("span", { class: "sr-only" }, "Server:", -1)),
128
- z(" " + L(N.value), 1)
129
- ]),
126
+ default: v(() => {
127
+ var t;
128
+ return [
129
+ (t = e.operation) != null && t.selectedServerUid || e.collection.selectedServerUid ? (n(), i(c, { key: 0 }, [
130
+ r[0] || (r[0] = a("span", { class: "sr-only" }, "Server:", -1)),
131
+ L(" " + W(N.value), 1)
132
+ ], 64)) : (n(), i(c, { key: 1 }, [
133
+ r[1] || (r[1] = a("span", { class: "sr-only" }, "Add Server", -1)),
134
+ d(s(x), {
135
+ icon: "Add",
136
+ size: "xs"
137
+ })
138
+ ], 64))
139
+ ];
140
+ }),
130
141
  _: 1
131
142
  })
132
143
  ]),
@@ -1 +1 @@
1
- {"version":3,"file":"ServerDropdownItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Server/ServerDropdownItem.vue"],"names":[],"mappings":"AAyHA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,IAAI,SAAS,EACpB,MAAM,EACP,MAAM,iCAAiC,CAAA;AAQxC,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,SAAS,EAAE,SAAS,GAAG,SAAS,CAAA;IAChC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,YAAY,EAAE;QACZ,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,CAAA;QACjB,KAAK,EAAE,MAAM,CAAA;KACd,CAAA;IACD,IAAI,EAAE,YAAY,GAAG,SAAS,CAAA;CAC/B,CAAC;;;;;;AA8LF,wBAQG"}
1
+ {"version":3,"file":"ServerDropdownItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Server/ServerDropdownItem.vue"],"names":[],"mappings":"AAmJA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,IAAI,SAAS,EACpB,MAAM,EACP,MAAM,iCAAiC,CAAA;AAQxC,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,SAAS,EAAE,SAAS,GAAG,SAAS,CAAA;IAChC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,YAAY,EAAE;QACZ,EAAE,EAAE,MAAM,CAAC,KAAK,CAAC,CAAA;QACjB,KAAK,EAAE,MAAM,CAAA;KACd,CAAA;IACD,IAAI,EAAE,YAAY,GAAG,SAAS,CAAA;CAC/B,CAAC;;;;;;AAwNF,wBAQG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ServerDropdownItem.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-2ba27de2"]]);
4
+ const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-2ef48662"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1,8 +1,8 @@
1
- import { defineComponent as C, useId as O, computed as b, openBlock as l, createElementBlock as d, normalizeClass as V, createElementVNode as p, mergeProps as M, unref as a, createVNode as c, toDisplayString as E, withModifiers as I, createCommentVNode as f } from "vue";
2
- import { ScalarListboxCheckbox as N, ScalarMarkdown as q } from "@scalar/components";
1
+ import { defineComponent as O, useId as U, computed as y, openBlock as c, createElementBlock as p, normalizeClass as V, createElementVNode as u, mergeProps as q, unref as a, createVNode as v, toDisplayString as M, withModifiers as E, createCommentVNode as h } from "vue";
2
+ import { ScalarListboxCheckbox as I, ScalarMarkdown as N } from "@scalar/components";
3
3
  import B from "./ServerVariablesForm.vue.js";
4
4
  import { useWorkspace as D } from "../../store/store.js";
5
- const P = ["aria-expanded"], j = { class: "overflow-hidden text-ellipsis whitespace-nowrap" }, z = ["id"], L = { key: 0 }, U = { class: "description text-c-3 px-3 py-1.5" }, G = /* @__PURE__ */ C({
5
+ const P = ["aria-expanded"], j = { class: "overflow-hidden text-ellipsis whitespace-nowrap" }, z = ["id"], L = { key: 0 }, W = { class: "description text-c-3 px-3 py-1.5" }, H = /* @__PURE__ */ O({
6
6
  __name: "ServerDropdownItem",
7
7
  props: {
8
8
  collection: {},
@@ -12,68 +12,71 @@ const P = ["aria-expanded"], j = { class: "overflow-hidden text-ellipsis whitesp
12
12
  type: {}
13
13
  },
14
14
  emits: ["update:variable"],
15
- setup(h, { emit: S }) {
16
- const t = h, g = S, u = O(), { collectionMutators: k, requestMutators: v, servers: x } = D(), y = (e, r) => {
17
- var o, i;
18
- m(e) && (r == null || r.stopPropagation()), t.type === "collection" && t.collection ? ((i = (o = t.operation) == null ? void 0 : o.servers) != null && i.length && v.edit(t.operation.uid, "selectedServerUid", null), k.edit(
19
- t.collection.uid,
20
- "selectedServerUid",
21
- e
22
- )) : t.type === "request" && t.operation && v.edit(t.operation.uid, "selectedServerUid", e);
23
- }, s = b(
24
- () => {
25
- var e;
26
- return ((e = t.server) == null ? void 0 : e.uid) === t.serverOption.id;
15
+ setup(g, { emit: k }) {
16
+ const e = g, x = k, f = U(), { collectionMutators: m, requestMutators: l, servers: _ } = D(), w = (t, r) => {
17
+ var i, s, n, S;
18
+ if (b(t) && (r == null || r.stopPropagation()), o.value) {
19
+ (s = (i = e.operation) == null ? void 0 : i.servers) != null && s.length && l.edit(e.operation.uid, "selectedServerUid", null), e.type === "collection" ? m.edit(
20
+ e.collection.uid,
21
+ "selectedServerUid",
22
+ void 0
23
+ ) : e.type === "request" && e.operation && l.edit(e.operation.uid, "selectedServerUid", null);
24
+ return;
27
25
  }
28
- ), m = (e) => {
29
- if (!e) return !1;
30
- const r = x[e];
26
+ e.type === "collection" && e.collection ? ((S = (n = e.operation) == null ? void 0 : n.servers) != null && S.length && l.edit(e.operation.uid, "selectedServerUid", null), m.edit(
27
+ e.collection.uid,
28
+ "selectedServerUid",
29
+ t
30
+ )) : e.type === "request" && e.operation && l.edit(e.operation.uid, "selectedServerUid", t);
31
+ }, o = y(() => e.type === "collection" ? e.collection.selectedServerUid === e.serverOption.id : e.type === "request" && e.operation ? e.operation.selectedServerUid === e.serverOption.id : !1), b = (t) => {
32
+ if (!t) return !1;
33
+ const r = _[t];
31
34
  return Object.keys((r == null ? void 0 : r.variables) ?? {}).length > 0;
32
- }, n = b(
35
+ }, d = y(
33
36
  () => {
34
- var e;
35
- return s.value && m(((e = t.server) == null ? void 0 : e.uid) ?? "");
37
+ var t;
38
+ return o.value && b(((t = e.server) == null ? void 0 : t.uid) ?? "");
36
39
  }
37
- ), _ = (e, r) => {
38
- g("update:variable", e, r);
40
+ ), C = (t, r) => {
41
+ x("update:variable", t, r);
39
42
  };
40
- return (e, r) => {
41
- var o, i;
42
- return l(), d("div", {
43
- class: V(["group/item flex min-h-fit flex-col rounded border", { "border-transparent": !s.value }])
43
+ return (t, r) => {
44
+ var i, s;
45
+ return c(), p("div", {
46
+ class: V(["group/item flex min-h-fit flex-col rounded border", { "border-transparent": !o.value }])
44
47
  }, [
45
- p("button", M(n.value ? { "aria-controls": a(u) } : {}, {
46
- "aria-expanded": n.value,
47
- class: ["flex min-h-8 cursor-pointer items-center gap-1.5 rounded px-1.5", s.value ? "text-c-1 bg-b-2" : "hover:bg-b-2"],
48
+ u("button", q(d.value ? { "aria-controls": a(f) } : {}, {
49
+ "aria-expanded": d.value,
50
+ class: ["flex min-h-8 cursor-pointer items-center gap-1.5 rounded px-1.5", o.value ? "text-c-1 bg-b-2" : "hover:bg-b-2"],
48
51
  type: "button",
49
- onClick: r[0] || (r[0] = (w) => y(e.serverOption.id, w))
52
+ onClick: r[0] || (r[0] = (n) => w(t.serverOption.id, n))
50
53
  }), [
51
- c(a(N), { selected: s.value }, null, 8, ["selected"]),
52
- p("span", j, E(e.serverOption.label), 1)
54
+ v(a(I), { selected: o.value }, null, 8, ["selected"]),
55
+ u("span", j, M(t.serverOption.label), 1)
53
56
  ], 16, P),
54
- n.value ? (l(), d("div", {
57
+ d.value ? (c(), p("div", {
55
58
  key: 0,
56
- id: a(u),
59
+ id: a(f),
57
60
  class: "bg-b-2 divide divide-y rounded-b border-t *:pl-4",
58
- onClick: r[1] || (r[1] = I(() => {
61
+ onClick: r[1] || (r[1] = E(() => {
59
62
  }, ["stop"]))
60
63
  }, [
61
- c(B, {
62
- variables: (o = e.server) == null ? void 0 : o.variables,
63
- "onUpdate:variable": _
64
+ v(B, {
65
+ variables: (i = t.server) == null ? void 0 : i.variables,
66
+ "onUpdate:variable": C
64
67
  }, null, 8, ["variables"]),
65
- (i = e.server) != null && i.description ? (l(), d("div", L, [
66
- p("div", U, [
67
- c(a(q), {
68
- value: e.server.description
68
+ (s = t.server) != null && s.description ? (c(), p("div", L, [
69
+ u("div", W, [
70
+ v(a(N), {
71
+ value: t.server.description
69
72
  }, null, 8, ["value"])
70
73
  ])
71
- ])) : f("", !0)
72
- ], 8, z)) : f("", !0)
74
+ ])) : h("", !0)
75
+ ], 8, z)) : h("", !0)
73
76
  ], 2);
74
77
  };
75
78
  }
76
79
  });
77
80
  export {
78
- G as default
81
+ H as default
79
82
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent as p, ref as m, openBlock as f, createBlock as v, withCtx as n, createElementVNode as u, createVNode as l, unref as s } from "vue";
2
- import { ScalarButton as x, ScalarTextField as V } from "@scalar/components";
1
+ import { defineComponent as p, ref as u, openBlock as f, createBlock as v, withCtx as n, createElementVNode as m, createVNode as l, unref as s } from "vue";
2
+ import { ScalarButton as x, ScalarTextInput as V } from "@scalar/components";
3
3
  import { LibraryIcon as _ } from "@scalar/icons";
4
4
  import b from "../../IconSelector.vue.js";
5
5
  import S from "./SidebarListElementForm.vue.js";
6
- const C = { class: "grid grid-cols-[auto,1fr] gap-2" }, g = { class: "flex aspect-square" }, k = /* @__PURE__ */ p({
6
+ const C = { class: "grid grid-cols-[auto,1fr] gap-2" }, g = { class: "flex aspect-square" }, $ = /* @__PURE__ */ p({
7
7
  __name: "EditSidebarListCollection",
8
8
  props: {
9
9
  name: {},
@@ -11,14 +11,14 @@ const C = { class: "grid grid-cols-[auto,1fr] gap-2" }, g = { class: "flex aspec
11
11
  },
12
12
  emits: ["close", "edit"],
13
13
  setup(d, { emit: c }) {
14
- const r = d, i = c, a = m(r.name), o = m(r.icon);
14
+ const r = d, i = c, a = u(r.name), o = u(r.icon);
15
15
  return (w, e) => (f(), v(S, {
16
16
  onCancel: e[2] || (e[2] = (t) => i("close")),
17
17
  onSubmit: e[3] || (e[3] = (t) => i("edit", a.value, o.value))
18
18
  }, {
19
19
  default: n(() => [
20
- u("div", C, [
21
- u("div", g, [
20
+ m("div", C, [
21
+ m("div", g, [
22
22
  l(b, {
23
23
  modelValue: o.value,
24
24
  "onUpdate:modelValue": e[0] || (e[0] = (t) => o.value = t),
@@ -54,5 +54,5 @@ const C = { class: "grid grid-cols-[auto,1fr] gap-2" }, g = { class: "flex aspec
54
54
  }
55
55
  });
56
56
  export {
57
- k as default
57
+ $ as default
58
58
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as a, ref as i, openBlock as u, createBlock as s, withCtx as d, createVNode as p, unref as f } from "vue";
2
- import { ScalarTextField as c } from "@scalar/components";
2
+ import { ScalarTextInput as c } from "@scalar/components";
3
3
  import v from "./SidebarListElementForm.vue.js";
4
4
  const C = /* @__PURE__ */ a({
5
5
  __name: "EditSidebarListElement",
@@ -7,8 +7,8 @@ const C = /* @__PURE__ */ a({
7
7
  name: {}
8
8
  },
9
9
  emits: ["close", "edit"],
10
- setup(l, { emit: m }) {
11
- const r = l, n = m, t = i(r.name);
10
+ setup(m, { emit: l }) {
11
+ const r = m, n = l, t = i(r.name);
12
12
  return (x, e) => (u(), s(v, {
13
13
  onCancel: e[1] || (e[1] = (o) => n("close")),
14
14
  onSubmit: e[2] || (e[2] = (o) => n("edit", t.value))
@@ -1 +1 @@
1
- {"version":3,"file":"active-entities.d.ts","sourceRoot":"","sources":["../../src/store/active-entities.ts"],"names":[],"mappings":"AAEA,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAC5F,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