@scalar/api-client 2.0.43 → 2.0.45

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 (87) hide show
  1. package/CHANGELOG.md +24 -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 +77 -69
  5. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  6. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  7. package/dist/components/ContextBar.vue.d.ts.map +1 -1
  8. package/dist/components/ContextBar.vue.js +5 -23
  9. package/dist/components/ContextBar.vue2.js +25 -2
  10. package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.js +1 -1
  11. package/dist/components/Form/Form.vue.d.ts +12 -3
  12. package/dist/components/Form/Form.vue.d.ts.map +1 -1
  13. package/dist/components/Form/Form.vue.js +24 -24
  14. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  15. package/dist/components/HttpMethod/HttpMethod.vue.js +25 -22
  16. package/dist/components/SideNav/SideHelp.vue.js +1 -1
  17. package/dist/components/SideNav/SideNavLink.vue.js +2 -2
  18. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  19. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  20. package/dist/components/Sidebar/SidebarButton.vue.js +1 -1
  21. package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
  22. package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
  23. package/dist/components/Sidebar/SidebarListElement.vue2.js +21 -21
  24. package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
  25. package/dist/components/Sidebar/SidebarListElementActions.vue.js +19 -18
  26. package/dist/components/Sidebar/SidebarToggle.vue.js +1 -1
  27. package/dist/components/SubpageHeader.vue.d.ts.map +1 -1
  28. package/dist/components/SubpageHeader.vue.js +3 -3
  29. package/dist/components/SubpageHeader.vue2.js +7 -7
  30. package/dist/components/TopNav/TopNav.vue.js +2 -2
  31. package/dist/components/TopNav/TopNav.vue2.js +2 -2
  32. package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
  33. package/dist/components/TopNav/TopNavItem.vue.js +2 -2
  34. package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
  35. package/dist/components/ViewLayout/ViewLayout.vue.js +6 -6
  36. package/dist/components/ViewLayout/ViewLayoutContent.vue.js +1 -1
  37. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +1 -1
  38. package/dist/errors.d.ts +5 -0
  39. package/dist/errors.d.ts.map +1 -0
  40. package/dist/errors.js +7 -0
  41. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
  42. package/dist/layouts/App/create-api-client-app.d.ts +36 -36
  43. package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
  44. package/dist/layouts/Modal/create-api-client-modal.d.ts +72 -72
  45. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  46. package/dist/layouts/Modal/create-api-client-modal.js +26 -18
  47. package/dist/libs/create-client.d.ts +39 -37
  48. package/dist/libs/create-client.d.ts.map +1 -1
  49. package/dist/libs/eventBusses/index.d.ts +1 -0
  50. package/dist/libs/eventBusses/index.d.ts.map +1 -1
  51. package/dist/libs/eventBusses/index.js +3 -1
  52. package/dist/libs/eventBusses/requestStatusBus.d.ts +5 -0
  53. package/dist/libs/eventBusses/requestStatusBus.d.ts.map +1 -0
  54. package/dist/libs/eventBusses/requestStatusBus.js +5 -0
  55. package/dist/libs/index.js +7 -5
  56. package/dist/libs/sendRequest.d.ts +2 -0
  57. package/dist/libs/sendRequest.d.ts.map +1 -1
  58. package/dist/libs/sendRequest.js +46 -37
  59. package/dist/store/workspace.d.ts +121 -120
  60. package/dist/store/workspace.d.ts.map +1 -1
  61. package/dist/store/workspace.js +274 -274
  62. package/dist/style.css +1 -1
  63. package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
  64. package/dist/views/Cookies/CookieForm.vue.js +34 -17
  65. package/dist/views/Cookies/Cookies.vue2.js +9 -9
  66. package/dist/views/Environment/Environment.vue2.js +24 -24
  67. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  68. package/dist/views/Request/Request.vue.js +2 -2
  69. package/dist/views/Request/Request.vue2.js +170 -166
  70. package/dist/views/Request/RequestSection/RequestAuth.vue.d.ts.map +1 -1
  71. package/dist/views/Request/RequestSection/RequestAuth.vue.js +2 -2
  72. package/dist/views/Request/RequestSection/RequestAuth.vue2.js +115 -126
  73. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
  74. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +63 -42
  75. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  76. package/dist/views/Request/RequestSection/RequestSection.vue.js +69 -51
  77. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  78. package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
  79. package/dist/views/Request/RequestSection/RequestTable.vue2.js +47 -44
  80. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
  81. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +30 -28
  82. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  83. package/dist/views/Request/RequestSidebarItem.vue2.js +4 -4
  84. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +18 -18
  85. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
  86. package/dist/views/Request/components/WorkspaceDropdown.vue.js +1 -1
  87. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.0.45
4
+
5
+ ### Patch Changes
6
+
7
+ - ee80ee5: feat: allow renaming requests, cookies, environments
8
+ - f3fec79: fix: adds delete sidebar list element close event
9
+ - 2301345: fix: authentication select
10
+ - 57f5691: feat: set path variables from url
11
+ - faf3ed9: fix: style updates to client app
12
+ - a1c73a0: feat(api-client): improve client request loading and feedback
13
+ - Updated dependencies [faf3ed9]
14
+ - @scalar/themes@0.9.21
15
+ - @scalar/components@0.12.28
16
+ - @scalar/oas-utils@0.2.26
17
+
18
+ ## 2.0.44
19
+
20
+ ### Patch Changes
21
+
22
+ - d65dbcb: fix: long content info button position
23
+ - 9cc6311: fix: add overload to servers as prop for create client app
24
+ - Updated dependencies [9cc6311]
25
+ - @scalar/oas-utils@0.2.25
26
+
3
27
  ## 2.0.43
4
28
 
5
29
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBar.vue"],"names":[],"mappings":";AAulBA,wBAKG"}
1
+ {"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBar.vue"],"names":[],"mappings":";AAmpBA,wBAKG"}
@@ -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-556303b4"]]);
4
+ const d = /* @__PURE__ */ r(o, [["__scopeId", "data-v-6d9e4813"]]);
5
5
  export {
6
- m as default
6
+ d as default
7
7
  };
@@ -1,121 +1,129 @@
1
- import { defineComponent as q, ref as c, watch as V, unref as l, openBlock as B, createElementBlock as I, createElementVNode as o, createVNode as s, withCtx as _, normalizeClass as b, normalizeStyle as R, createCommentVNode as z, pushScopeId as M, popScopeId as U } from "vue";
2
- import $ from "../CodeInput/CodeInput.vue.js";
3
- import { useWorkspace as O } from "../../store/workspace.js";
4
- import { Listbox as H } from "@headlessui/vue";
5
- import { ScalarButton as N, ScalarIcon as T } from "@scalar/components";
6
- import { REQUEST_METHODS as L } from "@scalar/oas-utils/helpers";
7
- import { isMacOS as A } from "@scalar/use-tooltip";
8
- import { useMagicKeys as D, whenever as K } from "@vueuse/core";
9
- import Q from "../HttpMethod/HttpMethod.vue.js";
10
- import W from "./AddressBarHistory.vue.js";
1
+ import { defineComponent as M, ref as d, watch as U, unref as l, openBlock as L, createElementBlock as $, createElementVNode as o, createVNode as n, withCtx as g, normalizeClass as w, normalizeStyle as O, createCommentVNode as H, pushScopeId as N, popScopeId as T } from "vue";
2
+ import A from "../CodeInput/CodeInput.vue.js";
3
+ import { useWorkspace as D } from "../../store/workspace.js";
4
+ import { Listbox as K } 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 P from "../HttpMethod/HttpMethod.vue.js";
10
+ import X from "./AddressBarHistory.vue.js";
11
11
  import { executeRequestBus as m } from "../../libs/eventBusses/executeRequestBus.js";
12
- const f = (n) => (M("data-v-556303b4"), n = n(), U(), n), j = {
12
+ import { requestStatusBus as Y } from "../../libs/eventBusses/requestStatusBus.js";
13
+ const v = (c) => (N("data-v-6d9e4813"), c = c(), T(), c), Z = {
13
14
  key: 0,
14
15
  class: "order-last lg:order-none lg:w-auto w-full"
15
- }, F = { class: "m-auto flex basis-1/2 flex-row items-center" }, G = { class: "pointer-events-none absolute left-0 top-0 z-10 block h-full w-full overflow-hidden" }, J = { class: "flex gap-1" }, P = { class: "scroll-timeline-x scroll-timeline-x-hidden relative flex w-full" }, X = /* @__PURE__ */ f(() => /* @__PURE__ */ o("div", { class: "fade-left" }, null, -1)), Y = /* @__PURE__ */ f(() => /* @__PURE__ */ o("div", { class: "fade-right" }, null, -1)), Z = /* @__PURE__ */ f(() => /* @__PURE__ */ o("span", { class: "text-xxs relative z-10 lg:flex hidden" }, "Send", -1)), ce = /* @__PURE__ */ q({
16
+ }, ee = { class: "m-auto flex basis-1/2 flex-row items-center" }, te = { class: "pointer-events-none absolute left-0 top-0 z-10 block h-full w-full overflow-hidden" }, le = { class: "flex gap-1" }, oe = { class: "scroll-timeline-x scroll-timeline-x-hidden relative flex w-full" }, ae = /* @__PURE__ */ v(() => /* @__PURE__ */ o("div", { class: "fade-left" }, null, -1)), re = /* @__PURE__ */ v(() => /* @__PURE__ */ o("div", { class: "fade-right" }, null, -1)), se = /* @__PURE__ */ v(() => /* @__PURE__ */ o("span", { class: "text-xxs relative z-10 lg:flex hidden" }, "Send", -1)), ge = /* @__PURE__ */ M({
16
17
  __name: "AddressBar",
17
- setup(n) {
18
+ setup(c) {
18
19
  const {
19
20
  activeRequest: t,
20
- activeExample: i,
21
+ activeExample: f,
21
22
  isReadOnly: p,
22
- requestMutators: v,
23
- requestExampleMutators: g,
24
- requestsHistory: w
25
- } = O(), x = c(w.value[0]), h = D();
26
- K(
27
- A() ? h.meta_enter : h.ctrl_enter,
23
+ requestMutators: h,
24
+ requestExampleMutators: S,
25
+ requestsHistory: k
26
+ } = D(), x = d(k.value[0]), _ = G();
27
+ J(
28
+ F() ? _.meta_enter : _.ctrl_enter,
28
29
  () => m.emit()
29
30
  );
30
- const k = (e) => {
31
- !t.value || t.value.path === e || v.edit(t.value.uid, "path", e);
31
+ const E = (e) => {
32
+ !t.value || t.value.path === e || h.edit(t.value.uid, "path", e);
32
33
  };
33
- V(
34
+ U(
34
35
  () => {
35
36
  var e;
36
37
  return (e = t.value) == null ? void 0 : e.path;
37
38
  },
38
39
  (e) => {
39
- t.value && k(e);
40
+ t.value && E(e);
40
41
  }
41
42
  );
42
- const d = c(100), u = c(!1);
43
- m.on(() => {
44
- if (u.value) return;
45
- u.value = !0;
46
- const e = setInterval(() => {
47
- d.value -= 5, d.value <= 0 && (clearInterval(e), d.value = 100, u.value = !1);
48
- }, 20);
43
+ const a = d(100), b = d(0), r = d(!1), i = d();
44
+ function y() {
45
+ r.value ? a.value -= (a.value - 15) / 60 : a.value -= b.value / 20, a.value <= 0 && (clearInterval(i.value), i.value = void 0, a.value = 100, r.value = !1);
46
+ }
47
+ function C() {
48
+ r.value || (r.value = !0, i.value = setInterval(y, 20));
49
+ }
50
+ function q() {
51
+ b.value = a.value, r.value = !1;
52
+ }
53
+ function B() {
54
+ clearInterval(i.value), i.value = void 0, a.value = 100, r.value = !1;
55
+ }
56
+ Y.on((e) => {
57
+ e === "start" && C(), e === "stop" && q(), e === "abort" && B();
49
58
  });
50
- function E(e) {
51
- t.value && v.edit(t.value.uid, "method", e);
59
+ function I(e) {
60
+ t.value && h.edit(t.value.uid, "method", e);
52
61
  }
53
- function S() {
62
+ function V() {
54
63
  if (!t.value) return;
55
64
  const { method: e } = t.value;
56
- return L[e].backgroundColor;
65
+ return j[e].backgroundColor;
57
66
  }
58
- const y = (e) => {
59
- i.value && g.edit(i.value.uid, "url", e);
67
+ const R = (e) => {
68
+ f.value && S.edit(f.value.uid, "url", e);
60
69
  };
61
- return (e, r) => l(t) && l(i) ? (B(), I("div", j, [
62
- o("div", F, [
63
- s(l(H), {
70
+ return (e, s) => l(t) && l(f) ? (L(), $("div", Z, [
71
+ o("div", ee, [
72
+ n(l(K), {
64
73
  modelValue: x.value,
65
- "onUpdate:modelValue": r[2] || (r[2] = (a) => x.value = a)
74
+ "onUpdate:modelValue": s[2] || (s[2] = (u) => x.value = u)
66
75
  }, {
67
- default: _(({ open: a }) => [
76
+ default: g(({ open: u }) => [
68
77
  o("div", {
69
- class: b([
70
- "text-xxs bg-b-1 relative flex w-full lg:min-w-[720px] lg:max-w-[720px] order-last lg:order-none flex-1 flex-row items-stretch rounded border p-[3px]",
71
- { "rounded-b-none": a },
72
- { "border-transparent": a }
78
+ class: w([
79
+ "text-xxs bg-b-1 relative flex w-full lg:min-w-[720px] lg:max-w-[720px] order-last lg:order-none flex-1 flex-row items-stretch rounded border-1/2 p-[3px]",
80
+ { "rounded-b-none": u },
81
+ { "border-transparent": u }
73
82
  ])
74
83
  }, [
75
- o("div", G, [
84
+ o("div", te, [
76
85
  o("div", {
77
- class: b(["bg-mix-transparent bg-mix-amount-95 absolute left-0 top-0 h-full w-full", S()]),
78
- style: R({ transform: `translate3d(-${d.value}%,0,0)` })
86
+ class: w(["bg-mix-transparent bg-mix-amount-90 absolute left-0 top-0 h-full w-full", V()]),
87
+ style: O({ transform: `translate3d(-${a.value}%,0,0)` })
79
88
  }, null, 6)
80
89
  ]),
81
- o("div", J, [
82
- s(Q, {
83
- class: "font-code text-xxs font-medium",
90
+ o("div", le, [
91
+ n(P, {
84
92
  isEditable: !l(p),
85
93
  isSquare: "",
86
94
  method: l(t).method,
87
- onChange: E
95
+ onChange: I
88
96
  }, null, 8, ["isEditable", "method"])
89
97
  ]),
90
- o("div", P, [
91
- X,
92
- s($, {
98
+ o("div", oe, [
99
+ ae,
100
+ n(A, {
93
101
  disableCloseBrackets: "",
94
102
  disabled: l(p),
95
103
  disableEnter: "",
96
104
  disableTabIndent: "",
97
105
  emitOnBlur: !1,
98
- modelValue: l(i).url,
106
+ modelValue: l(f).url,
99
107
  placeholder: "Enter URL to get started",
100
108
  server: "",
101
- onSubmit: r[0] || (r[0] = (C) => l(m).emit()),
102
- "onUpdate:modelValue": y
109
+ onSubmit: s[0] || (s[0] = (z) => l(m).emit()),
110
+ "onUpdate:modelValue": R
103
111
  }, null, 8, ["disabled", "modelValue"]),
104
- Y
112
+ re
105
113
  ]),
106
- s(W, { open: a }, null, 8, ["open"]),
107
- s(l(N), {
114
+ n(X, { open: u }, null, 8, ["open"]),
115
+ n(l(Q), {
108
116
  class: "relative h-auto shrink-0 gap-1 overflow-hidden pl-2 pr-2.5 py-1 z-[1] font-bold",
109
- disabled: u.value,
110
- onClick: r[1] || (r[1] = (C) => l(m).emit())
117
+ disabled: r.value,
118
+ onClick: s[1] || (s[1] = (z) => l(m).emit())
111
119
  }, {
112
- default: _(() => [
113
- s(l(T), {
120
+ default: g(() => [
121
+ n(l(W), {
114
122
  class: "relative z-10 shrink-0 fill-current",
115
123
  icon: "Play",
116
124
  size: "xs"
117
125
  }),
118
- Z
126
+ se
119
127
  ]),
120
128
  _: 1
121
129
  }, 8, ["disabled"])
@@ -124,9 +132,9 @@ const f = (n) => (M("data-v-556303b4"), n = n(), U(), n), j = {
124
132
  _: 1
125
133
  }, 8, ["modelValue"])
126
134
  ])
127
- ])) : z("", !0);
135
+ ])) : H("", !0);
128
136
  }
129
137
  });
130
138
  export {
131
- ce as default
139
+ ge as default
132
140
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/CodeInput.vue"],"names":[],"mappings":"AAAA,OA6SO,EAGL,KAAK,kBAAkB,EAExB,MAAM,wBAAwB,CAAA;;kBAeb,OAAO;gBACT,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;WACR,MAAM;eACF,OAAO;oBACF,OAAO;kBACT,OAAO;;;;;;;;;;;;;;kBAlBP,OAAO;gBACT,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;WACR,MAAM;eACF,OAAO;oBACF,OAAO;kBACT,OAAO;;;;;;;;;;;;;;iBAAP,OAAO;iBAlBP,OAAO;gBAGR,OAAO;sBAGD,OAAO;kBAMX,OAAO;0BACC,OAAO;cAGnB,OAAO;mBACF,OAAO;;qBA+QG,GAAG;kBACN,GAAG;;AApS9B,wBAuUC;AAMD,KAAK,kBAAkB,CAAC,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C,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -2,7 +2,7 @@ import o from "./CodeInput.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../../_virtual/_plugin-vue_export-helper.js";
5
- const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4c6b20da"]]);
5
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5894c305"]]);
6
6
  export {
7
- _ as default
7
+ a as default
8
8
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ContextBar.vue.d.ts","sourceRoot":"","sources":["../../src/components/ContextBar.vue"],"names":[],"mappings":";cAkCY,MAAM,EAAE;mBACH,MAAM;;;;cADX,MAAM,EAAE;mBACH,MAAM;;;;AAsFvB,wBAOG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"ContextBar.vue.d.ts","sourceRoot":"","sources":["../../src/components/ContextBar.vue"],"names":[],"mappings":";cA8CY,MAAM,EAAE;mBACH,MAAM;;;;cADX,MAAM,EAAE;mBACH,MAAM;;;;AA6FvB,wBAOG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,25 +1,7 @@
1
- import { defineComponent as r, openBlock as n, createElementBlock as o, Fragment as i, renderList as s, normalizeClass as c, toDisplayString as a } from "vue";
2
- const p = { class: "request-section-content request-section-content-filter bg-b-2 text-c-3 bg-b-1 sticky top-0 z-10 mb-2.5 hidden xl:flex justify-center rounded p-[2.25px] text-xs gap-0.5" }, l = ["isActive", "onClick"], v = /* @__PURE__ */ r({
3
- __name: "ContextBar",
4
- props: {
5
- sections: {},
6
- activeSection: {}
7
- },
8
- emits: ["setActiveSection"],
9
- setup(d) {
10
- return (t, b) => (n(), o("div", p, [
11
- (n(!0), o(i, null, s(t.sections, (e) => (n(), o("button", {
12
- key: e,
13
- class: c(["hover:bg-b-3 w-full rounded px-1 py-1 text-center font-medium", [
14
- t.activeSection === e ? "bg-b-1 text-c-1 dark:bg-b-3 border pointer-events-none" : "border border-transparent"
15
- ]]),
16
- isActive: t.activeSection === e,
17
- type: "button",
18
- onClick: (u) => t.$emit("setActiveSection", e)
19
- }, a(e), 11, l))), 128))
20
- ]));
21
- }
22
- });
1
+ import o from "./ContextBar.vue2.js";
2
+ /* empty css */
3
+ import t from "../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4d2fa661"]]);
23
5
  export {
24
- v as default
6
+ m as default
25
7
  };
@@ -1,4 +1,27 @@
1
- import f from "./ContextBar.vue.js";
1
+ import { defineComponent as r, openBlock as n, createElementBlock as o, createElementVNode as s, Fragment as i, renderList as c, normalizeClass as a, toDisplayString as d } from "vue";
2
+ const p = { class: "fade-request-section-content sticky top-0 z-10 pointer-events-none" }, l = { class: "request-section-content request-section-content-filter bg-b-2 text-c-3 bg-b-1 mb-2.5 hidden xl:flex justify-center rounded p-[2.25px] text-xs gap-0.5 pointer-events-auto" }, u = ["isActive", "onClick"], _ = /* @__PURE__ */ r({
3
+ __name: "ContextBar",
4
+ props: {
5
+ sections: {},
6
+ activeSection: {}
7
+ },
8
+ emits: ["setActiveSection"],
9
+ setup(b) {
10
+ return (t, m) => (n(), o("div", p, [
11
+ s("div", l, [
12
+ (n(!0), o(i, null, c(t.sections, (e) => (n(), o("button", {
13
+ key: e,
14
+ class: a(["hover:bg-b-3 w-full rounded px-1 py-1 text-center font-medium", [
15
+ t.activeSection === e ? "bg-b-1 text-c-1 dark:bg-b-3 border pointer-events-none" : "border border-transparent"
16
+ ]]),
17
+ isActive: t.activeSection === e,
18
+ type: "button",
19
+ onClick: (v) => t.$emit("setActiveSection", e)
20
+ }, d(e), 11, u))), 128))
21
+ ])
22
+ ]));
23
+ }
24
+ });
2
25
  export {
3
- f as default
26
+ _ as default
4
27
  };
@@ -7,7 +7,7 @@ const w = /* @__PURE__ */ c({
7
7
  setup(g) {
8
8
  const { toggleDarkMode: t, isDark: a } = f();
9
9
  return (k, o) => (l(), s("button", {
10
- class: "min-w-[37px] max-w-[42px] hover:bg-b-2 flex items-center justify-center rounded-lg p-[7px] text-c-3 focus:text-c-1 w-full aspect-square scalar-app-nav-padding",
10
+ class: "min-w-[37px] max-w-[42px] hover:bg-b-3 flex items-center justify-center rounded-lg p-[7px] text-c-3 focus:text-c-1 w-full aspect-square scalar-app-nav-padding",
11
11
  type: "button",
12
12
  onClick: o[0] || (o[0] = //@ts-ignore
13
13
  (...n) => e(t) && e(t)(...n))
@@ -1,5 +1,8 @@
1
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
2
- title: string;
1
+ declare function __VLS_template(): {
2
+ title?(_: {}): any;
3
+ };
4
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToOption<{
5
+ title?: string;
3
6
  options: {
4
7
  key: string;
5
8
  label: string;
@@ -8,7 +11,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
8
11
  data: Record<string, any>;
9
12
  onUpdate: (key: string, value: any) => void;
10
13
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
11
- title: string;
14
+ title?: string;
12
15
  options: {
13
16
  key: string;
14
17
  label: string;
@@ -17,7 +20,13 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
17
20
  data: Record<string, any>;
18
21
  onUpdate: (key: string, value: any) => void;
19
22
  }>>>, {}, {}>;
23
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
20
24
  export default _default;
25
+ type __VLS_WithTemplateSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
21
30
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
22
31
  type __VLS_TypePropsToOption<T> = {
23
32
  [K in keyof T]-?: {} extends Pick<T, K> ? {
@@ -1 +1 @@
1
- {"version":3,"file":"Form.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Form/Form.vue"],"names":[],"mappings":";WA+CS,MAAM;aACJ;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,EAAE;UACxD,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;cACf,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI;;WAHpC,MAAM;aACJ;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,EAAE;UACxD,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;cACf,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI;;AAiH7C,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"Form.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Form/Form.vue"],"names":[],"mappings":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,CAAC"}
@@ -1,9 +1,9 @@
1
- import { defineComponent as s, openBlock as a, createBlock as o, withCtx as t, createElementVNode as n, toDisplayString as m, createElementBlock as p, Fragment as c, renderList as u, normalizeClass as i, createVNode as f, createTextVNode as _, createCommentVNode as k } from "vue";
2
- import y from "../DataTable/DataTable.vue.js";
1
+ import { defineComponent as m, openBlock as t, createBlock as o, withCtx as l, createElementBlock as n, toDisplayString as s, renderSlot as p, createElementVNode as c, Fragment as i, renderList as u, normalizeClass as f, createVNode as _, createTextVNode as k, createCommentVNode as y } from "vue";
2
+ import h from "../DataTable/DataTable.vue.js";
3
3
  import V from "../DataTable/DataTableInput.vue.js";
4
- import h from "../DataTable/DataTableRow.vue.js";
5
- import b from "../ViewLayout/ViewLayoutSection.vue.js";
6
- const g = { class: "custom-scroll flex flex-1 flex-col gap-1.5 px-5 py-5" }, w = /* @__PURE__ */ s({
4
+ import b from "../DataTable/DataTableRow.vue.js";
5
+ import g from "../ViewLayout/ViewLayoutSection.vue.js";
6
+ const C = { key: 0 }, N = { class: "custom-scroll flex flex-1 flex-col gap-1.5 px-5 py-5" }, w = /* @__PURE__ */ m({
7
7
  __name: "Form",
8
8
  props: {
9
9
  title: {},
@@ -11,30 +11,30 @@ const g = { class: "custom-scroll flex flex-1 flex-col gap-1.5 px-5 py-5" }, w =
11
11
  data: {},
12
12
  onUpdate: { type: Function }
13
13
  },
14
- setup(C) {
15
- return (e, N) => (a(), o(b, null, {
16
- title: t(() => [
17
- n("span", null, m(e.title), 1)
14
+ setup(U) {
15
+ return (e, B) => (t(), o(g, null, {
16
+ title: l(() => [
17
+ e.title ? (t(), n("span", C, s(e.title), 1)) : p(e.$slots, "title", { key: 1 })
18
18
  ]),
19
- default: t(() => [
20
- n("div", g, [
21
- Object.keys(e.data).length > 0 ? (a(), o(y, {
19
+ default: l(() => [
20
+ c("div", N, [
21
+ Object.keys(e.data).length > 0 ? (t(), o(h, {
22
22
  key: 0,
23
23
  columns: [""]
24
24
  }, {
25
- default: t(() => [
26
- (a(!0), p(c, null, u(e.options, (l, r) => (a(), o(h, {
25
+ default: l(() => [
26
+ (t(!0), n(i, null, u(e.options, (a, r) => (t(), o(b, {
27
27
  key: r,
28
- class: i({ "border-t": r === 0 })
28
+ class: f({ "border-t": r === 0 })
29
29
  }, {
30
- default: t(() => [
31
- f(V, {
32
- modelValue: String(e.data[l.key] ?? ""),
33
- placeholder: l.placeholder,
34
- "onUpdate:modelValue": (d) => e.onUpdate(l.key, d)
30
+ default: l(() => [
31
+ _(V, {
32
+ modelValue: String(e.data[a.key] ?? ""),
33
+ placeholder: a.placeholder,
34
+ "onUpdate:modelValue": (d) => e.onUpdate(a.key, d)
35
35
  }, {
36
- default: t(() => [
37
- _(m(l.label), 1)
36
+ default: l(() => [
37
+ k(s(a.label), 1)
38
38
  ]),
39
39
  _: 2
40
40
  }, 1032, ["modelValue", "placeholder", "onUpdate:modelValue"])
@@ -43,10 +43,10 @@ const g = { class: "custom-scroll flex flex-1 flex-col gap-1.5 px-5 py-5" }, w =
43
43
  }, 1032, ["class"]))), 128))
44
44
  ]),
45
45
  _: 1
46
- })) : k("", !0)
46
+ })) : y("", !0)
47
47
  ])
48
48
  ]),
49
- _: 1
49
+ _: 3
50
50
  }));
51
51
  }
52
52
  });
@@ -1 +1 @@
1
- {"version":3,"file":"HttpMethod.vue.d.ts","sourceRoot":"","sources":["../../../src/components/HttpMethod/HttpMethod.vue"],"names":[],"mappings":";eA8Fe,OAAO;YACV,MAAM;iBACD,OAAO;;;;;;;;eAFT,OAAO;YACV,MAAM;iBACD,OAAO;;;;;;;;cAFT,OAAO;gBAEL,OAAO;;AAuIxB,wBAOG;AAOH,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,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c,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,8 +1,8 @@
1
- import { defineComponent as g, computed as l, openBlock as i, createBlock as m, unref as t, withCtx as y, createElementVNode as n, normalizeClass as s, toDisplayString as p, createCommentVNode as q, createElementBlock as k } from "vue";
2
- import { ScalarListbox as x, ScalarIcon as w } from "@scalar/components";
3
- import { getRequest as B, REQUEST_METHODS as C } from "@scalar/oas-utils/helpers";
1
+ import { defineComponent as g, computed as l, openBlock as r, createBlock as m, unref as t, withCtx as y, createElementVNode as n, normalizeClass as a, toDisplayString as p, createCommentVNode as q, createElementBlock as k } from "vue";
2
+ import { ScalarListbox as x, ScalarIcon as C } from "@scalar/components";
3
+ import { getRequest as w, REQUEST_METHODS as B } from "@scalar/oas-utils/helpers";
4
4
  import { cva as V, cx as f } from "cva";
5
- const z = /* @__PURE__ */ g({
5
+ const j = /* @__PURE__ */ g({
6
6
  __name: "HttpMethod",
7
7
  props: {
8
8
  isSquare: { type: Boolean, default: !1 },
@@ -11,16 +11,19 @@ const z = /* @__PURE__ */ g({
11
11
  },
12
12
  emits: ["change"],
13
13
  setup(b, { emit: h }) {
14
- const r = b, v = h, a = l(() => B(r.method)), d = Object.entries(C).map(
15
- ([e, { short: o }]) => ({ id: e, label: o })
16
- ), u = l({
17
- get: () => d.find(({ id: e }) => e === r.method),
14
+ const i = b, v = h, o = l(() => w(i.method)), u = Object.entries(B).map(
15
+ ([e, { short: s }]) => ({
16
+ id: e,
17
+ label: e.charAt(0) + e.toLowerCase().slice(1)
18
+ })
19
+ ), d = l({
20
+ get: () => u.find(({ id: e }) => e === i.method),
18
21
  set: (e) => (e == null ? void 0 : e.id) && v("change", e.id)
19
22
  }), c = V({
20
23
  base: "text-center font-code text-3xs justify-center items-center flex",
21
24
  variants: {
22
25
  isSquare: {
23
- true: "px-2.5 rounded-md shadow-border whitespace-nowrap !bg-transparent font-bold",
26
+ true: "px-2.5 rounded-md border-1/2 whitespace-nowrap !bg-transparent font-bold",
24
27
  false: "rounded-full"
25
28
  },
26
29
  isEditable: {
@@ -28,25 +31,25 @@ const z = /* @__PURE__ */ g({
28
31
  false: "cusor-pointer"
29
32
  }
30
33
  }
31
- }), E = l(() => a.value.short);
32
- return (e, o) => e.isEditable ? (i(), m(t(x), {
34
+ }), E = l(() => o.value.short);
35
+ return (e, s) => e.isEditable ? (r(), m(t(x), {
33
36
  key: 0,
34
- modelValue: u.value,
35
- "onUpdate:modelValue": o[0] || (o[0] = (S) => u.value = S),
36
- options: t(d)
37
+ modelValue: d.value,
38
+ "onUpdate:modelValue": s[0] || (s[0] = (S) => d.value = S),
39
+ options: t(u)
37
40
  }, {
38
41
  default: y(() => [
39
42
  n("div", {
40
- class: s(["h-full", { "pointer-events-none": !e.isEditable }])
43
+ class: a(["h-full", { "pointer-events-none": !e.isEditable }])
41
44
  }, [
42
45
  n("button", {
43
- class: s(["relative h-full gap-1", t(f)(t(c)({ isSquare: e.isSquare, isEditable: e.isEditable }), a.value.color)]),
46
+ class: a(["relative h-full gap-1", t(f)(t(c)({ isSquare: e.isSquare, isEditable: e.isEditable }), o.value.color)]),
44
47
  type: "button"
45
48
  }, [
46
49
  n("span", null, p(E.value), 1),
47
- e.isEditable ? (i(), m(t(w), {
50
+ e.isEditable ? (r(), m(t(C), {
48
51
  key: 0,
49
- class: s(a.value.color),
52
+ class: a(o.value.color),
50
53
  icon: "ChevronDown",
51
54
  size: "xs"
52
55
  }, null, 8, ["class"])) : q("", !0)
@@ -54,13 +57,13 @@ const z = /* @__PURE__ */ g({
54
57
  ], 2)
55
58
  ]),
56
59
  _: 1
57
- }, 8, ["modelValue", "options"])) : (i(), k("div", {
60
+ }, 8, ["modelValue", "options"])) : (r(), k("div", {
58
61
  key: 1,
59
- class: s(["relative gap-1", t(f)(t(c)({ isSquare: e.isSquare, isEditable: e.isEditable }), a.value.color)]),
62
+ class: a(["relative gap-1", t(f)(t(c)({ isSquare: e.isSquare, isEditable: e.isEditable }), o.value.color)]),
60
63
  type: "button"
61
- }, p(a.value.short), 3));
64
+ }, p(o.value.short), 3));
62
65
  }
63
66
  });
64
67
  export {
65
- z as default
68
+ j as default
66
69
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as l, openBlock as o, createBlock as i, unref as s, withCtx as c, createElementVNode as e, createVNode as t } from "vue";
2
2
  import { ScalarDropdown as r, ScalarDropdownItem as a, ScalarIcon as n } from "@scalar/components";
3
3
  const d = {
4
- class: "min-w-[37px] max-w-[42px] hover:bg-b-2 flex items-center justify-center rounded-lg p-[7px] text-c-3 focus:text-c-1 scalar-app-nav-padding",
4
+ class: "min-w-[37px] max-w-[42px] hover:bg-b-3 flex items-center justify-center rounded-lg p-[7px] text-c-3 focus:text-c-1 scalar-app-nav-padding",
5
5
  type: "button"
6
6
  }, _ = /* @__PURE__ */ e("span", { class: "px-2.5 py-1.5 text-xs text-c-2 font-medium" }, "Support", -1), p = {
7
7
  class: "no-underline block",
@@ -21,8 +21,8 @@ const k = { class: "no-underline font-medium text-[11px] hidden scalar-app-show
21
21
  }, {
22
22
  default: p(() => [
23
23
  o("div", {
24
- class: l(["min-w-[37px] max-w-[42px] group-hover:bg-b-2 active:text-c-1 flex items-center justify-center rounded-lg p-[7px] scalar-app-nav-padding text-c-3", {
25
- "bg-b-2 transition-none group-hover:cursor-auto !text-c-1": e.active
24
+ class: l(["min-w-[37px] max-w-[42px] group-hover:bg-b-3 active:text-c-1 flex items-center justify-center rounded-lg p-[7px] scalar-app-nav-padding text-c-3", {
25
+ "bg-b-3 transition-none group-hover:cursor-auto !text-c-1": e.active
26
26
  }])
27
27
  }, [
28
28
  m(t(v), {
@@ -1 +1 @@
1
- {"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"AAsDA,iBAAS,cAAc;oBAwDK,GAAG;qBACF,GAAG;oBACJ,GAAG;EAe9B;AACD,QAAA,MAAM,eAAe;YApFW,MAAM;;YAAN,MAAM;aA0FpC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"Sidebar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/Sidebar.vue"],"names":[],"mappings":"AAuDA,iBAAS,cAAc;oBAwDK,GAAG;qBACF,GAAG;oBACJ,GAAG;EAe9B;AACD,QAAA,MAAM,eAAe;YApFW,MAAM;;YAAN,MAAM;aA0FpC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as a, openBlock as o, createElementBlock as r, renderSlot as t, unref as l, createElementVNode as n, toDisplayString as i, createCommentVNode as d, normalizeClass as m } from "vue";
2
2
  import { useWorkspace as c } from "../../store/workspace.js";
3
- const p = { class: "w-sidebar relative flex flex-col border-r bg-b-1" }, b = {
3
+ const p = { class: "w-sidebar relative flex flex-col border-r-1/2 bg-b-1" }, b = {
4
4
  key: 0,
5
- class: "xl:min-h-header py-2.5 flex items-center border-b px-4 text-sm"
5
+ class: "xl:min-h-header py-2.5 flex items-center border-b-1/2 px-4 text-sm"
6
6
  }, f = { class: "font-medium m-0 text-sm" }, x = /* @__PURE__ */ a({
7
7
  __name: "Sidebar",
8
8
  props: {