@scalar/api-client 2.0.45 → 2.0.47

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 (90) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBar.vue.js +2 -2
  4. package/dist/components/AddressBar/AddressBar.vue2.js +16 -16
  5. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
  6. package/dist/components/AddressBar/AddressBarHistory.vue.js +24 -25
  7. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  8. package/dist/components/CodeInput/CodeInput.vue.js +1 -1
  9. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +23 -23
  10. package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +6 -6
  11. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  12. package/dist/components/CommandPalette/TheCommandPalette.vue.js +1 -1
  13. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +1 -1
  14. package/dist/components/ContextBar.vue.d.ts.map +1 -1
  15. package/dist/components/ContextBar.vue.js +2 -2
  16. package/dist/components/ContextBar.vue2.js +10 -10
  17. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  18. package/dist/components/HttpMethod/HttpMethod.vue.js +5 -67
  19. package/dist/components/HttpMethod/HttpMethod.vue2.js +61 -2
  20. package/dist/components/Search/SearchModal.vue.d.ts.map +1 -1
  21. package/dist/components/Search/SearchModal.vue.js +1 -1
  22. package/dist/components/Search/SearchModal.vue2.js +44 -42
  23. package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
  24. package/dist/components/SideNav/SideNav.vue.js +1 -1
  25. package/dist/components/SideNav/SideNav.vue2.js +22 -19
  26. package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
  27. package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
  28. package/dist/components/Sidebar/SidebarListElement.vue2.js +1 -1
  29. package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts +2 -0
  30. package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
  31. package/dist/components/Sidebar/SidebarListElementActions.vue.js +22 -21
  32. package/dist/components/SubpageHeader.vue.js +2 -2
  33. package/dist/components/SubpageHeader.vue2.js +2 -2
  34. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
  35. package/dist/layouts/App/ApiClientApp.vue.js +46 -43
  36. package/dist/layouts/App/create-api-client-app.d.ts +158 -81
  37. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  38. package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
  39. package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
  40. package/dist/layouts/Modal/ApiClientModal.vue2.js +24 -20
  41. package/dist/layouts/Modal/create-api-client-modal.d.ts +316 -162
  42. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  43. package/dist/libs/create-client.d.ts +159 -83
  44. package/dist/libs/create-client.d.ts.map +1 -1
  45. package/dist/libs/create-client.js +18 -19
  46. package/dist/libs/event-busses/command-palette.d.ts.map +1 -0
  47. package/dist/libs/{eventBusses/executeRequestBus.d.ts → event-busses/execute-requestBus.d.ts} +1 -1
  48. package/dist/libs/event-busses/execute-requestBus.d.ts.map +1 -0
  49. package/dist/libs/event-busses/hot-key.d.ts +34 -0
  50. package/dist/libs/event-busses/hot-key.d.ts.map +1 -0
  51. package/dist/libs/event-busses/hot-key.js +25 -0
  52. package/dist/libs/event-busses/index.d.ts +5 -0
  53. package/dist/libs/event-busses/index.d.ts.map +1 -0
  54. package/dist/libs/event-busses/index.js +12 -0
  55. package/dist/libs/{eventBusses/requestStatusBus.d.ts → event-busses/request-status-bus.d.ts} +1 -1
  56. package/dist/libs/event-busses/request-status-bus.d.ts.map +1 -0
  57. package/dist/libs/index.d.ts +1 -1
  58. package/dist/libs/index.d.ts.map +1 -1
  59. package/dist/libs/index.js +19 -13
  60. package/dist/store/workspace.d.ts +316 -162
  61. package/dist/store/workspace.d.ts.map +1 -1
  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 +14 -15
  65. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  66. package/dist/views/Cookies/Cookies.vue2.js +114 -55
  67. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  68. package/dist/views/Environment/Environment.vue2.js +21 -20
  69. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  70. package/dist/views/Request/Request.vue.js +2 -2
  71. package/dist/views/Request/Request.vue2.js +118 -118
  72. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  73. package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
  74. package/dist/views/Request/RequestSidebarItem.vue2.js +20 -20
  75. package/dist/views/Request/RequestSidebarItemMenu.vue.js +4 -4
  76. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +19 -19
  77. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  78. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
  79. package/dist/views/Request/components/WorkspaceDropdown.vue.js +13 -13
  80. package/package.json +10 -10
  81. package/dist/libs/eventBusses/command-palette.d.ts.map +0 -1
  82. package/dist/libs/eventBusses/executeRequestBus.d.ts.map +0 -1
  83. package/dist/libs/eventBusses/index.d.ts +0 -3
  84. package/dist/libs/eventBusses/index.d.ts.map +0 -1
  85. package/dist/libs/eventBusses/index.js +0 -6
  86. package/dist/libs/eventBusses/requestStatusBus.d.ts.map +0 -1
  87. /package/dist/libs/{eventBusses → event-busses}/command-palette.d.ts +0 -0
  88. /package/dist/libs/{eventBusses → event-busses}/command-palette.js +0 -0
  89. /package/dist/libs/{eventBusses/executeRequestBus.js → event-busses/execute-requestBus.js} +0 -0
  90. /package/dist/libs/{eventBusses/requestStatusBus.js → event-busses/request-status-bus.js} +0 -0
@@ -1,74 +1,74 @@
1
- import { defineComponent as re, ref as se, watch as ie, onMounted as ae, onBeforeUnmount as le, openBlock as h, createElementBlock as U, Fragment as F, createElementVNode as v, normalizeClass as b, unref as s, createVNode as c, createCommentVNode as R, withCtx as p, withDirectives as ne, createSlots as de, withModifiers as N, renderList as ce, createBlock as O, createTextVNode as ue, vShow as me, pushScopeId as fe, popScopeId as pe } from "vue";
2
- import ve from "../../components/AddressBar/AddressBar.vue.js";
3
- import he from "../../components/Search/SearchButton.vue.js";
4
- import be from "../../components/Search/SearchModal.vue.js";
5
- import xe from "../../components/Sidebar/SidebarButton.vue.js";
6
- import ye from "../../components/Sidebar/SidebarToggle.vue.js";
7
- import ge from "../../components/ViewLayout/ViewLayout.vue.js";
8
- import we from "../../components/ViewLayout/ViewLayoutContent.vue.js";
9
- import { commandPaletteBus as P } from "../../libs/eventBusses/command-palette.js";
10
- import { useWorkspace as _e } from "../../store/workspace.js";
11
- import ke from "./RequestSection/RequestSection.vue.js";
1
+ import { defineComponent as ie, ref as ae, watch as F, onMounted as le, onBeforeUnmount as ne, openBlock as h, createElementBlock as U, Fragment as N, createElementVNode as v, normalizeClass as b, unref as s, createVNode as c, createCommentVNode as R, withCtx as p, withDirectives as de, createSlots as ce, withModifiers as P, renderList as ue, createBlock as O, createTextVNode as me, vShow as fe, pushScopeId as pe, popScopeId as ve } from "vue";
2
+ import he from "../../components/AddressBar/AddressBar.vue.js";
3
+ import be from "../../components/Search/SearchButton.vue.js";
4
+ import xe from "../../components/Search/SearchModal.vue.js";
5
+ import ye from "../../components/Sidebar/SidebarButton.vue.js";
6
+ import ge from "../../components/Sidebar/SidebarToggle.vue.js";
7
+ import we from "../../components/ViewLayout/ViewLayout.vue.js";
8
+ import _e from "../../components/ViewLayout/ViewLayoutContent.vue.js";
9
+ import { commandPaletteBus as W } from "../../libs/event-busses/command-palette.js";
10
+ import { useWorkspace as ke } from "../../store/workspace.js";
11
+ import Se from "./RequestSection/RequestSection.vue.js";
12
12
  /* empty css */
13
- import Se from "./ResponseSection/ResponseSection.vue.js";
14
- import { useModal as Ue, ScalarIcon as C } from "@scalar/components";
15
- import { useToasts as Re } from "@scalar/use-toasts";
16
- import { isMacOS as W } from "@scalar/use-tooltip";
17
- import { useMagicKeys as Oe, useEventListener as Ce } from "@vueuse/core";
18
- import qe from "./RequestSidebarItem.vue.js";
19
- import De from "../../components/Sidebar/Sidebar.vue.js";
13
+ import Ue from "./ResponseSection/ResponseSection.vue.js";
14
+ import { useModal as Re, ScalarIcon as C } from "@scalar/components";
15
+ import { useToasts as Oe } from "@scalar/use-toasts";
16
+ import { isMacOS as z } from "@scalar/use-tooltip";
17
+ import { useMediaQuery as Ce, useMagicKeys as Me, useEventListener as qe } from "@vueuse/core";
18
+ import De from "./RequestSidebarItem.vue.js";
19
+ import Be from "../../components/Sidebar/Sidebar.vue.js";
20
20
  /* empty css */
21
- import Me from "./components/WorkspaceDropdown.vue.js";
22
- import { useSidebar as Be } from "../../hooks/useSidebar.js";
23
- import { sendRequest as Ie } from "../../libs/sendRequest.js";
24
- import { executeRequestBus as z } from "../../libs/eventBusses/executeRequestBus.js";
25
- import { requestStatusBus as k } from "../../libs/eventBusses/requestStatusBus.js";
26
- const Ve = (g) => (fe("data-v-e97689ec"), g = g(), pe(), g), $e = { class: "lg:min-h-header flex items-center w-full justify-center p-1 flex-wrap t-app__top-container border-b-1/2" }, Ee = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-0.5 lg:flex-1 w-6/12" }, Fe = /* @__PURE__ */ Ve(() => /* @__PURE__ */ v("a", {
21
+ import Ie from "./components/WorkspaceDropdown.vue.js";
22
+ import { useSidebar as Ve } from "../../hooks/useSidebar.js";
23
+ import { sendRequest as $e } from "../../libs/sendRequest.js";
24
+ import { executeRequestBus as L } from "../../libs/event-busses/execute-requestBus.js";
25
+ import { requestStatusBus as k } from "../../libs/event-busses/request-status-bus.js";
26
+ const Ee = (g) => (pe("data-v-660ba379"), g = g(), ve(), g), Fe = { class: "lg:min-h-header flex items-center w-full justify-center p-1 flex-wrap t-app__top-container border-b-1/2" }, Ne = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-0.5 lg:flex-1 w-6/12" }, Pe = /* @__PURE__ */ Ee(() => /* @__PURE__ */ v("a", {
27
27
  class: "text-c-2 text-sm font-medium gitbook-show ml-.5 hover:text-c-1 border p-1 rounded hover:bg-b-3",
28
28
  href: "https://scalar.com/",
29
29
  target: "_blank"
30
- }, " Powered by Scalar.com ", -1)), Ne = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-0.5 lg:flex-1 justify-end w-6/12" }, ct = /* @__PURE__ */ re({
30
+ }, " Powered by Scalar.com ", -1)), We = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-0.5 lg:flex-1 justify-end w-6/12" }, mt = /* @__PURE__ */ ie({
31
31
  __name: "Request",
32
32
  setup(g) {
33
33
  var E;
34
34
  const {
35
35
  activeExample: w,
36
- activeRequest: m,
37
- activeSecuritySchemes: L,
36
+ activeRequest: f,
37
+ activeSecuritySchemes: j,
38
38
  activeWorkspace: l,
39
- activeWorkspaceCollections: j,
40
- activeWorkspaceServers: T,
41
- activeWorkspaceRequests: A,
42
- collectionMutators: q,
39
+ activeWorkspaceCollections: T,
40
+ activeWorkspaceServers: A,
41
+ activeWorkspaceRequests: H,
42
+ collectionMutators: M,
43
43
  collections: u,
44
- cookies: H,
45
- environments: J,
46
- findRequestFolders: K,
44
+ cookies: J,
45
+ environments: K,
46
+ findRequestFolders: Q,
47
47
  folders: x,
48
- folderMutators: D,
48
+ folderMutators: q,
49
49
  modalState: G,
50
- requestMutators: Q,
51
- workspaceMutators: M
52
- } = _e(), { collapsedSidebarFolders: X, setCollapsedSidebarFolder: Y } = Be(), { toast: B } = Re(), I = Ue(), f = se(!((E = l.value) != null && E.isReadOnly));
53
- ie(
54
- m,
55
- (r) => {
56
- r && K(r.uid).forEach(
57
- (t) => Y(t, !0)
50
+ requestMutators: X,
51
+ workspaceMutators: D
52
+ } = ke(), { collapsedSidebarFolders: Y, setCollapsedSidebarFolder: Z } = Ve(), { toast: B } = Oe(), I = Re(), ee = Ce("(max-width: 780px)"), m = ae(!((E = l.value) != null && E.isReadOnly));
53
+ F(ee, (t) => m.value = !t), F(
54
+ f,
55
+ (t) => {
56
+ t && Q(t.uid).forEach(
57
+ (o) => Z(o, !0)
58
58
  );
59
59
  },
60
60
  { immediate: !0 }
61
61
  );
62
62
  const V = async () => {
63
63
  var i;
64
- if (!m.value || !w.value) {
64
+ if (!f.value || !w.value) {
65
65
  console.warn(
66
66
  "There is no request active at the moment. Please select one then try again."
67
67
  );
68
68
  return;
69
69
  }
70
- let r = w.value.url;
71
- const t = Object.values(J).reduce(
70
+ let t = w.value.url;
71
+ const o = Object.values(K).reduce(
72
72
  (e, a) => {
73
73
  try {
74
74
  return { ...e, ...JSON.parse(a.raw) };
@@ -77,22 +77,22 @@ const Ve = (g) => (fe("data-v-e97689ec"), g = g(), pe(), g), $e = { class: "lg:m
77
77
  }
78
78
  },
79
79
  {}
80
- ), o = /\{\{(.*?)\}\}/g;
81
- r = r.replace(o, (e, a) => (T.value.forEach((n) => {
80
+ ), r = /\{\{(.*?)\}\}/g;
81
+ t = t.replace(r, (e, a) => (A.value.forEach((n) => {
82
82
  if (n.url === a)
83
83
  return a;
84
- }), t[a] || a)), k.emit("start");
84
+ }), o[a] || a)), k.emit("start");
85
85
  try {
86
- const { request: e, response: a, error: n } = await Ie(
87
- m.value,
86
+ const { request: e, response: a, error: n } = await $e(
87
+ f.value,
88
88
  w.value,
89
- r,
90
- L.value,
89
+ t,
90
+ j.value,
91
91
  (i = l.value) == null ? void 0 : i.proxyUrl,
92
- H
92
+ J
93
93
  );
94
- e && a ? (Q.edit(m.value.uid, "history", [
95
- ...m.value.history,
94
+ e && a ? (X.edit(f.value.uid, "history", [
95
+ ...f.value.history,
96
96
  {
97
97
  request: e,
98
98
  response: a,
@@ -104,70 +104,70 @@ const Ve = (g) => (fe("data-v-e97689ec"), g = g(), pe(), g), $e = { class: "lg:m
104
104
  ${e}`, "error"), k.emit("abort");
105
105
  }
106
106
  };
107
- ae(() => z.on(V)), le(() => z.off(V));
108
- const $ = (r, t) => {
109
- u[r] ? q.edit(r, "childUids", t) : x[r] && D.edit(r, "childUids", t);
110
- }, Z = (r, t) => {
111
- if (!r || !t) return;
112
- const { id: o, parentId: i } = r, { id: e, parentId: a, offset: n } = t;
113
- if (i ? u[i] ? q.edit(
107
+ le(() => L.on(V)), ne(() => L.off(V));
108
+ const $ = (t, o) => {
109
+ u[t] ? M.edit(t, "childUids", o) : x[t] && q.edit(t, "childUids", o);
110
+ }, te = (t, o) => {
111
+ if (!t || !o) return;
112
+ const { id: r, parentId: i } = t, { id: e, parentId: a, offset: n } = o;
113
+ if (i ? u[i] ? M.edit(
114
114
  i,
115
115
  "childUids",
116
116
  u[i].childUids.filter(
117
- (d) => d !== o
117
+ (d) => d !== r
118
118
  )
119
- ) : x[i] && D.edit(
119
+ ) : x[i] && q.edit(
120
120
  i,
121
121
  "childUids",
122
- x[i].childUids.filter((d) => d !== o)
123
- ) : M.edit(
122
+ x[i].childUids.filter((d) => d !== r)
123
+ ) : D.edit(
124
124
  l.value.uid,
125
125
  "collectionUids",
126
- l.value.collectionUids.filter((d) => d !== o)
126
+ l.value.collectionUids.filter((d) => d !== r)
127
127
  ), n === 2) {
128
128
  const d = u[e] || x[e];
129
- $(e, [...d.childUids, o]);
129
+ $(e, [...d.childUids, r]);
130
130
  } else if (a) {
131
- const y = [...(u[a] || x[a]).childUids], S = y.findIndex((oe) => e === oe) ?? 0;
132
- y.splice(S + n, 0, o), $(a, y);
131
+ const y = [...(u[a] || x[a]).childUids], S = y.findIndex((se) => e === se) ?? 0;
132
+ y.splice(S + n, 0, r), $(a, y);
133
133
  } else {
134
134
  const d = [...l.value.collectionUids], y = d.findIndex((S) => e === S) ?? 0;
135
- d.splice(y + n, 0, o), M.edit(
135
+ d.splice(y + n, 0, r), D.edit(
136
136
  l.value.uid,
137
137
  "collectionUids",
138
138
  d
139
139
  );
140
140
  }
141
- }, ee = () => P.emit(), _ = Oe();
142
- Ce(document, "keydown", (r) => {
143
- (W() ? _.meta.value : _.ctrl.value) && r.key === "b" && (f.value = !f.value), !l.value.isReadOnly && (W() ? _.meta.value : _.ctrl.value) && r.key === "k" && P.emit();
141
+ }, oe = () => W.emit(), _ = Me();
142
+ qe(document, "keydown", (t) => {
143
+ (z() ? _.meta.value : _.ctrl.value) && t.key === "b" && (m.value = !m.value), !l.value.isReadOnly && (z() ? _.meta.value : _.ctrl.value) && t.key === "k" && W.emit();
144
144
  });
145
- const te = (r, t) => {
146
- var o, i, e;
147
- return !(l.value.isReadOnly || !u[r.id] && t.offset !== 2 || u[r.id] && ((e = (i = (o = u[t.id]) == null ? void 0 : o.spec) == null ? void 0 : i.info) == null ? void 0 : e.title) === "Drafts");
145
+ const re = (t, o) => {
146
+ var r, i, e;
147
+ return !(l.value.isReadOnly || !u[t.id] && o.offset !== 2 || u[t.id] && ((e = (i = (r = u[o.id]) == null ? void 0 : r.spec) == null ? void 0 : i.info) == null ? void 0 : e.title) === "Drafts");
148
148
  };
149
- return (r, t) => (h(), U(F, null, [
149
+ return (t, o) => (h(), U(N, null, [
150
150
  v("div", {
151
151
  class: b(["flex flex-1 flex-col rounded pt-0 h-full bg-b-1 relative border-1/2 rounded mr-1.5 mb-1.5 overflow-hidden", {
152
152
  "!mr-0 !mb-0 !border-0": s(l).isReadOnly
153
153
  }])
154
154
  }, [
155
- v("div", $e, [
156
- v("div", Ee, [
157
- c(ye, {
158
- modelValue: f.value,
159
- "onUpdate:modelValue": t[0] || (t[0] = (o) => f.value = o),
155
+ v("div", Fe, [
156
+ v("div", Ne, [
157
+ c(ge, {
158
+ modelValue: m.value,
159
+ "onUpdate:modelValue": o[0] || (o[0] = (r) => m.value = r),
160
160
  class: "gitbook-hidden"
161
161
  }, null, 8, ["modelValue"]),
162
- Fe
162
+ Pe
163
163
  ]),
164
- c(ve),
165
- v("div", Ne, [
164
+ c(he),
165
+ v("div", We, [
166
166
  s(l).isReadOnly ? (h(), U("button", {
167
167
  key: 0,
168
168
  class: "text-c-3 hover:bg-b-2 active:text-c-1 p-2 rounded",
169
169
  type: "button",
170
- onClick: t[1] || (t[1] = (o) => s(G).hide())
170
+ onClick: o[1] || (o[1] = (r) => s(G).hide())
171
171
  }, [
172
172
  c(s(C), {
173
173
  icon: "Close",
@@ -177,33 +177,33 @@ ${e}`, "error"), k.emit("abort");
177
177
  ])) : R("", !0)
178
178
  ])
179
179
  ]),
180
- c(ge, null, {
180
+ c(we, null, {
181
181
  default: p(() => [
182
- ne(c(s(De), {
183
- class: b([f.value ? "sidebar-active-width" : ""])
184
- }, de({
182
+ de(c(s(Be), {
183
+ class: b([m.value ? "sidebar-active-width" : ""])
184
+ }, ce({
185
185
  content: p(() => [
186
- c(he, {
187
- onOpenSearchModal: t[2] || (t[2] = (o) => s(I).show())
186
+ c(be, {
187
+ onOpenSearchModal: o[2] || (o[2] = (r) => s(I).show())
188
188
  }),
189
189
  v("div", {
190
190
  class: b(["custom-scroll flex flex-1 flex-col overflow-visible px-3 pb-3 pt-0", {
191
191
  "pb-14": !s(l).isReadOnly
192
192
  }]),
193
- onDragenter: t[3] || (t[3] = N(() => {
193
+ onDragenter: o[3] || (o[3] = P(() => {
194
194
  }, ["prevent"])),
195
- onDragover: t[4] || (t[4] = N(() => {
195
+ onDragover: o[4] || (o[4] = P(() => {
196
196
  }, ["prevent"]))
197
197
  }, [
198
- (h(!0), U(F, null, ce(s(j), (o) => {
198
+ (h(!0), U(N, null, ue(s(T), (r) => {
199
199
  var i, e;
200
- return h(), O(qe, {
201
- key: o.uid,
202
- isDraggable: !s(l).isReadOnly && ((e = (i = o.spec) == null ? void 0 : i.info) == null ? void 0 : e.title) !== "Drafts",
203
- isDroppable: te,
204
- item: o,
200
+ return h(), O(De, {
201
+ key: r.uid,
202
+ isDraggable: !s(l).isReadOnly && ((e = (i = r.spec) == null ? void 0 : i.info) == null ? void 0 : e.title) !== "Drafts",
203
+ isDroppable: re,
204
+ item: r,
205
205
  parentUids: [],
206
- onOnDragEnd: Z
206
+ onOnDragEnd: te
207
207
  }, {
208
208
  leftIcon: p(() => [
209
209
  c(s(C), {
@@ -214,7 +214,7 @@ ${e}`, "error"), k.emit("abort");
214
214
  }),
215
215
  v("div", {
216
216
  class: b({
217
- "rotate-90": s(X)[o.uid]
217
+ "rotate-90": s(Y)[r.uid]
218
218
  })
219
219
  }, [
220
220
  c(s(C), {
@@ -230,15 +230,15 @@ ${e}`, "error"), k.emit("abort");
230
230
  ], 34)
231
231
  ]),
232
232
  button: p(() => [
233
- s(l).isReadOnly ? R("", !0) : (h(), O(xe, {
233
+ s(l).isReadOnly ? R("", !0) : (h(), O(ye, {
234
234
  key: 0,
235
235
  class: b({
236
- "empty-sidebar-item": s(A).length === 1
236
+ "empty-sidebar-item": s(H).length === 1
237
237
  }),
238
- click: ee
238
+ click: oe
239
239
  }, {
240
240
  title: p(() => [
241
- ue("Add Item")
241
+ me("Add Item")
242
242
  ]),
243
243
  _: 1
244
244
  }, 8, ["class"]))
@@ -248,23 +248,23 @@ ${e}`, "error"), k.emit("abort");
248
248
  s(l).isReadOnly ? void 0 : {
249
249
  name: "header",
250
250
  fn: p(() => [
251
- c(s(Me))
251
+ c(s(Ie))
252
252
  ]),
253
253
  key: "0"
254
254
  }
255
255
  ]), 1032, ["class"]), [
256
- [me, f.value]
256
+ [fe, m.value]
257
257
  ]),
258
- s(w) ? (h(), O(we, {
258
+ s(w) ? (h(), O(_e, {
259
259
  key: 0,
260
- class: b(["flex-1", [f.value ? "sidebar-active-hide-layout" : ""]])
260
+ class: b(["flex-1", [m.value ? "sidebar-active-hide-layout" : ""]])
261
261
  }, {
262
262
  default: p(() => {
263
- var o, i, e, a, n;
263
+ var r, i, e, a, n;
264
264
  return [
265
- c(ke),
266
- c(Se, {
267
- response: (n = (a = (o = s(m)) == null ? void 0 : o.history) == null ? void 0 : a[((e = (i = s(m)) == null ? void 0 : i.history) == null ? void 0 : e.length) - 1]) == null ? void 0 : n.response
265
+ c(Se),
266
+ c(Ue, {
267
+ response: (n = (a = (r = s(f)) == null ? void 0 : r.history) == null ? void 0 : a[((e = (i = s(f)) == null ? void 0 : i.history) == null ? void 0 : e.length) - 1]) == null ? void 0 : n.response
268
268
  }, null, 8, ["response"])
269
269
  ];
270
270
  }),
@@ -274,10 +274,10 @@ ${e}`, "error"), k.emit("abort");
274
274
  _: 1
275
275
  })
276
276
  ], 2),
277
- c(be, { modalState: s(I) }, null, 8, ["modalState"])
277
+ c(xe, { modalState: s(I) }, null, 8, ["modalState"])
278
278
  ], 64));
279
279
  }
280
280
  });
281
281
  export {
282
- ct as default
282
+ mt as default
283
283
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"AA+TA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAA;AACjF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6CAA6C,CAAA;AACzE,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACf,MAAM,2CAA2C,CAAA;AAgKlD,iBAAS,cAAc;gBA7HT,IAAI;;gBAAJ,IAAI;EAycjB;AACD,QAAA,MAAM,eAAe;IApejB;;;;OAIG;kBACW,OAAO;IACrB;;;;OAIG;kBACW,cAAc,CAAC,aAAa,CAAC;IAC3C,qEAAqE;gBACzD,MAAM,EAAE;UACd,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,cAAc;;;;;;;;IAdpD;;;;OAIG;kBACW,OAAO;IACrB;;;;OAIG;kBACW,cAAc,CAAC,aAAa,CAAC;IAC3C,qEAAqE;gBACzD,MAAM,EAAE;UACd,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,cAAc;;;;;;;;;iBATtC,OAAO;MAsevB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,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,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":"RequestSidebarItem.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItem.vue"],"names":[],"mappings":"AA+TA,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iDAAiD,CAAA;AACjF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6CAA6C,CAAA;AACzE,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACf,MAAM,2CAA2C,CAAA;AAgKlD,iBAAS,cAAc;gBA7HT,IAAI;;gBAAJ,IAAI;EA0cjB;AACD,QAAA,MAAM,eAAe;IArejB;;;;OAIG;kBACW,OAAO;IACrB;;;;OAIG;kBACW,cAAc,CAAC,aAAa,CAAC;IAC3C,qEAAqE;gBACzD,MAAM,EAAE;UACd,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,cAAc;;;;;;;;IAdpD;;;;OAIG;kBACW,OAAO;IACrB;;;;OAIG;kBACW,cAAc,CAAC,aAAa,CAAC;IAC3C,qEAAqE;gBACzD,MAAM,EAAE;UACd,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,cAAc;;;;;;;;;iBATtC,OAAO;MAuevB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,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,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"}
@@ -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 a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-149f8145"]]);
5
+ const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-481dd9cc"]]);
6
6
  export {
7
7
  a as default
8
8
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as G, useCssVars as H, computed as l, ref as J, resolveComponent as K, openBlock as o, createElementBlock as m, normalizeClass as d, unref as i, createVNode as U, withCtx as C, createBlock as c, createElementVNode as s, toDisplayString as I, createCommentVNode as b, createTextVNode as E, renderSlot as Q, withDirectives as X, Fragment as Y, renderList as Z, vShow as ee, pushScopeId as te, popScopeId as ie } from "vue";
1
+ import { defineComponent as H, useCssVars as G, computed as l, ref as J, resolveComponent as K, openBlock as o, createElementBlock as m, normalizeClass as d, unref as i, createVNode as U, withCtx as C, createBlock as c, createElementVNode as s, toDisplayString as I, createCommentVNode as b, createTextVNode as E, renderSlot as Q, withDirectives as X, Fragment as Y, renderList as Z, vShow as ee, pushScopeId as te, popScopeId as ie } from "vue";
2
2
  import { PathId as re } from "../../router.js";
3
3
  import { useWorkspace as se } from "../../store/workspace.js";
4
4
  import { ScalarIcon as ae } from "@scalar/components";
@@ -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-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({
10
+ const ue = (u) => (te("data-v-481dd9cc"), u = u(), ie(), u), pe = { class: "flex flex-row gap-1 items-center" }, fe = { class: "relative" }, me = { class: "flex items-start" }, ce = { class: "z-10 flex h-5 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__ */ H({
11
11
  __name: "RequestSidebarItem",
12
12
  props: {
13
13
  isDraggable: { type: Boolean, default: !1 },
@@ -17,35 +17,35 @@ const ue = (u) => (te("data-v-149f8145"), u = u(), ie(), u), pe = { class: "flex
17
17
  },
18
18
  emits: ["onDragEnd"],
19
19
  setup(u) {
20
- H((e) => ({
21
- "75f1595a": F.value,
22
- d92033b8: N.value
20
+ G((e) => ({
21
+ "9215ea88": N.value,
22
+ "602f2182": _.value
23
23
  }));
24
24
  const t = u, {
25
25
  activeRequest: w,
26
- activeRouterParams: _,
26
+ activeRouterParams: B,
27
27
  activeWorkspace: g,
28
28
  collections: D,
29
- folders: B,
29
+ folders: V,
30
30
  isReadOnly: a,
31
31
  requests: k,
32
32
  requestExamples: v
33
- } = se(), { collapsedSidebarFolders: y, toggleSidebarFolder: V } = de(), j = l(() => "childUids" in t.item), q = l(() => "spec" in t.item), x = l(() => "summary" in t.item), F = l(() => t.parentUids.length ? a.value ? `${(t.parentUids.length - 1) * 12}px` : `${t.parentUids.length * 12}px` : "12px"), N = l(() => t.parentUids.length ? a.value ? `${(t.parentUids.length - 1) * 12}px` : `${t.parentUids.length * 12}px` : "0px"), R = (e) => {
33
+ } = se(), { collapsedSidebarFolders: y, toggleSidebarFolder: j } = de(), F = l(() => "childUids" in t.item), q = l(() => "spec" in t.item), x = l(() => "summary" in t.item), N = l(() => t.parentUids.length ? a.value ? `${(t.parentUids.length - 1) * 12}px` : `${t.parentUids.length * 12}px` : "12px"), _ = l(() => t.parentUids.length ? a.value ? `${(t.parentUids.length - 1) * 12}px` : `${t.parentUids.length * 12}px` : "0px"), R = (e) => {
34
34
  var r;
35
35
  return "spec" in e ? (r = e.spec.info) == null ? void 0 : r.title : "summary" in e ? e.summary || e.path : "name" in e ? e.name : "";
36
- }, L = l(() => ("requestUid" in t.item ? k[t.item.requestUid] : t.item).method), P = l(
36
+ }, L = l(() => ("requestUid" in t.item ? k[t.item.requestUid] : t.item).method), M = l(
37
37
  () => {
38
38
  var e;
39
39
  return y[t.item.uid] || ((e = w.value) == null ? void 0 : e.uid) === t.item.uid && t.item.childUids.length > 1;
40
40
  }
41
- ), T = () => "requestUid" in t.item ? `/workspace/${g.value.uid}/request/${t.item.requestUid}/examples/${t.item.uid}` : `/workspace/${g.value.uid}/request/${t.item.uid}`, W = l(
42
- () => _.value[re.Request] === "default" && w.value.uid === t.item.uid
41
+ ), P = () => "requestUid" in t.item ? `/workspace/${g.value.uid}/request/${t.item.requestUid}/examples/${t.item.uid}` : `/workspace/${g.value.uid}/request/${t.item.uid}`, T = l(
42
+ () => B.value[re.Request] === "default" && w.value.uid === t.item.uid
43
43
  ), h = J(null), S = l(() => {
44
44
  let e = 0.5, r = 0.5;
45
45
  if (!h.value) return { ceiling: e, floor: r };
46
46
  const { draggingItem: p } = h.value;
47
- return !D[p == null ? void 0 : p.id] && q.value ? (e = 1, r = 0) : j.value && !x.value && !q.value && (e = 0.8, r = 0.2), { ceiling: e, floor: r };
48
- }), A = (e, r) => !(g.value.isReadOnly || v[r.id] || D[e.id]);
47
+ return !D[p == null ? void 0 : p.id] && q.value ? (e = 1, r = 0) : F.value && !x.value && !q.value && (e = 0.8, r = 0.2), { ceiling: e, floor: r };
48
+ }), W = (e, r) => !(g.value.isReadOnly || v[r.id] || D[e.id]);
49
49
  return (e, r) => {
50
50
  const p = K("RequestSidebarItem", !0);
51
51
  return o(), m("div", {
@@ -71,13 +71,13 @@ const ue = (u) => (te("data-v-149f8145"), u = u(), ie(), u), pe = { class: "flex
71
71
  "summary" in e.item || "requestUid" in e.item ? (o(), c(i(ne), {
72
72
  key: 0,
73
73
  class: "no-underline",
74
- to: T()
74
+ to: P()
75
75
  }, {
76
76
  default: C(({ isExactActive: n }) => [
77
77
  s("div", {
78
78
  class: d(["group relative flex min-h-8 cursor-pointer flex-row items-start justify-between gap-2 py-1.5 pr-2 rounded editable-sidebar-hover", [
79
79
  O,
80
- n || W.value ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
80
+ n || T.value ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
81
81
  ]]),
82
82
  tabindex: "0"
83
83
  }, [
@@ -109,7 +109,7 @@ const ue = (u) => (te("data-v-149f8145"), u = u(), ie(), u), pe = { class: "flex
109
109
  key: 1,
110
110
  class: d(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 z-[1]", O]),
111
111
  type: "button",
112
- onClick: r[0] || (r[0] = (n) => i(V)(e.item.uid))
112
+ onClick: r[0] || (r[0] = (n) => i(j)(e.item.uid))
113
113
  }, [
114
114
  s("span", ce, [
115
115
  Q(e.$slots, "leftIcon", {}, () => [
@@ -148,13 +148,13 @@ const ue = (u) => (te("data-v-149f8145"), u = u(), ie(), u), pe = { class: "flex
148
148
  (o(!0), m(Y, null, Z(x.value ? e.item.childUids.slice(1) : e.item.childUids, (n) => (o(), c(p, {
149
149
  key: n,
150
150
  isDraggable: !i(v)[n],
151
- isDroppable: A,
152
- item: i(B)[n] || i(k)[n] || i(v)[n],
151
+ isDroppable: W,
152
+ item: i(V)[n] || i(k)[n] || i(v)[n],
153
153
  parentUids: [...e.parentUids, e.item.uid],
154
- onOnDragEnd: r[1] || (r[1] = (...M) => e.$emit("onDragEnd", ...M))
154
+ onOnDragEnd: r[1] || (r[1] = (...A) => e.$emit("onDragEnd", ...A))
155
155
  }, null, 8, ["isDraggable", "item", "parentUids"]))), 128))
156
156
  ], 512)), [
157
- [ee, P.value]
157
+ [ee, M.value]
158
158
  ]) : b("", !0)
159
159
  ];
160
160
  }),
@@ -1,7 +1,7 @@
1
- import t from "./RequestSidebarItemMenu.vue2.js";
1
+ import e from "./RequestSidebarItemMenu.vue2.js";
2
2
  /* empty css */
3
- import e from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ e(t, [["__scopeId", "data-v-b4adf477"]]);
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const a = /* @__PURE__ */ t(e, [["__scopeId", "data-v-52248ee9"]]);
5
5
  export {
6
- m as default
6
+ a as default
7
7
  };
@@ -1,11 +1,11 @@
1
- import { defineComponent as V, computed as f, ref as B, openBlock as S, createElementBlock as A, Fragment as F, createVNode as i, unref as t, withCtx as l, createBlock as P, createCommentVNode as T, withKeys as K, withModifiers as W, createElementVNode as d, createTextVNode as E, pushScopeId as j, popScopeId as G } from "vue";
1
+ import { defineComponent as V, computed as f, ref as B, openBlock as b, createElementBlock as A, Fragment as F, createVNode as i, unref as t, withCtx as l, createBlock as P, createCommentVNode as T, withKeys as K, withModifiers as W, createElementVNode as d, createTextVNode as E, pushScopeId as j, popScopeId as G } from "vue";
2
2
  import H from "../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
3
- import { commandPaletteBus as J } from "../../libs/eventBusses/command-palette.js";
4
3
  import { PathId as R } from "../../router.js";
5
- import { useWorkspace as L } from "../../store/workspace.js";
6
- import { useModal as I, ScalarDropdown as O, ScalarDropdownItem as v, ScalarIcon as u, ScalarButton as h, ScalarModal as N, ScalarTextField as Q } from "@scalar/components";
7
- import { useRouter as X } from "vue-router";
8
- const x = (o) => (j("data-v-b4adf477"), o = o(), G(), o), Y = /* @__PURE__ */ x(() => /* @__PURE__ */ d("span", null, "Add Example", -1)), Z = /* @__PURE__ */ x(() => /* @__PURE__ */ d("span", null, "Rename", -1)), ee = /* @__PURE__ */ x(() => /* @__PURE__ */ d("span", null, "Delete", -1)), te = { class: "flex gap-3" }, me = /* @__PURE__ */ V({
4
+ import { useWorkspace as J } from "../../store/workspace.js";
5
+ import { useModal as I, ScalarDropdown as L, ScalarDropdownItem as v, ScalarIcon as u, ScalarButton as h, ScalarModal as N, ScalarTextField as O } from "@scalar/components";
6
+ import { useRouter as Q } from "vue-router";
7
+ import { commandPaletteBus as X } from "../../libs/event-busses/command-palette.js";
8
+ const x = (o) => (j("data-v-52248ee9"), o = o(), G(), o), Y = /* @__PURE__ */ x(() => /* @__PURE__ */ d("span", null, "Add Example", -1)), Z = /* @__PURE__ */ x(() => /* @__PURE__ */ d("span", null, "Rename", -1)), ee = /* @__PURE__ */ x(() => /* @__PURE__ */ d("span", null, "Delete", -1)), te = { class: "flex gap-3" }, me = /* @__PURE__ */ V({
9
9
  __name: "RequestSidebarItemMenu",
10
10
  props: {
11
11
  parentUids: {},
@@ -19,29 +19,29 @@ const x = (o) => (j("data-v-b4adf477"), o = o(), G(), o), Y = /* @__PURE__ */ x(
19
19
  folderMutators: w,
20
20
  requestMutators: y,
21
21
  requestExampleMutators: C
22
- } = L(), { replace: b } = X(), U = () => J.emit({
22
+ } = J(), { replace: q } = Q(), U = () => X.emit({
23
23
  commandName: "Add Example",
24
24
  metaData: e.item.uid
25
25
  }), D = () => {
26
- "requestUid" in e.item ? (C.delete(e.item), g.value[R.Examples] === e.item.uid && b(`/workspace/${k.value}/request/default`)) : "summary" in e.item ? (y.delete(
26
+ "requestUid" in e.item ? (C.delete(e.item), g.value[R.Examples] === e.item.uid && q(`/workspace/${k.value}/request/default`)) : "summary" in e.item ? (y.delete(
27
27
  e.item,
28
28
  e.parentUids[e.parentUids.length - 1]
29
- ), g.value[R.Request] === e.item.uid && b(`/workspace/${k.value.uid}/request/default`)) : "spec" in e.item ? _.delete(e.item) : "name" in e.item && w.delete(
29
+ ), g.value[R.Request] === e.item.uid && q(`/workspace/${k.value.uid}/request/default`)) : "spec" in e.item ? _.delete(e.item) : "name" in e.item && w.delete(
30
30
  e.item,
31
31
  e.parentUids[e.parentUids.length - 1]
32
32
  );
33
- }, $ = f(() => "summary" in e.item), q = f(() => {
33
+ }, $ = f(() => "summary" in e.item), M = f(() => {
34
34
  var p;
35
35
  return "summary" in e.item ? e.item.summary || "" : "name" in e.item ? e.item.name || "" : "spec" in e.item && ((p = e.item.spec.info) == null ? void 0 : p.title) || "";
36
- }), s = B(""), M = () => {
36
+ }), s = B(""), S = () => {
37
37
  "summary" in e.item ? y.edit(e.item.uid, "summary", s.value) : "requestUid" in e.item ? C.edit(e.item.uid, "name", s.value) : "spec" in e.item ? _.edit(e.item.uid, "spec.info.title", s.value) : w.edit(e.item.uid, "name", s.value), m.hide();
38
38
  }, m = I(), c = I(), z = () => {
39
- s.value = q.value, m.show();
39
+ s.value = M.value, m.show();
40
40
  }, r = f(() => "requestUid" in e.item ? "Example" : "summary" in e.item ? "Request" : "spec" in e.item ? "Collection" : "Folder");
41
- return (p, a) => (S(), A(F, null, [
42
- i(t(O), { teleport: "#scalar-client" }, {
41
+ return (p, a) => (b(), A(F, null, [
42
+ i(t(L), { teleport: "#scalar-client" }, {
43
43
  items: l(() => [
44
- $.value ? (S(), P(t(v), {
44
+ $.value ? (b(), P(t(v), {
45
45
  key: 0,
46
46
  class: "flex !gap-2",
47
47
  onClick: U
@@ -115,7 +115,7 @@ const x = (o) => (j("data-v-b4adf477"), o = o(), G(), o), Y = /* @__PURE__ */ x(
115
115
  }, {
116
116
  default: l(() => [
117
117
  i(H, {
118
- variableName: q.value,
118
+ variableName: M.value,
119
119
  warningMessage: "Warning: Deleting this will delete all items inside of this",
120
120
  onClose: a[2] || (a[2] = (n) => t(c).hide()),
121
121
  onDelete: D
@@ -128,12 +128,12 @@ const x = (o) => (j("data-v-b4adf477"), o = o(), G(), o), Y = /* @__PURE__ */ x(
128
128
  title: `Rename ${r.value}`
129
129
  }, {
130
130
  default: l(() => [
131
- i(t(Q), {
131
+ i(t(O), {
132
132
  modelValue: s.value,
133
133
  "onUpdate:modelValue": a[3] || (a[3] = (n) => s.value = n),
134
134
  label: r.value,
135
135
  labelShadowColor: "var(--scalar-background-1)",
136
- onKeydown: K(W(M, ["prevent"]), ["enter"])
136
+ onKeydown: K(W(S, ["prevent"]), ["enter"])
137
137
  }, null, 8, ["modelValue", "label", "onKeydown"]),
138
138
  d("div", te, [
139
139
  i(t(h), {
@@ -149,7 +149,7 @@ const x = (o) => (j("data-v-b4adf477"), o = o(), G(), o), Y = /* @__PURE__ */ x(
149
149
  i(t(h), {
150
150
  class: "flex-1",
151
151
  type: "submit",
152
- onClick: M
152
+ onClick: S
153
153
  }, {
154
154
  default: l(() => [
155
155
  E(" Save ")
@@ -3,7 +3,7 @@ import h from "../../../assets/computer.ascii.js";
3
3
  import x from "../../../components/ScalarAsciiArt.vue.js";
4
4
  import i from "../../../components/ScalarHotkey.vue.js";
5
5
  import { useWorkspace as k } from "../../../store/workspace.js";
6
- import { executeRequestBus as v } from "../../../libs/eventBusses/executeRequestBus.js";
6
+ import { executeRequestBus as v } from "../../../libs/event-busses/execute-requestBus.js";
7
7
  const p = (t) => (_("data-v-84b69d7e"), t = t(), f(), t), y = { class: "relative col-1 flex-center gap-6 p-2 capitalize" }, b = { class: "flex h-[calc(100%_-_50px)] flex-col items-center justify-center" }, R = {
8
8
  key: 0,
9
9
  class: "scalar-version-number"
@@ -1 +1 @@
1
- {"version":3,"file":"WorkspaceDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/components/WorkspaceDropdown.vue"],"names":[],"mappings":";AAoWA,wBAKG"}
1
+ {"version":3,"file":"WorkspaceDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/components/WorkspaceDropdown.vue"],"names":[],"mappings":";AAqWA,wBAKG"}