@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
@@ -1,22 +1,27 @@
1
- import { defineComponent as A, computed as f, ref as S, watch as q, openBlock as k, createBlock as R, withCtx as h, createVNode as l, unref as o, createElementVNode as u, createTextVNode as B, toDisplayString as C, withDirectives as i, vShow as a } from "vue";
2
- import E from "../../../components/ContextBar.vue.js";
3
- import O from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
4
- import { useWorkspace as g } from "../../../store/workspace.js";
5
- import H from "./RequestAuth.vue.js";
1
+ import { defineComponent as k, computed as h, ref as R, watch as B, openBlock as y, createBlock as b, withCtx as _, createVNode as l, unref as o, createElementVNode as m, createTextVNode as C, createElementBlock as E, createCommentVNode as N, withDirectives as a, vShow as s } from "vue";
2
+ import g from "../../../components/ContextBar.vue.js";
3
+ import w from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
4
+ import { useWorkspace as H } from "../../../store/workspace.js";
5
+ import O from "./RequestAuth.vue.js";
6
6
  import P from "./RequestBody.vue.js";
7
- import r from "./RequestParams.vue.js";
7
+ import d from "./RequestParams.vue.js";
8
8
  import T from "./RequestPathParams.vue.js";
9
- import { ScalarIcon as $ } from "@scalar/components";
10
- const w = { class: "flex-1" }, K = { class: "text-c-3 pl-1" }, N = { class: "request-section-content custom-scroll flex flex-1 flex-col px-2 xl:px-5 py-2.5" }, W = /* @__PURE__ */ A({
9
+ import { ScalarIcon as V } from "@scalar/components";
10
+ const K = { class: "flex-1 flex items-center pointer-events-none" }, $ = {
11
+ key: 0,
12
+ class: "absolute w-full h-full top-0 left-0 pointer-events-auto opacity-0 cursor-text",
13
+ for: "requestname"
14
+ }, Q = ["disabled", "value"], D = { class: "request-section-content custom-scroll flex flex-1 flex-col px-2 xl:px-5 py-2.5" }, X = /* @__PURE__ */ k({
11
15
  __name: "RequestSection",
12
- setup(V) {
16
+ setup(I) {
13
17
  const {
14
- activeRequest: s,
15
- activeSecuritySchemes: y,
16
- activeExample: m,
17
- activeSecurityRequirements: d,
18
- isReadOnly: _
19
- } = g(), n = ["POST", "PUT", "PATCH", "DELETE"], x = f(() => {
18
+ activeRequest: i,
19
+ activeSecuritySchemes: x,
20
+ activeExample: v,
21
+ activeSecurityRequirements: p,
22
+ isReadOnly: r,
23
+ requestMutators: A
24
+ } = H(), c = ["POST", "PUT", "PATCH", "DELETE"], S = h(() => {
20
25
  const t = [
21
26
  "All",
22
27
  "Auth",
@@ -26,79 +31,92 @@ const w = { class: "flex-1" }, K = { class: "text-c-3 pl-1" }, N = { class: "req
26
31
  "Query",
27
32
  "Body"
28
33
  ];
29
- return m.value.parameters.path.length || t.splice(t.indexOf("Request"), 1), n.includes(s.value.method) || t.splice(t.indexOf("Body"), 1), p.value && t.splice(t.indexOf("Auth"), 1), t;
30
- }), p = f(
31
- () => _.value && (d.value.length === 0 || JSON.stringify(d.value) === "[{}]")
32
- ), e = S("All");
33
- return q(s, (t) => {
34
- e.value === "Body" && !n.includes(t.method) && (e.value = "All");
35
- }), (t, v) => (k(), R(O, null, {
36
- title: h(() => {
37
- var c;
34
+ return v.value.parameters.path.length || t.splice(t.indexOf("Request"), 1), c.includes(i.value.method) || t.splice(t.indexOf("Body"), 1), f.value && t.splice(t.indexOf("Auth"), 1), t;
35
+ }), f = h(
36
+ () => r.value && (p.value.length === 0 || JSON.stringify(p.value) === "[{}]")
37
+ ), e = R("All");
38
+ B(i, (t) => {
39
+ e.value === "Body" && !c.includes(t.method) && (e.value = "All");
40
+ });
41
+ const q = (t) => {
42
+ const n = t.target;
43
+ A.edit(i.value.uid, "summary", n.value);
44
+ };
45
+ return (t, n) => (y(), b(w, null, {
46
+ title: _(() => {
47
+ var u;
38
48
  return [
39
- l(o($), {
40
- class: "text-c-3 mr-2",
49
+ l(o(V), {
50
+ class: "text-c-3 mr-2 pointer-events-none",
41
51
  icon: "ExternalLink",
42
52
  size: "sm",
43
53
  thickness: "2.5"
44
54
  }),
45
- u("div", w, [
46
- B(" Request "),
47
- u("span", K, C((c = o(s)) == null ? void 0 : c.summary), 1)
55
+ m("div", K, [
56
+ C(" Request "),
57
+ o(r) ? N("", !0) : (y(), E("label", $)),
58
+ m("input", {
59
+ id: "requestname",
60
+ class: "pl-1 outline-none border-0 text-c-2 rounded pointer-events-auto relative w-full",
61
+ disabled: o(r),
62
+ placeholder: "Request Name",
63
+ value: (u = o(i)) == null ? void 0 : u.summary,
64
+ onInput: q
65
+ }, null, 40, Q)
48
66
  ])
49
67
  ];
50
68
  }),
51
- default: h(() => [
52
- u("div", N, [
53
- l(E, {
69
+ default: _(() => [
70
+ m("div", D, [
71
+ l(g, {
54
72
  activeSection: e.value,
55
- sections: x.value,
56
- onSetActiveSection: v[0] || (v[0] = (c) => e.value = c)
73
+ sections: S.value,
74
+ onSetActiveSection: n[0] || (n[0] = (u) => e.value = u)
57
75
  }, null, 8, ["activeSection", "sections"]),
58
- i(l(H, {
76
+ a(l(O, {
59
77
  index: 0,
60
- securityScheme: o(y)[0],
78
+ securityScheme: o(x)[0],
61
79
  title: "Authentication"
62
80
  }, null, 8, ["securityScheme"]), [
63
81
  [
64
- a,
65
- !p.value && (e.value === "All" || e.value === "Auth")
82
+ s,
83
+ !f.value && (e.value === "All" || e.value === "Auth")
66
84
  ]
67
85
  ]),
68
- i(l(T, {
86
+ a(l(T, {
69
87
  paramKey: "path",
70
88
  title: "Path Variables"
71
89
  }, null, 512), [
72
90
  [
73
- a,
74
- (e.value === "All" || e.value === "Request") && o(m).parameters.path.length > 0
91
+ s,
92
+ (e.value === "All" || e.value === "Request") && o(v).parameters.path.length > 0
75
93
  ]
76
94
  ]),
77
- i(l(r, {
95
+ a(l(d, {
78
96
  paramKey: "cookies",
79
97
  title: "Cookies"
80
98
  }, null, 512), [
81
- [a, e.value === "All" || e.value === "Cookies"]
99
+ [s, e.value === "All" || e.value === "Cookies"]
82
100
  ]),
83
- i(l(r, {
101
+ a(l(d, {
84
102
  paramKey: "headers",
85
103
  title: "Headers"
86
104
  }, null, 512), [
87
- [a, e.value === "All" || e.value === "Headers"]
105
+ [s, e.value === "All" || e.value === "Headers"]
88
106
  ]),
89
- i(l(r, {
107
+ a(l(d, {
90
108
  paramKey: "query",
91
109
  title: "Query Parameters"
92
110
  }, null, 512), [
93
- [a, e.value === "All" || e.value === "Query"]
111
+ [s, e.value === "All" || e.value === "Query"]
94
112
  ]),
95
- i(l(P, {
113
+ a(l(P, {
96
114
  body: "foo",
97
115
  title: "Body"
98
116
  }, null, 512), [
99
117
  [
100
- a,
101
- (e.value === "All" || e.value === "Body") && n.includes(o(s).method)
118
+ s,
119
+ (e.value === "All" || e.value === "Body") && c.includes(o(i).method)
102
120
  ]
103
121
  ])
104
122
  ])
@@ -108,5 +126,5 @@ const w = { class: "flex-1" }, K = { class: "text-c-3 pl-1" }, N = { class: "req
108
126
  }
109
127
  });
110
128
  export {
111
- W as default
129
+ X as default
112
130
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RequestTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTable.vue"],"names":[],"mappings":"AAmMA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAA;;YAQ5E,uBAAuB,EAAE;IACjC,8BAA8B;sBACZ,OAAO;uBACN,OAAO;;;;;;;;;;;;;;YAHlB,uBAAuB,EAAE;IACjC,8BAA8B;sBACZ,OAAO;uBACN,OAAO;;;;;;;;;;;;;;qBADR,OAAO;sBACN,OAAO;;AA4c9B,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,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,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
+ {"version":3,"file":"RequestTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTable.vue"],"names":[],"mappings":"AAsMA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAA;;YAQ5E,uBAAuB,EAAE;IACjC,8BAA8B;sBACZ,OAAO;uBACN,OAAO;;;;;;;;;;;;;;YAHlB,uBAAuB,EAAE;IACjC,8BAA8B;sBACZ,OAAO;uBACN,OAAO;;;;;;;;;;;;;;qBADR,OAAO;sBACN,OAAO;;AAqd9B,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,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,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,7 +1,7 @@
1
1
  import o from "./RequestTable.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2b656c55"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0c169f89"]]);
5
5
  export {
6
- m as default
6
+ f as default
7
7
  };
@@ -1,12 +1,12 @@
1
- import { defineComponent as F, openBlock as u, createBlock as r, unref as m, withCtx as d, createElementBlock as y, Fragment as w, renderList as I, createCommentVNode as c, createVNode as i, createSlots as C, createTextVNode as U, toDisplayString as V, createElementVNode as p, computed as x, pushScopeId as E, popScopeId as T } from "vue";
2
- import k from "../../../components/CodeInput/CodeInput.vue.js";
3
- import N from "../../../components/DataTable/DataTable.vue.js";
1
+ import { defineComponent as F, openBlock as u, createBlock as r, unref as m, withCtx as d, createElementBlock as w, Fragment as V, renderList as C, createCommentVNode as c, createVNode as i, normalizeClass as I, createSlots as U, createTextVNode as x, toDisplayString as k, createElementVNode as p, computed as E, pushScopeId as T, popScopeId as N } from "vue";
2
+ import g from "../../../components/CodeInput/CodeInput.vue.js";
3
+ import q from "../../../components/DataTable/DataTable.vue.js";
4
4
  import f from "../../../components/DataTable/DataTableCell.vue.js";
5
- import q from "../../../components/DataTable/DataTableCheckbox.vue.js";
5
+ import z from "../../../components/DataTable/DataTableCheckbox.vue.js";
6
6
  import D from "../../../components/DataTable/DataTableRow.vue.js";
7
- import { ScalarButton as H, ScalarIcon as z } from "@scalar/components";
8
- import A from "./RequestTableTooltip.vue.js";
9
- const M = (s) => (E("data-v-2b656c55"), s = s(), T(), s), O = { class: "text-c-2 max-w-[100%] overflow-hidden filemask flex items-end justify-end" }, j = ["onClick"], K = /* @__PURE__ */ M(() => /* @__PURE__ */ p("span", null, "File", -1)), Z = /* @__PURE__ */ F({
7
+ import { ScalarButton as H, ScalarIcon as A } from "@scalar/components";
8
+ import M from "./RequestTableTooltip.vue.js";
9
+ const O = (s) => (T("data-v-0c169f89"), s = s(), N(), s), j = { class: "text-c-2 max-w-[100%] overflow-hidden filemask flex items-end justify-end" }, K = ["onClick"], L = /* @__PURE__ */ O(() => /* @__PURE__ */ p("span", null, "File", -1)), ee = /* @__PURE__ */ F({
10
10
  __name: "RequestTable",
11
11
  props: {
12
12
  items: {},
@@ -14,12 +14,12 @@ const M = (s) => (E("data-v-2b656c55"), s = s(), T(), s), O = { class: "text-c-2
14
14
  showUploadButton: { type: Boolean, default: !1 }
15
15
  },
16
16
  emits: ["updateRow", "toggleRow", "addRow", "deleteRow", "inputFocus", "inputBlur", "uploadFile", "removeFile"],
17
- setup(s, { emit: g }) {
18
- const h = s, t = g, B = h.isEnabledHidden ? ["", ""] : ["", "", "36px"], b = (e, n, l) => {
19
- t("updateRow", e, n, l);
20
- }, _ = (e) => {
21
- t("uploadFile", e);
22
- }, $ = (e) => !!(e.description || e.type || e.default || e.format), v = (e) => x(() => {
17
+ setup(s, { emit: h }) {
18
+ const B = s, a = h, _ = B.isEnabledHidden ? ["", ""] : ["", "", "36px"], b = (e, n, l) => {
19
+ a("updateRow", e, n, l);
20
+ }, $ = (e) => {
21
+ a("uploadFile", e);
22
+ }, v = (e) => !!(e.description || e.type || e.default || e.format), y = (e) => E(() => {
23
23
  if (e.type === "integer" && e.value !== void 0) {
24
24
  const n = Number(e.value);
25
25
  if (e.minimum !== void 0 && n < e.minimum)
@@ -29,39 +29,42 @@ const M = (s) => (E("data-v-2b656c55"), s = s(), T(), s), O = { class: "text-c-2
29
29
  }
30
30
  return !1;
31
31
  }), R = (e) => Array.isArray(e.default) && e.default.length === 1 ? e.default[0] : e.default;
32
- return (e, n) => (u(), r(N, {
32
+ return (e, n) => (u(), r(q, {
33
33
  class: "flex-1",
34
- columns: m(B)
34
+ columns: m(_)
35
35
  }, {
36
36
  default: d(() => [
37
- (u(!0), y(w, null, I(e.items, (l, a) => (u(), r(D, { key: a }, {
37
+ (u(!0), w(V, null, C(e.items, (l, t) => (u(), r(D, { key: t }, {
38
38
  default: d(() => [
39
- e.isEnabledHidden ? c("", !0) : (u(), r(q, {
39
+ e.isEnabledHidden ? c("", !0) : (u(), r(z, {
40
40
  key: 0,
41
41
  modelValue: l.enabled,
42
- "onUpdate:modelValue": (o) => t("toggleRow", a, o)
42
+ "onUpdate:modelValue": (o) => a("toggleRow", t, o)
43
43
  }, null, 8, ["modelValue", "onUpdate:modelValue"])),
44
44
  i(f, null, {
45
45
  default: d(() => [
46
- i(k, {
46
+ i(g, {
47
47
  disableCloseBrackets: "",
48
48
  disableEnter: "",
49
49
  disableTabIndent: "",
50
50
  modelValue: l.key,
51
51
  placeholder: "Key",
52
52
  required: l.required,
53
- onBlur: n[0] || (n[0] = (o) => t("inputBlur")),
54
- onFocus: n[1] || (n[1] = (o) => t("inputFocus")),
55
- onInput: (o) => e.items && a === e.items.length - 1 && t("addRow"),
56
- onSelectVariable: (o) => b(a, "key", o),
57
- "onUpdate:modelValue": (o) => t("updateRow", a, "key", o)
53
+ onBlur: n[0] || (n[0] = (o) => a("inputBlur")),
54
+ onFocus: n[1] || (n[1] = (o) => a("inputFocus")),
55
+ onInput: (o) => e.items && t === e.items.length - 1 && a("addRow"),
56
+ onSelectVariable: (o) => b(t, "key", o),
57
+ "onUpdate:modelValue": (o) => a("updateRow", t, "key", o)
58
58
  }, null, 8, ["modelValue", "required", "onInput", "onSelectVariable", "onUpdate:modelValue"])
59
59
  ]),
60
60
  _: 2
61
61
  }, 1024),
62
62
  i(f, null, {
63
63
  default: d(() => [
64
- i(k, {
64
+ i(g, {
65
+ class: I({
66
+ "pr-6": v(l)
67
+ }),
65
68
  disableCloseBrackets: "",
66
69
  disableEnter: "",
67
70
  disableTabIndent: "",
@@ -72,28 +75,28 @@ const M = (s) => (E("data-v-2b656c55"), s = s(), T(), s), O = { class: "text-c-2
72
75
  nullable: l.nullable,
73
76
  placeholder: "Value",
74
77
  type: l.type,
75
- onBlur: n[2] || (n[2] = (o) => t("inputBlur")),
76
- onFocus: n[3] || (n[3] = (o) => t("inputFocus")),
77
- onInput: (o) => e.items && a === e.items.length - 1 && t("addRow"),
78
- onSelectVariable: (o) => b(a, "value", o),
79
- "onUpdate:modelValue": (o) => t("updateRow", a, "value", o)
80
- }, C({
78
+ onBlur: n[2] || (n[2] = (o) => a("inputBlur")),
79
+ onFocus: n[3] || (n[3] = (o) => a("inputFocus")),
80
+ onInput: (o) => e.items && t === e.items.length - 1 && a("addRow"),
81
+ onSelectVariable: (o) => b(t, "value", o),
82
+ "onUpdate:modelValue": (o) => a("updateRow", t, "value", o)
83
+ }, U({
81
84
  icon: d(() => [
82
- $(l) ? (u(), r(A, {
85
+ v(l) ? (u(), r(M, {
83
86
  key: 0,
84
87
  item: { ...l, default: R(l) }
85
88
  }, null, 8, ["item"])) : c("", !0)
86
89
  ]),
87
90
  _: 2
88
91
  }, [
89
- v(l).value ? {
92
+ y(l).value ? {
90
93
  name: "warning",
91
94
  fn: d(() => [
92
- U(V(v(l).value), 1)
95
+ x(k(y(l).value), 1)
93
96
  ]),
94
97
  key: "0"
95
98
  } : void 0
96
- ]), 1032, ["enum", "max", "min", "modelValue", "nullable", "type", "onInput", "onSelectVariable", "onUpdate:modelValue"])
99
+ ]), 1032, ["class", "enum", "max", "min", "modelValue", "nullable", "type", "onInput", "onSelectVariable", "onUpdate:modelValue"])
97
100
  ]),
98
101
  _: 2
99
102
  }, 1024),
@@ -104,25 +107,25 @@ const M = (s) => (E("data-v-2b656c55"), s = s(), T(), s), O = { class: "text-c-2
104
107
  default: d(() => {
105
108
  var o;
106
109
  return [
107
- l.file ? (u(), y(w, { key: 0 }, [
108
- p("div", O, [
109
- p("span", null, V((o = l.file) == null ? void 0 : o.name), 1)
110
+ l.file ? (u(), w(V, { key: 0 }, [
111
+ p("div", j, [
112
+ p("span", null, k((o = l.file) == null ? void 0 : o.name), 1)
110
113
  ]),
111
114
  p("button", {
112
115
  class: "absolute bg-b-2 font-medium centered-x centered-y hidden rounded text-center p-0.5 w-[calc(100%_-_8px)] group-hover/upload:block text-xs",
113
116
  type: "button",
114
- onClick: (S) => t("removeFile", a)
115
- }, " Delete ", 8, j)
117
+ onClick: (S) => a("removeFile", t)
118
+ }, " Delete ", 8, K)
116
119
  ], 64)) : (u(), r(m(H), {
117
120
  key: 1,
118
121
  class: "bg-b-2 hover:bg-b-3 border-0 py-px text-c-2 shadow-none",
119
122
  size: "sm",
120
123
  variant: "outlined",
121
- onClick: (S) => _(a)
124
+ onClick: (S) => $(t)
122
125
  }, {
123
126
  default: d(() => [
124
- K,
125
- i(m(z), {
127
+ L,
128
+ i(m(A), {
126
129
  class: "ml-1",
127
130
  icon: "UploadSimple",
128
131
  size: "xs",
@@ -144,5 +147,5 @@ const M = (s) => (E("data-v-2b656c55"), s = s(), T(), s), O = { class: "text-c-2
144
147
  }
145
148
  });
146
149
  export {
147
- Z as default
150
+ ee as default
148
151
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RequestTableTooltip.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTableTooltip.vue"],"names":[],"mappings":"AA2DA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAA;;UAI1D,uBAAuB;;UAAvB,uBAAuB;;AAwJrD,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":"RequestTableTooltip.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTableTooltip.vue"],"names":[],"mappings":"AA6DA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAA;;UAI1D,uBAAuB;;UAAvB,uBAAuB;;AA2JrD,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,52 +1,54 @@
1
- import { defineComponent as m, openBlock as t, createBlock as c, unref as i, withCtx as r, createVNode as l, createElementVNode as a, createElementBlock as o, toDisplayString as s, createCommentVNode as n } from "vue";
2
- import { ScalarTooltip as p, ScalarIcon as f } from "@scalar/components";
3
- const d = { class: "grid gap-1.5 pointer-events-none min-w-48 w-content shadow-lg rounded bg-b-1 z-100 p-2 text-xxs leading-5 z-10 text-c-1" }, u = { class: "flex items-center text-c-2" }, h = { key: 0 }, b = {
1
+ import { defineComponent as m, openBlock as t, createBlock as c, unref as i, withCtx as a, createElementVNode as n, createVNode as l, createElementBlock as o, toDisplayString as s, createCommentVNode as r } from "vue";
2
+ import { ScalarTooltip as f, ScalarIcon as p } from "@scalar/components";
3
+ const d = { class: "pl-1 pr-1.5 py-[9px]" }, b = { class: "grid gap-1.5 pointer-events-none min-w-48 w-content shadow-lg rounded bg-b-1 z-100 p-2 text-xxs leading-5 z-10 text-c-1" }, h = { class: "flex items-center text-c-2" }, u = { key: 0 }, g = {
4
4
  key: 1,
5
5
  class: "before:content-['·'] before:block before:mx-[0.5ch] flex"
6
- }, g = {
6
+ }, x = {
7
7
  key: 2,
8
8
  class: "before:content-['·'] before:block before:mx-[0.5ch] flex whitespace-nowrap"
9
- }, k = {
9
+ }, _ = {
10
10
  key: 3,
11
11
  class: "before:content-['·'] before:block before:mx-[0.5ch] flex whitespace-nowrap"
12
- }, x = {
12
+ }, k = {
13
13
  key: 4,
14
14
  class: "before:content-['·'] before:block before:mx-[0.5ch] flex whitespace-nowrap"
15
- }, _ = {
15
+ }, y = {
16
16
  key: 0,
17
17
  class: "leading-snug text-pretty text-sm",
18
18
  style: { maxWidth: "16rem" }
19
- }, z = /* @__PURE__ */ m({
19
+ }, B = /* @__PURE__ */ m({
20
20
  __name: "RequestTableTooltip",
21
21
  props: {
22
22
  item: {}
23
23
  },
24
- setup(y) {
25
- return (e, w) => (t(), c(i(p), {
24
+ setup(w) {
25
+ return (e, v) => (t(), c(i(f), {
26
26
  align: "start",
27
27
  class: "w-full",
28
28
  delay: 0,
29
29
  side: "left",
30
- triggerClass: "p-[7px]"
30
+ triggerClass: "before:absolute before:content-[''] before:bg-gradient-to-r before:from-transparent before:to-b-1 before:min-h-full before:right-[23px] before:w-3 absolute h-8 right-0"
31
31
  }, {
32
- trigger: r(() => [
33
- l(i(f), {
34
- class: "ml-1 text-c-3 group-hover/info:text-c-1",
35
- icon: "Info",
36
- size: "sm",
37
- thickness: "1.5"
38
- })
32
+ trigger: a(() => [
33
+ n("div", d, [
34
+ l(i(p), {
35
+ class: "text-c-3 group-hover/info:text-c-1",
36
+ icon: "Info",
37
+ size: "sm",
38
+ thickness: "1.5"
39
+ })
40
+ ])
39
41
  ]),
40
- content: r(() => [
41
- a("div", d, [
42
- a("div", u, [
43
- e.item.type ? (t(), o("span", h, s(e.item.type), 1)) : n("", !0),
44
- e.item.format ? (t(), o("span", b, s(e.item.format), 1)) : n("", !0),
45
- e.item.minimum ? (t(), o("span", g, "min: " + s(e.item.minimum), 1)) : n("", !0),
46
- e.item.maximum ? (t(), o("span", k, "max: " + s(e.item.maximum), 1)) : n("", !0),
47
- e.item.default ? (t(), o("span", x, "default: " + s(e.item.default), 1)) : n("", !0)
42
+ content: a(() => [
43
+ n("div", b, [
44
+ n("div", h, [
45
+ e.item.type ? (t(), o("span", u, s(e.item.type), 1)) : r("", !0),
46
+ e.item.format ? (t(), o("span", g, s(e.item.format), 1)) : r("", !0),
47
+ e.item.minimum ? (t(), o("span", x, "min: " + s(e.item.minimum), 1)) : r("", !0),
48
+ e.item.maximum ? (t(), o("span", _, "max: " + s(e.item.maximum), 1)) : r("", !0),
49
+ e.item.default ? (t(), o("span", k, "default: " + s(e.item.default), 1)) : r("", !0)
48
50
  ]),
49
- e.item.description ? (t(), o("span", _, s(e.item.description), 1)) : n("", !0)
51
+ e.item.description ? (t(), o("span", y, s(e.item.description), 1)) : r("", !0)
50
52
  ])
51
53
  ]),
52
54
  _: 1
@@ -54,5 +56,5 @@ const d = { class: "grid gap-1.5 pointer-events-none min-w-48 w-content shadow-l
54
56
  }
55
57
  });
56
58
  export {
57
- z as default
59
+ B as default
58
60
  };
@@ -2,7 +2,7 @@ import t from "./RequestSidebarItem.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import o from "../../_virtual/_plugin-vue_export-helper.js";
5
- const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-0285aba2"]]);
5
+ const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-149f8145"]]);
6
6
  export {
7
- p as default
7
+ a as default
8
8
  };
@@ -7,7 +7,7 @@ import { RouterLink as ne } from "vue-router";
7
7
  import z from "./RequestSidebarItemMenu.vue.js";
8
8
  import oe from "../../components/HttpMethod/HttpMethod.vue.js";
9
9
  import { useSidebar as de } from "../../hooks/useSidebar.js";
10
- const ue = (u) => (te("data-v-0285aba2"), u = u(), ie(), u), pe = { class: "flex flex-row gap-1 items-center" }, fe = { class: "relative" }, me = { class: "flex" }, ce = { class: "z-10 flex h-fit items-center justify-center max-w-[14px]" }, be = { class: "flex flex-1 flex-row justify-between editable-sidebar-hover" }, ge = { class: "relative flex h-fit" }, ve = /* @__PURE__ */ ue(() => /* @__PURE__ */ s("span", null, " ", -1)), he = { key: 2 }, O = "hover:bg-sidebar-active-b indent-padding-left", $e = /* @__PURE__ */ G({
10
+ const ue = (u) => (te("data-v-149f8145"), u = u(), ie(), u), pe = { class: "flex flex-row gap-1 items-center" }, fe = { class: "relative" }, me = { class: "flex" }, ce = { class: "z-10 flex h-fit items-center justify-center max-w-[14px]" }, be = { class: "flex flex-1 flex-row justify-between editable-sidebar-hover" }, ge = { class: "relative flex h-fit" }, ve = /* @__PURE__ */ ue(() => /* @__PURE__ */ s("span", null, " ", -1)), he = { key: 2 }, O = "hover:bg-sidebar-active-b indent-padding-left", $e = /* @__PURE__ */ G({
11
11
  __name: "RequestSidebarItem",
12
12
  props: {
13
13
  isDraggable: { type: Boolean, default: !1 },
@@ -18,8 +18,8 @@ const ue = (u) => (te("data-v-0285aba2"), u = u(), ie(), u), pe = { class: "flex
18
18
  emits: ["onDragEnd"],
19
19
  setup(u) {
20
20
  H((e) => ({
21
- "6aa00981": F.value,
22
- efd61ec6: N.value
21
+ "75f1595a": F.value,
22
+ d92033b8: N.value
23
23
  }));
24
24
  const t = u, {
25
25
  activeRequest: w,
@@ -50,7 +50,7 @@ const ue = (u) => (te("data-v-0285aba2"), u = u(), ie(), u), pe = { class: "flex
50
50
  const p = K("RequestSidebarItem", !0);
51
51
  return o(), m("div", {
52
52
  class: d(["relative flex flex-row", [
53
- i(a) && e.parentUids.length > 1 || !i(a) && e.parentUids.length ? "before:bg-b-3 before:absolute before:left-[calc(.75rem_+_.5px)] before:top-0 before:z-10 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-px mb-[.5px] last:mb-0 indent-border-line-offset" : ""
53
+ i(a) && e.parentUids.length > 1 || !i(a) && e.parentUids.length ? "before:bg-b-3 before:absolute before:left-[calc(.75rem_+_.5px)] before:top-0 before:z-10 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 indent-border-line-offset" : ""
54
54
  ]])
55
55
  }, [
56
56
  U(i(le), {
@@ -1,6 +1,6 @@
1
- import { defineComponent as _, computed as m, ref as h, openBlock as n, createBlock as r, withCtx as p, createVNode as u, unref as x, createElementVNode as d, createTextVNode as y, createCommentVNode as l, createElementBlock as C, Fragment as A } from "vue";
2
- import S from "../../../components/ContextBar.vue.js";
3
- import B from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
1
+ import { defineComponent as _, computed as m, ref as h, openBlock as r, createBlock as n, withCtx as p, createVNode as u, unref as x, createElementVNode as d, createTextVNode as y, createCommentVNode as l, createElementBlock as C, Fragment as A } from "vue";
2
+ import B from "../../../components/ContextBar.vue.js";
3
+ import S from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
4
4
  import $ from "./ResponseBody.vue.js";
5
5
  import E from "./ResponseEmpty.vue.js";
6
6
  import N from "./ResponseMetaInformation.vue.js";
@@ -14,8 +14,8 @@ const R = { class: "flex items-center flex-1" }, b = { class: "custom-scroll fle
14
14
  },
15
15
  setup(f) {
16
16
  const c = f, i = m(() => {
17
- var t;
18
- const e = (t = c.response) == null ? void 0 : t.headers;
17
+ var s;
18
+ const e = (s = c.response) == null ? void 0 : s.headers;
19
19
  return e ? Object.keys(e).map((o) => ({
20
20
  name: o,
21
21
  value: e[o],
@@ -27,15 +27,15 @@ const R = { class: "flex items-center flex-1" }, b = { class: "custom-scroll fle
27
27
  ].includes(o.name)
28
28
  ) : [];
29
29
  }), v = m(() => {
30
- var t, o;
31
- const e = (o = (t = c.response) == null ? void 0 : t.headers) == null ? void 0 : o.cookies;
30
+ var s, o;
31
+ const e = (o = (s = c.response) == null ? void 0 : s.headers) == null ? void 0 : o.cookies;
32
32
  return e ? Object.keys(e).map((a) => ({
33
33
  name: a,
34
34
  value: e[a],
35
35
  required: !1
36
36
  })) : [];
37
- }), k = ["All", "Body", "Headers", "Cookies"], s = h("All");
38
- return (e, t) => (n(), r(B, null, {
37
+ }), k = ["All", "Body", "Headers", "Cookies"], t = h("All");
38
+ return (e, s) => (r(), n(S, null, {
39
39
  title: p(() => [
40
40
  u(x(V), {
41
41
  class: "text-c-3 mr-2 rotate-180",
@@ -45,7 +45,7 @@ const R = { class: "flex items-center flex-1" }, b = { class: "custom-scroll fle
45
45
  }),
46
46
  d("div", R, [
47
47
  y(" Response "),
48
- e.response ? (n(), r(N, {
48
+ e.response ? (r(), n(N, {
49
49
  key: 0,
50
50
  response: e.response
51
51
  }, null, 8, ["response"])) : l("", !0)
@@ -55,28 +55,28 @@ const R = { class: "flex items-center flex-1" }, b = { class: "custom-scroll fle
55
55
  var o;
56
56
  return [
57
57
  d("div", b, [
58
- e.response ? (n(), C(A, { key: 1 }, [
59
- u(S, {
60
- activeSection: s.value,
58
+ e.response ? (r(), C(A, { key: 1 }, [
59
+ u(B, {
60
+ activeSection: t.value,
61
61
  sections: k,
62
- onSetActiveSection: t[0] || (t[0] = (a) => s.value = a)
62
+ onSetActiveSection: s[0] || (s[0] = (a) => t.value = a)
63
63
  }, null, 8, ["activeSection"]),
64
- s.value === "All" || s.value === "Cookies" ? (n(), r(g, {
64
+ t.value === "All" || t.value === "Cookies" ? (r(), n(g, {
65
65
  key: 0,
66
66
  cookies: v.value
67
67
  }, null, 8, ["cookies"])) : l("", !0),
68
- s.value === "All" || s.value === "Headers" ? (n(), r(H, {
68
+ t.value === "All" || t.value === "Headers" ? (r(), n(H, {
69
69
  key: 1,
70
70
  headers: i.value
71
71
  }, null, 8, ["headers"])) : l("", !0),
72
- s.value === "All" || s.value === "Body" ? (n(), r($, {
72
+ t.value === "All" || t.value === "Body" ? (r(), n($, {
73
73
  key: 2,
74
74
  active: !0,
75
75
  data: (o = c.response) == null ? void 0 : o.data,
76
76
  headers: i.value,
77
77
  title: "Body"
78
78
  }, null, 8, ["data", "headers"])) : l("", !0)
79
- ], 64)) : (n(), r(E, { key: 0 }))
79
+ ], 64)) : (r(), n(E, { key: 0 }))
80
80
  ])
81
81
  ];
82
82
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"WorkspaceDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/components/WorkspaceDropdown.vue"],"names":[],"mappings":";AAmWA,wBAKG"}
1
+ {"version":3,"file":"WorkspaceDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/components/WorkspaceDropdown.vue"],"names":[],"mappings":";AAoWA,wBAKG"}
@@ -3,7 +3,7 @@ import { commandPaletteBus as y } from "../../../libs/eventBusses/command-palett
3
3
  import { useWorkspace as D } from "../../../store/workspace.js";
4
4
  import { ScalarDropdown as S, ScalarDropdownItem as d, ScalarIcon as l, ScalarDropdownDivider as W, ScalarButton as B } from "@scalar/components";
5
5
  import { useRouter as N } from "vue-router";
6
- const j = { class: "xl:min-h-header py-2.5 flex items-center border-b px-2.5 text-sm" }, z = { class: "font-medium m-0 text-sm flex gap-1.5 items-center" }, V = { class: "flex items-center justify-center h-4 w-4" }, E = /* @__PURE__ */ r("span", null, "Create new workspace", -1), T = /* @__PURE__ */ k({
6
+ const j = { class: "xl:min-h-header py-2.5 flex items-center border-b-1/2 px-2.5 text-sm" }, z = { class: "font-medium m-0 text-sm flex gap-1.5 items-center" }, V = { class: "flex items-center justify-center h-4 w-4" }, E = /* @__PURE__ */ r("span", null, "Create new workspace", -1), T = /* @__PURE__ */ k({
7
7
  __name: "WorkspaceDropdown",
8
8
  setup(I) {
9
9
  const { activeWorkspace: s, workspaces: u } = D(), { push: f } = N(), h = (a) => {