@scalar/api-client 2.1.52 → 2.2.1

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 (205) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBar.vue.js +1 -1
  4. package/dist/components/AddressBar/AddressBar.vue2.js +36 -43
  5. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
  6. package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
  7. package/dist/components/AddressBar/AddressBarHistory.vue2.js +25 -24
  8. package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
  9. package/dist/components/AddressBar/AddressBarServer.vue.js +32 -39
  10. package/dist/components/AddressBar/AddressBarServerItem.vue.d.ts.map +1 -1
  11. package/dist/components/AddressBar/AddressBarServerItem.vue.js +10 -15
  12. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  13. package/dist/components/CodeInput/CodeInput.vue.js +1 -1
  14. package/dist/components/CodeInput/CodeInput.vue2.js +48 -47
  15. package/dist/components/CodeInput/codeVariableWidget.d.ts +3 -2
  16. package/dist/components/CodeInput/codeVariableWidget.d.ts.map +1 -1
  17. package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
  18. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +15 -14
  19. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
  20. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +18 -23
  21. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
  22. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +27 -26
  23. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
  24. package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +19 -20
  25. package/dist/components/CommandPalette/CommandPaletteServer.vue.d.ts.map +1 -1
  26. package/dist/components/CommandPalette/CommandPaletteServer.vue.js +19 -24
  27. package/dist/components/CommandPalette/CommandPaletteTag.vue.d.ts.map +1 -1
  28. package/dist/components/CommandPalette/CommandPaletteTag.vue.js +23 -22
  29. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  30. package/dist/components/CommandPalette/TheCommandPalette.vue.js +4 -4
  31. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +47 -46
  32. package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -1
  33. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  34. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
  35. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +23 -28
  36. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
  37. package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
  38. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +127 -96
  39. package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +1 -1
  40. package/dist/components/ImportCollection/ImportNowButton.vue.js +28 -27
  41. package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts +1 -1
  42. package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts.map +1 -1
  43. package/dist/components/ImportCollection/IntegrationLogo.vue.js +14 -18
  44. package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -1
  45. package/dist/components/ImportCollection/WorkspaceSelector.vue.js +15 -14
  46. package/dist/components/Search/useSearch.d.ts.map +1 -1
  47. package/dist/components/Search/useSearch.js +20 -19
  48. package/dist/components/SideNav/SideNav.vue.js +4 -4
  49. package/dist/components/SideNav/SideNavRouterLink.vue.js +9 -9
  50. package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
  51. package/dist/components/TopNav/TopNav.vue.js +165 -5
  52. package/dist/components/TopNav/TopNav.vue2.js +2 -164
  53. package/dist/components/TopNav/TopNavItem.vue.d.ts +2 -2
  54. package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
  55. package/dist/components/TopNav/TopNavItem.vue.js +2 -2
  56. package/dist/components/TopNav/TopNavItem.vue2.js +5 -5
  57. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  58. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +1 -1
  59. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +2 -2
  60. package/dist/hooks/index.js +3 -2
  61. package/dist/hooks/useLayout.d.ts +2 -0
  62. package/dist/hooks/useLayout.d.ts.map +1 -1
  63. package/dist/hooks/useLayout.js +4 -3
  64. package/dist/layouts/App/ApiClientApp.vue.d.ts +1 -1
  65. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
  66. package/dist/layouts/App/ApiClientApp.vue.js +35 -31
  67. package/dist/layouts/App/MainLayout.vue.d.ts.map +1 -1
  68. package/dist/layouts/App/MainLayout.vue.js +3 -3
  69. package/dist/layouts/App/create-api-client-app.d.ts +669 -1232
  70. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  71. package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
  72. package/dist/layouts/Modal/ApiClientModal.vue.js +1 -1
  73. package/dist/layouts/Modal/ApiClientModal.vue2.js +24 -23
  74. package/dist/layouts/Modal/create-api-client-modal.d.ts +1382 -2508
  75. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  76. package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
  77. package/dist/layouts/Web/ApiClientWeb.vue.js +34 -33
  78. package/dist/layouts/Web/create-api-client-web.d.ts +669 -1232
  79. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  80. package/dist/libs/create-client.d.ts +673 -1236
  81. package/dist/libs/create-client.d.ts.map +1 -1
  82. package/dist/libs/create-client.js +91 -102
  83. package/dist/libs/hot-keys.d.ts +1 -1
  84. package/dist/libs/send-request.d.ts +2 -3
  85. package/dist/libs/send-request.d.ts.map +1 -1
  86. package/dist/libs/send-request.js +127 -123
  87. package/dist/store/active-entities.d.ts +333 -0
  88. package/dist/store/active-entities.d.ts.map +1 -0
  89. package/dist/store/active-entities.js +97 -0
  90. package/dist/store/collections.d.ts +4 -274
  91. package/dist/store/collections.d.ts.map +1 -1
  92. package/dist/store/cookies.d.ts +4 -4
  93. package/dist/store/environment.d.ts +4 -4
  94. package/dist/store/import-spec.d.ts +0 -54
  95. package/dist/store/import-spec.d.ts.map +1 -1
  96. package/dist/store/index.js +4 -3
  97. package/dist/store/request-example.d.ts +4 -4
  98. package/dist/store/requests.d.ts +15 -15
  99. package/dist/store/security-schemes.d.ts +527 -317
  100. package/dist/store/security-schemes.d.ts.map +1 -1
  101. package/dist/store/security-schemes.js +33 -41
  102. package/dist/store/servers.d.ts +4 -4
  103. package/dist/store/store-context.d.ts +0 -3
  104. package/dist/store/store-context.d.ts.map +1 -1
  105. package/dist/store/store.d.ts +640 -5297
  106. package/dist/store/store.d.ts.map +1 -1
  107. package/dist/store/store.js +111 -189
  108. package/dist/store/tags.d.ts +4 -4
  109. package/dist/store/workspace.d.ts +14 -24
  110. package/dist/store/workspace.d.ts.map +1 -1
  111. package/dist/style.css +1 -1
  112. package/dist/tailwind/desktop-variants.d.ts +18 -0
  113. package/dist/tailwind/desktop-variants.d.ts.map +1 -0
  114. package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
  115. package/dist/views/Cookies/CookieForm.vue.js +14 -13
  116. package/dist/views/Cookies/CookieRaw.vue.d.ts.map +1 -1
  117. package/dist/views/Cookies/CookieRaw.vue.js +14 -13
  118. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts +3 -3
  119. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  120. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  121. package/dist/views/Request/Request.vue.js +1 -1
  122. package/dist/views/Request/Request.vue2.js +92 -92
  123. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts +2 -2
  124. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
  125. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +96 -99
  126. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts +2 -2
  127. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
  128. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +49 -46
  129. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  130. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
  131. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +94 -100
  132. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.d.ts.map +1 -1
  133. package/dist/views/Request/RequestSection/RequestAuth/RequestExampleAuth.vue.js +60 -67
  134. package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts +1 -1
  135. package/dist/views/Request/RequestSection/RequestAuthDataTableInput.vue.d.ts.map +1 -1
  136. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  137. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  138. package/dist/views/Request/RequestSection/RequestBody.vue2.js +29 -28
  139. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  140. package/dist/views/Request/RequestSection/RequestParams.vue.js +11 -10
  141. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
  142. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +24 -28
  143. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  144. package/dist/views/Request/RequestSection/RequestSection.vue.js +2 -2
  145. package/dist/views/Request/RequestSection/RequestSection.vue2.js +17 -16
  146. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +2 -2
  147. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  148. package/dist/views/Request/RequestSidebar.vue.js +1 -1
  149. package/dist/views/Request/RequestSidebar.vue2.js +72 -73
  150. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  151. package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
  152. package/dist/views/Request/RequestSidebarItem.vue2.js +111 -109
  153. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
  154. package/dist/views/Request/RequestSidebarItemMenu.vue.js +2 -2
  155. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +15 -16
  156. package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
  157. package/dist/views/Request/RequestSubpageHeader.vue2.js +14 -14
  158. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
  159. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +1 -1
  160. package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +25 -21
  161. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  162. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +2 -2
  163. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +26 -25
  164. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts.map +1 -1
  165. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +7 -7
  166. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
  167. package/dist/views/Request/components/WorkspaceDropdown.vue.js +32 -31
  168. package/dist/views/Request/consts/new-auth-options.d.ts +16 -8
  169. package/dist/views/Request/consts/new-auth-options.d.ts.map +1 -1
  170. package/dist/views/Request/consts/new-auth-options.js +16 -8
  171. package/dist/views/Request/handle-drag.d.ts +2 -1
  172. package/dist/views/Request/handle-drag.d.ts.map +1 -1
  173. package/dist/views/Request/handle-drag.js +23 -25
  174. package/dist/views/Request/hooks/useOpenApiWatcher.d.ts.map +1 -1
  175. package/dist/views/Request/hooks/useOpenApiWatcher.js +40 -39
  176. package/dist/views/Request/libs/auth.d.ts +1 -29
  177. package/dist/views/Request/libs/auth.d.ts.map +1 -1
  178. package/dist/views/Request/libs/auth.js +2 -9
  179. package/dist/views/Request/libs/index.js +6 -8
  180. package/dist/views/Request/libs/live-sync.d.ts +6 -5
  181. package/dist/views/Request/libs/live-sync.d.ts.map +1 -1
  182. package/dist/views/Request/libs/live-sync.js +164 -185
  183. package/dist/views/Request/libs/oauth2.d.ts +6 -10
  184. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  185. package/dist/views/Request/libs/oauth2.js +54 -69
  186. package/dist/views/Servers/ServerForm.vue.d.ts.map +1 -1
  187. package/dist/views/Servers/ServerForm.vue.js +14 -13
  188. package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
  189. package/dist/views/Servers/Servers.vue2.js +18 -17
  190. package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
  191. package/dist/views/Settings/SettingsGeneral.vue.js +218 -126
  192. package/dist/views/Settings/{SettingsGeneralMode.vue.d.ts → components/SettingsAppearance.vue.d.ts} +2 -2
  193. package/dist/views/Settings/components/SettingsAppearance.vue.d.ts.map +1 -0
  194. package/dist/views/Settings/components/SettingsAppearance.vue.js +74 -0
  195. package/dist/views/Settings/components/SettingsAppearance.vue2.js +4 -0
  196. package/dist/views/Settings/components/SettingsSection.vue.d.ts +24 -0
  197. package/dist/views/Settings/components/SettingsSection.vue.d.ts.map +1 -0
  198. package/dist/views/Settings/components/SettingsSection.vue.js +24 -0
  199. package/dist/views/Settings/components/SettingsSection.vue2.js +4 -0
  200. package/package.json +9 -9
  201. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthModal.vue.d.ts +0 -16
  202. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthModal.vue.d.ts.map +0 -1
  203. package/dist/views/Settings/SettingsGeneralMode.vue.d.ts.map +0 -1
  204. package/dist/views/Settings/SettingsGeneralMode.vue.js +0 -78
  205. package/dist/views/Settings/SettingsGeneralMode.vue2.js +0 -4
@@ -1,13 +1,14 @@
1
- import { defineComponent as re, useCssVars as ae, computed as m, ref as le, resolveComponent as oe, openBlock as d, createElementBlock as k, normalizeClass as p, unref as n, createVNode as y, withCtx as c, createBlock as v, withModifiers as U, createElementVNode as o, toDisplayString as I, createCommentVNode as g, createTextVNode as j, renderSlot as ue, Fragment as de, renderList as pe } from "vue";
2
- import { ScalarButton as q, ScalarIcon as x, ScalarTooltip as fe } from "@scalar/components";
3
- import { Draggable as me } from "@scalar/draggable";
4
- import { RouterLink as ce } from "vue-router";
1
+ import { defineComponent as re, useCssVars as le, computed as f, ref as ae, resolveComponent as oe, openBlock as d, createElementBlock as w, normalizeClass as m, unref as n, createVNode as y, withCtx as c, createBlock as g, withModifiers as k, createElementVNode as o, toDisplayString as I, createCommentVNode as v, createTextVNode as j, renderSlot as ue, Fragment as de, renderList as pe } from "vue";
2
+ import { useActiveEntities as me } from "../../store/active-entities.js";
3
+ import { ScalarButton as U, ScalarIcon as x, ScalarTooltip as fe } from "@scalar/components";
4
+ import { Draggable as ce } from "@scalar/draggable";
5
+ import { RouterLink as ge } from "vue-router";
5
6
  import { PathId as ve } from "../../routes.js";
6
- import ge from "../../components/HttpMethod/HttpMethod.vue.js";
7
- import { useSidebar as be } from "../../hooks/useSidebar.js";
8
- import { getModifiers as he } from "../../libs/hot-keys.js";
9
- import { useWorkspace as ye } from "../../store/store.js";
10
- const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relative" }, ke = { class: "flex items-start" }, Ue = ["aria-expanded"], qe = { class: "flex h-5 items-center justify-center max-w-[14px]" }, De = { class: "flex flex-1 flex-row justify-between editable-sidebar-hover" }, Re = { class: "relative flex h-fit" }, Ce = { class: "grid gap-1.5 pointer-events-none max-w-10 w-content shadow-lg rounded bg-b-1 z-100 p-2 text-xxs leading-5 z-10 text-c-1" }, Me = { class: "flex items-center text-c-2" }, Te = { class: "text-pretty break-all" }, Ie = { key: 2 }, B = "hover:bg-sidebar-active-b indent-padding-left", Ve = /* @__PURE__ */ re({
7
+ import be from "../../components/HttpMethod/HttpMethod.vue.js";
8
+ import { useSidebar as he } from "../../hooks/useSidebar.js";
9
+ import { getModifiers as ye } from "../../libs/hot-keys.js";
10
+ import { useWorkspace as xe } from "../../store/store.js";
11
+ const we = { class: "flex flex-row gap-1 items-center" }, ke = { class: "relative" }, Ue = { class: "flex items-start" }, qe = ["aria-expanded"], De = { class: "flex h-5 items-center justify-center max-w-[14px]" }, Ce = { class: "flex flex-1 flex-row justify-between editable-sidebar-hover" }, Me = { class: "relative flex h-fit" }, Re = { class: "grid gap-1.5 pointer-events-none max-w-10 w-content shadow-lg rounded bg-b-1 z-100 p-2 text-xxs leading-5 z-10 text-c-1" }, Te = { class: "flex items-center text-c-2" }, Ie = { class: "text-pretty break-all" }, Ee = { key: 2 }, B = "hover:bg-sidebar-active-b indent-padding-left", We = /* @__PURE__ */ re({
11
12
  __name: "RequestSidebarItem",
12
13
  props: {
13
14
  isDraggable: { type: Boolean, default: !1 },
@@ -17,30 +18,31 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
17
18
  menuItem: {}
18
19
  },
19
20
  emits: ["onDragEnd", "newTab", "openMenu"],
20
- setup(V, { emit: W }) {
21
- ae((e) => ({
22
- "0ba7b02c": K.value,
23
- "4adbcd94": Q.value
21
+ setup(A, { emit: V }) {
22
+ le((e) => ({
23
+ "65be547c": K.value,
24
+ "726e30bc": Q.value
24
25
  }));
25
- const s = V, A = W, {
26
+ const s = A, W = V, {
26
27
  activeCollection: F,
28
+ router: Y,
27
29
  activeRequest: E,
28
- activeRouterParams: Y,
29
- activeWorkspace: w,
30
+ activeRouterParams: H,
31
+ activeWorkspace: q
32
+ } = me(), {
30
33
  collections: D,
31
- tags: H,
32
- isReadOnly: f,
34
+ tags: L,
35
+ isReadOnly: p,
33
36
  requests: $,
34
- requestExamples: R,
35
- collectionMutators: C,
37
+ requestExamples: C,
38
+ collectionMutators: M,
36
39
  tagMutators: z,
37
40
  requestMutators: S,
38
41
  requestExampleMutators: N,
39
- router: L,
40
42
  events: G
41
- } = ye(), { collapsedSidebarFolders: M, toggleSidebarFolder: J } = be(), i = m(() => {
42
- var b, a;
43
- const e = D[s.uid], t = H[s.uid], r = $[s.uid], u = R[s.uid];
43
+ } = xe(), { collapsedSidebarFolders: R, toggleSidebarFolder: J } = he(), i = f(() => {
44
+ var b, l;
45
+ const e = D[s.uid], t = L[s.uid], r = $[s.uid], u = C[s.uid];
44
46
  return e ? {
45
47
  title: ((b = e.info) == null ? void 0 : b.title) ?? "Unknown title",
46
48
  entity: e,
@@ -50,24 +52,24 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
50
52
  documentUrl: e.documentUrl,
51
53
  watchMode: e.watchMode,
52
54
  warning: "This cannot be undone. You’re about to delete the collection and all folders and requests inside it.",
53
- edit: (l, h) => {
54
- C.edit(e.uid, "info.title", l), h && C.edit(e.uid, "x-scalar-icon", h);
55
+ edit: (a, h) => {
56
+ M.edit(e.uid, "info.title", a), h && M.edit(e.uid, "x-scalar-icon", h);
55
57
  },
56
- delete: () => C.delete(e, w.value)
58
+ delete: () => M.delete(e, q.value)
57
59
  } : t ? {
58
60
  title: t.name,
59
61
  entity: t,
60
62
  resourceTitle: "Tag",
61
63
  children: t.children,
62
64
  warning: "This cannot be undone. You’re about to delete the tag and all requests inside it",
63
- edit: (l) => z.edit(t.uid, "name", l),
65
+ edit: (a) => z.edit(t.uid, "name", a),
64
66
  delete: () => z.delete(t, s.parentUids[0])
65
67
  } : r ? {
66
68
  title: r.summary ?? [r.method, r.path].join(" - "),
67
69
  link: {
68
70
  name: "request",
69
71
  params: {
70
- workspace: w.value.uid,
72
+ workspace: q.value.uid,
71
73
  request: r.uid
72
74
  }
73
75
  },
@@ -76,45 +78,45 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
76
78
  resourceTitle: "Request",
77
79
  warning: "This cannot be undone. You’re about to delete the request.",
78
80
  children: r.examples,
79
- edit: (l) => S.edit(r.uid, "summary", l),
81
+ edit: (a) => S.edit(r.uid, "summary", a),
80
82
  delete: () => S.delete(r, s.parentUids[0])
81
83
  } : {
82
84
  title: u.name,
83
85
  link: {
84
86
  name: "request.examples",
85
87
  params: {
86
- workspace: w.value.uid,
88
+ workspace: q.value.uid,
87
89
  request: u.requestUid,
88
90
  examples: u.uid
89
91
  }
90
92
  },
91
- method: (a = $[u.requestUid]) == null ? void 0 : a.method,
93
+ method: (l = $[u.requestUid]) == null ? void 0 : l.method,
92
94
  entity: u,
93
95
  resourceTitle: "Example",
94
96
  warning: "This cannot be undone. You’re about to delete the example from the request.",
95
97
  children: [],
96
- edit: (l) => N.edit(u.uid, "name", l),
98
+ edit: (a) => N.edit(u.uid, "name", a),
97
99
  delete: () => N.delete(u)
98
100
  };
99
- }), O = m(
101
+ }), O = f(
100
102
  () => i.value.entity.type === "collection" && i.value.title === "Drafts"
101
- ), K = m(() => s.parentUids.length ? f.value ? `${(s.parentUids.length - 1) * 12}px` : `${s.parentUids.length * 12}px` : "12px"), Q = m(() => s.parentUids.length ? f.value ? `${(s.parentUids.length - 1) * 12}px` : `${s.parentUids.length * 12}px` : "0px"), X = m(
103
+ ), K = f(() => s.parentUids.length ? p ? `${(s.parentUids.length - 1) * 12}px` : `${s.parentUids.length * 12}px` : "12px"), Q = f(() => s.parentUids.length ? p ? `${(s.parentUids.length - 1) * 12}px` : `${s.parentUids.length * 12}px` : "0px"), X = f(
102
104
  () => {
103
105
  var e;
104
- return M[s.uid] || ((e = E.value) == null ? void 0 : e.uid) === s.uid && i.value.entity.examples.length > 1;
106
+ return R[s.uid] || ((e = E.value) == null ? void 0 : e.uid) === s.uid && i.value.entity.examples.length > 1;
105
107
  }
106
- ), Z = m(
108
+ ), Z = f(
107
109
  () => {
108
110
  var e;
109
- return Y.value[ve.Request] === "default" && ((e = E.value) == null ? void 0 : e.uid) === s.uid;
111
+ return H.value[ve.Request] === "default" && ((e = E.value) == null ? void 0 : e.uid) === s.uid;
110
112
  }
111
- ), T = le(null), P = m(() => {
113
+ ), T = ae(null), P = f(() => {
112
114
  let e = 0.5, t = 0.5;
113
115
  if (!T.value) return { ceiling: e, floor: t };
114
116
  const { draggingItem: r } = T.value;
115
117
  return !D[r == null ? void 0 : r.id] && i.value.entity.type === "collection" ? (e = 1, t = 0) : i.value.entity.type === "tag" && (e = 0.8, t = 0.2), { ceiling: e, floor: t };
116
- }), _ = (e, t) => !(w.value.isReadOnly || R[t.id] || D[e.id]), ee = (e, t) => {
117
- e && (he(["default"]).some((b) => e[b]) ? A("newTab", t.title || "", t.entity.uid) : t.link && L.push(t.link));
118
+ }), _ = (e, t) => !(p || C[t.id] || D[e.id]), ee = (e, t) => {
119
+ e && (ye(["default"]).some((b) => e[b]) ? W("newTab", t.title || "", t.entity.uid) : t.link && Y.push(t.link));
118
120
  };
119
121
  function te() {
120
122
  G.commandPalette.emit({
@@ -125,18 +127,18 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
125
127
  }
126
128
  });
127
129
  }
128
- const ie = m(() => {
130
+ const ie = f(() => {
129
131
  const { uid: e, watchModeStatus: t } = F.value || {};
130
132
  return e !== i.value.entity.uid ? "text-c-3" : t === "WATCHING" ? "text-c-1" : t === "ERROR" ? "text-red" : "text-c-3";
131
- }), ne = m(() => i.value.title == "Drafts" && !f.value && i.value.children.length > 0);
133
+ }), ne = f(() => i.value.title == "Drafts" && !p && i.value.children.length > 0);
132
134
  return (e, t) => {
133
135
  const r = oe("RequestSidebarItem", !0);
134
- return d(), k("li", {
135
- class: p(["relative flex flex-row", [
136
- n(f) && e.parentUids.length > 1 || !n(f) && e.parentUids.length ? "before:bg-border before:pointer-events-none before:z-1 before:absolute before:left-[calc(.75rem_+_.5px)] before:top-0 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 indent-border-line-offset" : ""
136
+ return d(), w("li", {
137
+ class: m(["relative flex flex-row", [
138
+ n(p) && e.parentUids.length > 1 || !n(p) && e.parentUids.length ? "before:bg-border before:pointer-events-none before:z-1 before:absolute before:left-[calc(.75rem_+_.5px)] before:top-0 before:h-[calc(100%_+_.5px)] last:before:h-full before:w-[.5px] mb-[.5px] last:mb-0 indent-border-line-offset" : ""
137
139
  ]])
138
140
  }, [
139
- y(n(me), {
141
+ y(n(ce), {
140
142
  id: i.value.entity.uid,
141
143
  ref_key: "draggableRef",
142
144
  ref: T,
@@ -151,40 +153,40 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
151
153
  default: c(() => {
152
154
  var u, b;
153
155
  return [
154
- i.value.link ? (d(), v(n(ce), {
156
+ i.value.link ? (d(), g(n(ge), {
155
157
  key: 0,
156
158
  class: "group no-underline",
157
159
  to: i.value.link,
158
- onClick: t[1] || (t[1] = U(
159
- (a) => ee(a, i.value),
160
+ onClick: t[1] || (t[1] = k(
161
+ (l) => ee(l, i.value),
160
162
  ["prevent"]
161
163
  ))
162
164
  }, {
163
- default: c(({ isExactActive: a }) => {
164
- var l, h;
165
+ default: c(({ isExactActive: l }) => {
166
+ var a, h;
165
167
  return [
166
168
  o("div", {
167
- class: p(["relative flex min-h-8 cursor-pointer flex-row items-start justify-between gap-2 py-1.5 pr-2 rounded editable-sidebar-hover w-full", [
169
+ class: m(["relative flex min-h-8 cursor-pointer flex-row items-start justify-between gap-2 py-1.5 pr-2 rounded editable-sidebar-hover w-full", [
168
170
  B,
169
- a || Z.value ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
171
+ l || Z.value ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
170
172
  ]])
171
173
  }, [
172
174
  o("span", {
173
- class: p(["line-clamp-3 font-medium w-full pl-2 word-break-break-word", {
174
- "editable-sidebar-hover-item": !n(f)
175
+ class: m(["line-clamp-3 font-medium w-full pl-2 word-break-break-word", {
176
+ "editable-sidebar-hover-item": !n(p)
175
177
  }])
176
178
  }, I(i.value.title), 3),
177
- o("div", xe, [
178
- o("div", we, [
179
- n(f) ? g("", !0) : (d(), v(n(q), {
179
+ o("div", we, [
180
+ o("div", ke, [
181
+ n(p) ? v("", !0) : (d(), g(n(U), {
180
182
  key: 0,
181
- class: p(["px-0.5 py-0 hover:bg-b-3 opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100 absolute -translate-y-1/2 right-0 aspect-square inset-y-2/4 h-fit", {
182
- flex: ((h = (l = e.menuItem) == null ? void 0 : l.item) == null ? void 0 : h.entity.uid) === i.value.entity.uid && e.menuItem.open
183
+ class: m(["px-0.5 py-0 hover:bg-b-3 opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100 absolute -translate-y-1/2 right-0 aspect-square inset-y-2/4 h-fit", {
184
+ flex: ((h = (a = e.menuItem) == null ? void 0 : a.item) == null ? void 0 : h.entity.uid) === i.value.entity.uid && e.menuItem.open
183
185
  }]),
184
186
  size: "sm",
185
187
  type: "button",
186
188
  variant: "ghost",
187
- onClick: t[0] || (t[0] = U(
189
+ onClick: t[0] || (t[0] = k(
188
190
  (se) => e.$emit("openMenu", {
189
191
  item: i.value,
190
192
  parentUids: e.parentUids,
@@ -203,32 +205,32 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
203
205
  _: 1
204
206
  }, 8, ["class"]))
205
207
  ]),
206
- o("span", ke, [
208
+ o("span", Ue, [
207
209
  t[10] || (t[10] = j("   ")),
208
210
  t[11] || (t[11] = o("span", { class: "sr-only" }, "HTTP Method:", -1)),
209
- i.value.method ? (d(), v(n(ge), {
211
+ i.value.method ? (d(), g(n(be), {
210
212
  key: 0,
211
213
  class: "font-bold",
212
214
  method: i.value.method
213
- }, null, 8, ["method"])) : g("", !0)
215
+ }, null, 8, ["method"])) : v("", !0)
214
216
  ])
215
217
  ])
216
218
  ], 2)
217
219
  ];
218
220
  }),
219
221
  _: 1
220
- }, 8, ["to"])) : !n(f) || e.parentUids.length ? (d(), k("button", {
222
+ }, 8, ["to"])) : !n(p) || e.parentUids.length ? (d(), w("button", {
221
223
  key: 1,
222
- "aria-expanded": n(M)[i.value.entity.uid],
223
- class: p(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 focus-visible:z-10", B]),
224
+ "aria-expanded": n(R)[i.value.entity.uid],
225
+ class: m(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 focus-visible:z-10", B]),
224
226
  type: "button",
225
- onClick: t[4] || (t[4] = (a) => n(J)(i.value.entity.uid))
227
+ onClick: t[4] || (t[4] = (l) => n(J)(i.value.entity.uid))
226
228
  }, [
227
- o("span", qe, [
229
+ o("span", De, [
228
230
  ue(e.$slots, "leftIcon", {}, () => [
229
231
  o("div", {
230
- class: p({
231
- "rotate-90": n(M)[i.value.entity.uid]
232
+ class: m({
233
+ "rotate-90": n(R)[i.value.entity.uid]
232
234
  })
233
235
  }, [
234
236
  y(n(x), {
@@ -241,26 +243,26 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
241
243
  ], !0),
242
244
  t[12] || (t[12] = j("   "))
243
245
  ]),
244
- o("div", De, [
246
+ o("div", Ce, [
245
247
  o("span", {
246
- class: p(["line-clamp-3 font-medium text-left w-full word-break-break-word", {
247
- "editable-sidebar-hover-item": !n(f)
248
+ class: m(["line-clamp-3 font-medium text-left w-full word-break-break-word", {
249
+ "editable-sidebar-hover-item": !n(p)
248
250
  }])
249
251
  }, I(i.value.title), 3),
250
- o("div", Re, [
251
- !n(f) && !O.value ? (d(), v(n(q), {
252
+ o("div", Me, [
253
+ !n(p) && !O.value ? (d(), g(n(U), {
252
254
  key: 0,
253
- class: p(["px-0.5 py-0 hover:bg-b-3 opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100 absolute -translate-y-1/2 right-0 aspect-square inset-y-2/4 h-fit", {
255
+ class: m(["px-0.5 py-0 hover:bg-b-3 opacity-0 group-hover:opacity-100 group-focus-visible:opacity-100 group-has-[:focus-visible]:opacity-100 absolute -translate-y-1/2 right-0 aspect-square inset-y-2/4 h-fit", {
254
256
  flex: ((u = e.menuItem.item) == null ? void 0 : u.entity.uid) === i.value.entity.uid && e.menuItem.open,
255
257
  "right-5": i.value.watchMode
256
258
  }]),
257
259
  size: "sm",
258
260
  variant: "ghost",
259
- onClick: t[2] || (t[2] = U(
260
- (a) => e.$emit("openMenu", {
261
+ onClick: t[2] || (t[2] = k(
262
+ (l) => e.$emit("openMenu", {
261
263
  item: i.value,
262
264
  parentUids: e.parentUids,
263
- targetRef: a.currentTarget.parentNode,
265
+ targetRef: l.currentTarget.parentNode,
264
266
  open: !0
265
267
  }),
266
268
  ["stop", "prevent"]
@@ -273,20 +275,20 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
273
275
  })
274
276
  ]),
275
277
  _: 1
276
- }, 8, ["class"])) : g("", !0),
277
- O.value && ne.value ? (d(), v(n(q), {
278
+ }, 8, ["class"])) : v("", !0),
279
+ O.value && ne.value ? (d(), g(n(U), {
278
280
  key: 1,
279
- class: p(["px-0.5 py-0 hover:bg-b-3 hidden group-hover:flex absolute -translate-y-1/2 right-0 aspect-square inset-y-2/4 h-fit", {
281
+ class: m(["px-0.5 py-0 hover:bg-b-3 hidden group-hover:flex absolute -translate-y-1/2 right-0 aspect-square inset-y-2/4 h-fit", {
280
282
  flex: ((b = e.menuItem.item) == null ? void 0 : b.entity.uid) === i.value.entity.uid && e.menuItem.open,
281
283
  "right-5": i.value.watchMode
282
284
  }]),
283
285
  size: "sm",
284
286
  variant: "ghost",
285
- onClick: t[3] || (t[3] = U(
286
- (a) => e.$emit("openMenu", {
287
+ onClick: t[3] || (t[3] = k(
288
+ (l) => e.$emit("openMenu", {
287
289
  item: i.value,
288
290
  parentUids: e.parentUids,
289
- targetRef: a.currentTarget.parentNode,
291
+ targetRef: l.currentTarget.parentNode,
290
292
  open: !0
291
293
  }),
292
294
  ["stop", "prevent"]
@@ -299,50 +301,50 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
299
301
  })
300
302
  ]),
301
303
  _: 1
302
- }, 8, ["class"])) : g("", !0),
303
- i.value.watchMode ? (d(), v(n(fe), {
304
+ }, 8, ["class"])) : v("", !0),
305
+ i.value.watchMode ? (d(), g(n(fe), {
304
306
  key: 2,
305
307
  side: "right",
306
308
  sideOffset: 12
307
309
  }, {
308
310
  trigger: c(() => [
309
311
  y(n(x), {
310
- class: p(["text-sm", ie.value]),
312
+ class: m(["text-sm", ie.value]),
311
313
  icon: "Watch",
312
314
  size: "sm",
313
315
  thickness: "2.5"
314
316
  }, null, 8, ["class"])
315
317
  ]),
316
318
  content: c(() => [
317
- o("div", Ce, [
318
- o("div", Me, [
319
- o("p", Te, " Watching: " + I(i.value.documentUrl), 1)
319
+ o("div", Re, [
320
+ o("div", Te, [
321
+ o("p", Ie, " Watching: " + I(i.value.documentUrl), 1)
320
322
  ])
321
323
  ])
322
324
  ]),
323
325
  _: 1
324
- })) : g("", !0),
326
+ })) : v("", !0),
325
327
  t[13] || (t[13] = o("span", null, " ", -1))
326
328
  ])
327
329
  ])
328
- ], 8, Ue)) : g("", !0),
329
- X.value ? (d(), k("ul", Ie, [
330
- (d(!0), k(de, null, pe(i.value.children, (a) => (d(), v(r, {
331
- key: a,
332
- isDraggable: !n(R)[a],
330
+ ], 8, qe)) : v("", !0),
331
+ X.value ? (d(), w("ul", Ee, [
332
+ (d(!0), w(de, null, pe(i.value.children, (l) => (d(), g(r, {
333
+ key: l,
334
+ isDraggable: !n(C)[l],
333
335
  isDroppable: _,
334
336
  menuItem: e.menuItem,
335
337
  parentUids: [...e.parentUids, e.uid],
336
- uid: a,
337
- onNewTab: t[5] || (t[5] = (l, h) => e.$emit("newTab", l, h)),
338
- onOnDragEnd: t[6] || (t[6] = (...l) => e.$emit("onDragEnd", ...l)),
339
- onOpenMenu: t[7] || (t[7] = (l) => e.$emit("openMenu", l))
338
+ uid: l,
339
+ onNewTab: t[5] || (t[5] = (a, h) => e.$emit("newTab", a, h)),
340
+ onOnDragEnd: t[6] || (t[6] = (...a) => e.$emit("onDragEnd", ...a)),
341
+ onOpenMenu: t[7] || (t[7] = (a) => e.$emit("openMenu", a))
340
342
  }, null, 8, ["isDraggable", "menuItem", "parentUids", "uid"]))), 128)),
341
- i.value.children.length === 0 ? (d(), v(n(q), {
343
+ i.value.children.length === 0 ? (d(), g(n(U), {
342
344
  key: 0,
343
- class: p(["mb-[.5px] flex gap-1.5 h-8 text-c-1 py-0 justify-start text-xs w-full hover:bg-b-2", e.parentUids.length ? "pl-9" : ""]),
345
+ class: m(["mb-[.5px] flex gap-1.5 h-8 text-c-1 py-0 justify-start text-xs w-full hover:bg-b-2", e.parentUids.length ? "pl-9" : ""]),
344
346
  variant: "ghost",
345
- onClick: t[8] || (t[8] = (a) => te())
347
+ onClick: t[8] || (t[8] = (l) => te())
346
348
  }, {
347
349
  default: c(() => [
348
350
  y(n(x), {
@@ -353,8 +355,8 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
353
355
  t[14] || (t[14] = o("span", null, "Add Request", -1))
354
356
  ]),
355
357
  _: 1
356
- }, 8, ["class"])) : g("", !0)
357
- ])) : g("", !0)
358
+ }, 8, ["class"])) : v("", !0)
359
+ ])) : v("", !0)
358
360
  ];
359
361
  }),
360
362
  _: 3
@@ -364,5 +366,5 @@ const xe = { class: "flex flex-row gap-1 items-center" }, we = { class: "relativ
364
366
  }
365
367
  });
366
368
  export {
367
- Ve as default
369
+ We as default
368
370
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RequestSidebarItemMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItemMenu.vue"],"names":[],"mappings":"AA0QA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAa5D,KAAK,WAAW,GAAG;IAAE,QAAQ,EAAE,eAAe,CAAA;CAAE,CAAC;;;;;;;;;;AAuiBjD,wBAOG"}
1
+ {"version":3,"file":"RequestSidebarItemMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSidebarItemMenu.vue"],"names":[],"mappings":"AA2QA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAa5D,KAAK,WAAW,GAAG;IAAE,QAAQ,EAAE,eAAe,CAAA;CAAE,CAAC;;;;;;;;;;AAsiBjD,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import e from "./RequestSidebarItemMenu.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(e, [["__scopeId", "data-v-c06e6ae9"]]);
4
+ const a = /* @__PURE__ */ t(e, [["__scopeId", "data-v-722cfbe4"]]);
5
5
  export {
6
- m as default
6
+ a as default
7
7
  };
@@ -2,28 +2,27 @@ import { defineComponent as J, ref as O, watch as Q, onMounted as X, onBeforeUnm
2
2
  import T from "../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
3
3
  import te from "../../components/Sidebar/Actions/EditSidebarListCollection.vue.js";
4
4
  import ne from "../../components/Sidebar/Actions/EditSidebarListElement.vue.js";
5
- import { createInitialRequest as le } from "../../store/requests.js";
6
- import { useModal as W, ScalarDropdown as ie, ScalarDropdownItem as g, ScalarIcon as w, ScalarModal as b } from "@scalar/components";
7
- import { useRouter as ae } from "vue-router";
5
+ import { useActiveEntities as le } from "../../store/active-entities.js";
6
+ import { createInitialRequest as ie } from "../../store/requests.js";
7
+ import { useModal as W, ScalarDropdown as ae, ScalarDropdownItem as g, ScalarIcon as w, ScalarModal as b } from "@scalar/components";
8
+ import { useRouter as se } from "vue-router";
8
9
  import { PathId as A } from "../../routes.js";
9
- import { useWorkspace as se } from "../../store/store.js";
10
- const ve = /* @__PURE__ */ J({
10
+ import { useWorkspace as oe } from "../../store/store.js";
11
+ const ge = /* @__PURE__ */ J({
11
12
  __name: "RequestSidebarItemMenu",
12
13
  props: {
13
14
  menuItem: {}
14
15
  },
15
16
  emits: ["closeMenu", "toggleWatchMode", "clearDrafts"],
16
17
  setup(B, { emit: U }) {
17
- const r = B, C = U, { replace: $ } = ae(), {
18
+ const r = B, C = U, { replace: $ } = se(), {
18
19
  activeWorkspace: y,
19
20
  activeRouterParams: x,
20
- events: V,
21
- requestMutators: L,
22
21
  activeWorkspaceCollections: E,
23
- activeWorkspaceRequests: P
24
- } = se(), p = W(), D = W(), M = W(), K = () => {
22
+ activeWorkspaceRequests: V
23
+ } = le(), { events: L, requestMutators: P } = oe(), p = W(), D = W(), M = W(), K = () => {
25
24
  var e;
26
- return V.commandPalette.emit({
25
+ return L.commandPalette.emit({
27
26
  commandName: "Add Example",
28
27
  metaData: {
29
28
  itemUid: (e = r.menuItem.item) == null ? void 0 : e.entity.uid
@@ -34,14 +33,14 @@ const ve = /* @__PURE__ */ J({
34
33
  (a = r.menuItem.item) == null || a.edit(e, t), p.hide();
35
34
  }, F = () => {
36
35
  var e, t, a;
37
- if ((e = r.menuItem.item) == null || e.delete(), !P.value.length) {
38
- const { request: f } = le(), i = E.value.find(
36
+ if ((e = r.menuItem.item) == null || e.delete(), !V.value.length) {
37
+ const { request: f } = ie(), i = E.value.find(
39
38
  (o) => {
40
39
  var l;
41
40
  return ((l = o.info) == null ? void 0 : l.title) === "Drafts";
42
41
  }
43
42
  );
44
- i && (L.add(f, i.uid), $(`/workspace/${y.value.uid}/request/${f.uid}`));
43
+ i && (P.add(f, i.uid), $(`/workspace/${y.value.uid}/request/${f.uid}`));
45
44
  }
46
45
  if (x.value[A.Request] === ((t = r.menuItem.item) == null ? void 0 : t.entity.uid) && $(`/workspace/${y.value.uid}/request/default`), x.value[A.Examples] === ((a = r.menuItem.item) == null ? void 0 : a.entity.uid) && $(`/workspace/${y.value}/request/default`), E.value[0]) {
47
46
  const f = E.value[0].requests[0];
@@ -66,7 +65,7 @@ const ve = /* @__PURE__ */ J({
66
65
  return (e, t) => {
67
66
  var a, f;
68
67
  return s(), h(q, null, [
69
- e.menuItem.targetRef && e.menuItem.open ? (s(), d(n(ie), {
68
+ e.menuItem.targetRef && e.menuItem.open ? (s(), d(n(ae), {
70
69
  key: 0,
71
70
  static: "",
72
71
  targetRef: e.menuItem.targetRef,
@@ -238,5 +237,5 @@ const ve = /* @__PURE__ */ J({
238
237
  }
239
238
  });
240
239
  export {
241
- ve as default
240
+ ge as default
242
241
  };
@@ -1,7 +1,7 @@
1
1
  import e from "./RequestSubpageHeader.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-1e708e85"]]);
4
+ const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-1fc78ac0"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1,11 +1,11 @@
1
- import { defineComponent as y, openBlock as l, createElementBlock as a, createElementVNode as n, createVNode as s, normalizeClass as c, unref as t, createBlock as d, createCommentVNode as i } from "vue";
1
+ import { defineComponent as y, openBlock as l, createElementBlock as a, createElementVNode as r, createVNode as s, normalizeClass as c, unref as t, createBlock as d, createCommentVNode as i } from "vue";
2
2
  import k from "../../components/AddressBar/AddressBar.vue.js";
3
3
  import C from "../../components/EnvironmentSelector/EnvironmentSelector.vue.js";
4
4
  import x from "../../components/Sidebar/SidebarToggle.vue.js";
5
+ import { useActiveEntities as v } from "../../store/active-entities.js";
5
6
  import { ScalarIcon as g } from "@scalar/components";
6
7
  import V from "./components/WorkspaceDropdown.vue.js";
7
- import v from "../../components/OpenApiClientButton.vue.js";
8
- import { useWorkspace as w } from "../../store/store.js";
8
+ import w from "../../components/OpenApiClientButton.vue.js";
9
9
  import { useLayout as h } from "../../hooks/useLayout.js";
10
10
  const $ = { class: "lg:min-h-header flex items-center w-full justify-center p-2 pt-2 lg:pt-1 lg:p-1 flex-wrap t-app__top-container border-b-1/2" }, B = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 lg:mb-0 mb-2 lg:flex-1 w-6/12" }, R = { class: "flex flex-row items-center gap-1 lg:px-2.5 lg:mb-0 mb-2 lg:flex-1 justify-end w-6/12" }, H = /* @__PURE__ */ y({
11
11
  __name: "RequestSubpageHeader",
@@ -15,11 +15,11 @@ const $ = { class: "lg:min-h-header flex items-center w-full justify-center p-2
15
15
  },
16
16
  emits: ["update:modelValue", "hideModal", "importCurl"],
17
17
  setup(S) {
18
- const { activeCollection: m } = w(), { layout: b } = h();
18
+ const { activeCollection: m } = v(), { layout: b } = h();
19
19
  return (o, e) => {
20
20
  var p, u, f;
21
21
  return l(), a("div", $, [
22
- n("div", B, [
22
+ r("div", B, [
23
23
  s(x, {
24
24
  class: c(["gitbook-hidden", [
25
25
  "xl:hidden",
@@ -27,21 +27,21 @@ const $ = { class: "lg:min-h-header flex items-center w-full justify-center p-2
27
27
  { "!flex": t(b) === "modal" }
28
28
  ]]),
29
29
  modelValue: o.modelValue,
30
- "onUpdate:modelValue": e[0] || (e[0] = (r) => o.$emit("update:modelValue", r))
30
+ "onUpdate:modelValue": e[0] || (e[0] = (n) => o.$emit("update:modelValue", n))
31
31
  }, null, 8, ["class", "modelValue"]),
32
32
  o.isReadonly ? i("", !0) : (l(), d(t(V), { key: 0 })),
33
- e[4] || (e[4] = n("a", {
33
+ e[4] || (e[4] = r("a", {
34
34
  class: "text-c-2 text-sm font-medium gitbook-show ml-.5 hover:text-c-1 border p-1 rounded hover:bg-b-3",
35
35
  href: "https://scalar.com/",
36
36
  target: "_blank"
37
37
  }, " Powered by Scalar.com ", -1))
38
38
  ]),
39
39
  s(k, {
40
- onImportCurl: e[1] || (e[1] = (r) => o.$emit("importCurl", r))
40
+ onImportCurl: e[1] || (e[1] = (n) => o.$emit("importCurl", n))
41
41
  }),
42
- n("div", R, [
42
+ r("div", R, [
43
43
  o.isReadonly ? i("", !0) : (l(), d(C, { key: 0 })),
44
- o.isReadonly && ((p = t(m)) != null && p.documentUrl) ? (l(), d(t(v), {
44
+ o.isReadonly && ((p = t(m)) != null && p.documentUrl) ? (l(), d(t(w), {
45
45
  key: 1,
46
46
  buttonSource: "modal",
47
47
  class: "gitbook-hidden !w-fit lg:-mr-1",
@@ -52,27 +52,27 @@ const $ = { class: "lg:min-h-header flex items-center w-full justify-center p-2
52
52
  key: 2,
53
53
  class: "app-exit-button p-2 rounded-full fixed right-2 top-2 gitbook-hidden",
54
54
  type: "button",
55
- onClick: e[2] || (e[2] = (r) => o.$emit("hideModal"))
55
+ onClick: e[2] || (e[2] = (n) => o.$emit("hideModal"))
56
56
  }, [
57
57
  s(t(g), {
58
58
  icon: "Close",
59
59
  size: "lg",
60
60
  thickness: "2"
61
61
  }),
62
- e[5] || (e[5] = n("span", { class: "sr-only" }, "Close Client", -1))
62
+ e[5] || (e[5] = r("span", { class: "sr-only" }, "Close Client", -1))
63
63
  ])) : i("", !0),
64
64
  o.isReadonly ? (l(), a("button", {
65
65
  key: 3,
66
66
  class: "text-c-1 hover:bg-b-2 active:text-c-1 p-2 rounded -mr-1.5 gitbook-show",
67
67
  type: "button",
68
- onClick: e[3] || (e[3] = (r) => o.$emit("hideModal"))
68
+ onClick: e[3] || (e[3] = (n) => o.$emit("hideModal"))
69
69
  }, [
70
70
  s(t(g), {
71
71
  icon: "Close",
72
72
  size: "md",
73
73
  thickness: "1.75"
74
74
  }),
75
- e[6] || (e[6] = n("span", { class: "sr-only" }, "Close Client", -1))
75
+ e[6] || (e[6] = r("span", { class: "sr-only" }, "Close Client", -1))
76
76
  ])) : i("", !0)
77
77
  ])
78
78
  ]);
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseBodyRaw.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseBodyRaw.vue"],"names":[],"mappings":"AAyGA,OAAO,EAAE,KAAK,kBAAkB,EAAiB,MAAM,wBAAwB,CAAA;AAM/E,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,GAAG,CAAA;IACZ,QAAQ,CAAC,EAAE,kBAAkB,CAAA;CAC9B,CAAC;;AAyGF,wBAOG"}
1
+ {"version":3,"file":"ResponseBodyRaw.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseBodyRaw.vue"],"names":[],"mappings":"AAyGA,OAAO,EAAE,KAAK,kBAAkB,EAAiB,MAAM,wBAAwB,CAAA;AAM/E,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,GAAG,CAAA;IACZ,QAAQ,CAAC,EAAE,kBAAkB,CAAA;CAC9B,CAAC;;AA4GF,wBAOG"}