@scalar/api-client 2.1.45 → 2.1.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 (192) hide show
  1. package/CHANGELOG.md +39 -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 +66 -58
  5. package/dist/components/AddressBar/AddressBarHistory.vue.js +2 -2
  6. package/dist/components/AddressBar/AddressBarHistory.vue2.js +8 -8
  7. package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
  8. package/dist/components/AddressBar/AddressBarServer.vue.js +40 -39
  9. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  10. package/dist/components/CodeInput/CodeInput.vue.js +1 -1
  11. package/dist/components/CodeInput/CodeInput.vue2.js +7 -7
  12. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
  13. package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +32 -26
  14. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -1
  15. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +14 -9
  16. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  17. package/dist/components/CommandPalette/TheCommandPalette.vue.js +4 -4
  18. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +15 -10
  19. package/dist/components/ContextBar.vue.d.ts +1 -1
  20. package/dist/components/ContextBar.vue.d.ts.map +1 -1
  21. package/dist/components/ContextBar.vue.js +2 -2
  22. package/dist/components/ContextBar.vue2.js +30 -19
  23. package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
  24. package/dist/components/DataTable/DataTableCheckbox.vue.js +17 -17
  25. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  26. package/dist/components/DataTable/DataTableInput.vue.js +2 -2
  27. package/dist/components/DataTable/DataTableInput.vue2.js +10 -10
  28. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
  29. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +23 -18
  30. package/dist/components/Form/Form.vue.js +15 -15
  31. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
  32. package/dist/components/ImportCollection/DropEventListener.vue.d.ts +2 -2
  33. package/dist/components/ImportCollection/DropEventListener.vue.js +6 -6
  34. package/dist/components/ImportCollection/ImportCollectionListener.vue.d.ts.map +1 -1
  35. package/dist/components/ImportCollection/ImportCollectionListener.vue.js +22 -21
  36. package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts +1 -0
  37. package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
  38. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +87 -74
  39. package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +1 -1
  40. package/dist/components/ImportCollection/ImportNowButton.vue.js +14 -13
  41. package/dist/components/ImportCollection/PasteEventListener.vue.d.ts +2 -2
  42. package/dist/components/ImportCollection/PasteEventListener.vue.js +5 -5
  43. package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts +2 -2
  44. package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.d.ts.map +1 -1
  45. package/dist/components/ImportCollection/UrlQueryParameterChecker.vue.js +10 -5
  46. package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -1
  47. package/dist/components/ImportCollection/WorkspaceSelector.vue.js +43 -33
  48. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +1 -0
  49. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
  50. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +31 -21
  51. package/dist/components/Search/useSearch.d.ts +2 -0
  52. package/dist/components/Search/useSearch.d.ts.map +1 -1
  53. package/dist/components/Search/useSearch.js +25 -24
  54. package/dist/components/SideNav/DownloadAppButton.vue.d.ts +3 -0
  55. package/dist/components/SideNav/DownloadAppButton.vue.d.ts.map +1 -0
  56. package/dist/components/SideNav/DownloadAppButton.vue.js +7 -0
  57. package/dist/components/SideNav/DownloadAppButton.vue2.js +33 -0
  58. package/dist/components/SideNav/SideHelp.vue.d.ts.map +1 -1
  59. package/dist/components/SideNav/SideHelp.vue.js +55 -53
  60. package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
  61. package/dist/components/SideNav/SideNav.vue.js +82 -5
  62. package/dist/components/SideNav/SideNav.vue2.js +2 -72
  63. package/dist/components/{SubpageHeader.vue.d.ts → SideNav/SideNavGroup.vue.d.ts} +3 -3
  64. package/dist/components/SideNav/SideNavGroup.vue.d.ts.map +1 -0
  65. package/dist/components/SideNav/SideNavGroup.vue.js +16 -0
  66. package/dist/components/SideNav/SideNavGroup.vue2.js +4 -0
  67. package/dist/components/SideNav/SideNavLink.vue.d.ts +5 -5
  68. package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
  69. package/dist/components/SideNav/SideNavLink.vue.js +31 -34
  70. package/dist/components/SideNav/SideNavRouterLink.vue.d.ts +25 -0
  71. package/dist/components/SideNav/SideNavRouterLink.vue.d.ts.map +1 -0
  72. package/dist/components/SideNav/SideNavRouterLink.vue.js +29 -0
  73. package/dist/components/SideNav/SideNavRouterLink.vue2.js +4 -0
  74. package/dist/components/Sidebar/SidebarButton.vue.d.ts +1 -4
  75. package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
  76. package/dist/components/Sidebar/SidebarButton.vue.js +17 -17
  77. package/dist/components/Sidebar/SidebarToggle.vue.d.ts.map +1 -1
  78. package/dist/components/Sidebar/SidebarToggle.vue.js +16 -15
  79. package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
  80. package/dist/components/TopNav/TopNav.vue.js +2 -2
  81. package/dist/components/TopNav/TopNav.vue2.js +14 -14
  82. package/dist/components/TopNav/TopNavItem.vue.d.ts +2 -2
  83. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  84. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +31 -31
  85. package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
  86. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +13 -21
  87. package/dist/hooks/index.d.ts +2 -1
  88. package/dist/hooks/index.d.ts.map +1 -1
  89. package/dist/hooks/index.js +6 -4
  90. package/dist/hooks/useLayout.d.ts +13 -0
  91. package/dist/hooks/useLayout.d.ts.map +1 -0
  92. package/dist/hooks/useLayout.js +7 -0
  93. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
  94. package/dist/layouts/App/ApiClientApp.vue.js +37 -37
  95. package/dist/layouts/App/MainLayout.vue.d.ts.map +1 -1
  96. package/dist/layouts/App/MainLayout.vue.js +21 -13
  97. package/dist/layouts/App/create-api-client-app.d.ts +28 -28
  98. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  99. package/dist/layouts/App/create-api-client-app.js +10 -8
  100. package/dist/layouts/Modal/ApiClientModal.vue.d.ts +3 -1
  101. package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
  102. package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
  103. package/dist/layouts/Modal/ApiClientModal.vue2.js +37 -25
  104. package/dist/layouts/Modal/create-api-client-modal.d.ts +56 -56
  105. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  106. package/dist/layouts/Modal/create-api-client-modal.js +8 -7
  107. package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
  108. package/dist/layouts/Web/ApiClientWeb.vue.js +30 -30
  109. package/dist/layouts/Web/create-api-client-web.d.ts +28 -28
  110. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  111. package/dist/layouts/Web/create-api-client-web.js +9 -7
  112. package/dist/libs/create-client.d.ts +35 -29
  113. package/dist/libs/create-client.d.ts.map +1 -1
  114. package/dist/libs/create-client.js +55 -42
  115. package/dist/libs/hot-keys.d.ts +1 -1
  116. package/dist/router.d.ts +4 -41
  117. package/dist/router.d.ts.map +1 -1
  118. package/dist/router.js +18 -149
  119. package/dist/routes.d.ts +150 -0
  120. package/dist/routes.d.ts.map +1 -0
  121. package/dist/routes.js +182 -0
  122. package/dist/store/collections.d.ts +4 -4
  123. package/dist/store/cookies.d.ts +4 -4
  124. package/dist/store/request-example.d.ts +4 -4
  125. package/dist/store/requests.d.ts +4 -4
  126. package/dist/store/router-params.js +1 -1
  127. package/dist/store/security-schemes.d.ts +4 -4
  128. package/dist/store/store.d.ts +56 -56
  129. package/dist/store/store.d.ts.map +1 -1
  130. package/dist/store/store.js +90 -90
  131. package/dist/store/tags.d.ts +4 -4
  132. package/dist/store/workspace.d.ts +4 -4
  133. package/dist/style.css +1 -1
  134. package/dist/views/Cookies/CookieRaw.vue.js +10 -10
  135. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  136. package/dist/views/Cookies/Cookies.vue2.js +52 -53
  137. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  138. package/dist/views/Environment/Environment.vue2.js +79 -80
  139. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  140. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +20 -15
  141. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
  142. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +146 -108
  143. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  144. package/dist/views/Request/RequestSection/RequestParams.vue.js +53 -52
  145. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  146. package/dist/views/Request/RequestSection/RequestSection.vue.js +1 -1
  147. package/dist/views/Request/RequestSection/RequestSection.vue2.js +102 -97
  148. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +2 -2
  149. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  150. package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
  151. package/dist/views/Request/RequestSection/RequestTable.vue2.js +44 -40
  152. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  153. package/dist/views/Request/RequestSidebar.vue.js +2 -2
  154. package/dist/views/Request/RequestSidebar.vue2.js +152 -134
  155. package/dist/views/Request/RequestSidebarItem.vue.d.ts +2 -2
  156. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  157. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  158. package/dist/views/Request/RequestSidebarItem.vue2.js +129 -115
  159. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +6 -6
  160. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
  161. package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
  162. package/dist/views/Request/RequestSubpageHeader.vue2.js +36 -34
  163. package/dist/views/Request/ResponseSection/ResponseBody.vue.d.ts.map +1 -1
  164. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +21 -21
  165. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts.map +1 -1
  166. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +13 -10
  167. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts.map +1 -1
  168. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +1 -1
  169. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +0 -2
  170. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.d.ts.map +1 -1
  171. package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +8 -8
  172. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  173. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +3 -3
  174. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +32 -33
  175. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts.map +1 -1
  176. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +61 -55
  177. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
  178. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +32 -25
  179. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  180. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +1 -1
  181. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +102 -70
  182. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
  183. package/dist/views/Request/components/WorkspaceDropdown.vue.js +60 -50
  184. package/dist/views/Request/types/sidebar-item.d.ts +2 -1
  185. package/dist/views/Request/types/sidebar-item.d.ts.map +1 -1
  186. package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
  187. package/dist/views/Servers/Servers.vue2.js +12 -7
  188. package/package.json +10 -8
  189. package/dist/components/SubpageHeader.vue.d.ts.map +0 -1
  190. package/dist/components/ViewLayout/ViewLayoutSection.vue2.js +0 -4
  191. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +0 -7
  192. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +0 -1
@@ -1,13 +1,13 @@
1
- import { defineComponent as ne, useCssVars as re, computed as c, ref as le, resolveComponent as se, openBlock as p, createElementBlock as k, normalizeClass as f, unref as n, createVNode as h, withCtx as g, createBlock as v, withModifiers as R, createElementVNode as a, toDisplayString as M, createCommentVNode as b, createTextVNode as j, renderSlot as ae, Fragment as oe, renderList as de } from "vue";
2
- import { PathId as ue } from "../../router.js";
3
- import { ScalarButton as T, ScalarIcon as x, ScalarTooltip as pe } from "@scalar/components";
4
- import { Draggable as fe } from "@scalar/draggable";
5
- import { RouterLink as me } from "vue-router";
1
+ import { defineComponent as ne, useCssVars as se, computed as c, ref as re, resolveComponent as le, openBlock as p, createElementBlock as k, normalizeClass as f, unref as n, createVNode as h, withCtx as g, createBlock as b, withModifiers as M, createElementVNode as a, toDisplayString as T, createCommentVNode as v, createTextVNode as P, renderSlot as ae, Fragment as oe, renderList as ue } from "vue";
2
+ import { ScalarButton as I, ScalarIcon as y, ScalarTooltip as de } from "@scalar/components";
3
+ import { Draggable as pe } from "@scalar/draggable";
4
+ import { RouterLink as fe } from "vue-router";
5
+ import { PathId as me } from "../../routes.js";
6
6
  import ce from "../../components/HttpMethod/HttpMethod.vue.js";
7
7
  import { useSidebar as ge } from "../../hooks/useSidebar.js";
8
- import { getModifiers as ve } from "../../libs/hot-keys.js";
9
- import { useWorkspace as be } from "../../store/store.js";
10
- const he = { class: "flex flex-row gap-1 items-center" }, xe = { class: "relative" }, ye = { class: "flex items-start" }, we = { class: "flex h-5 items-center justify-center max-w-[14px]" }, ke = { class: "flex flex-1 flex-row justify-between editable-sidebar-hover" }, Ue = { class: "relative flex h-fit" }, qe = { 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" }, De = { class: "flex items-center text-c-2" }, Ce = { class: "text-pretty break-all" }, Re = { key: 2 }, B = "hover:bg-sidebar-active-b indent-padding-left", je = /* @__PURE__ */ ne({
8
+ import { getModifiers as be } from "../../libs/hot-keys.js";
9
+ import { useWorkspace as ve } from "../../store/store.js";
10
+ const he = { class: "flex flex-row gap-1 items-center" }, ye = { class: "relative" }, xe = { class: "flex items-start" }, we = ["aria-expanded"], ke = { class: "flex h-5 items-center justify-center max-w-[14px]" }, Ue = { class: "flex flex-1 flex-row justify-between editable-sidebar-hover" }, qe = { class: "relative flex h-fit" }, De = { 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" }, Ce = { class: "flex items-center text-c-2" }, Re = { class: "text-pretty break-all" }, Me = { key: 2 }, j = "hover:bg-sidebar-active-b indent-padding-left", je = /* @__PURE__ */ ne({
11
11
  __name: "RequestSidebarItem",
12
12
  props: {
13
13
  isDraggable: { type: Boolean, default: !1 },
@@ -17,32 +17,32 @@ const he = { class: "flex flex-row gap-1 items-center" }, xe = { class: "relativ
17
17
  menuItem: {}
18
18
  },
19
19
  emits: ["onDragEnd", "newTab", "openMenu"],
20
- setup(P, { emit: V }) {
21
- re((e) => ({
22
- "2ec00a5e": K.value,
23
- "5f4d32c0": Q.value
20
+ setup(B, { emit: V }) {
21
+ se((e) => ({
22
+ "9b98f448": K.value,
23
+ "27ad5b3c": Q.value
24
24
  }));
25
- const r = P, W = V, {
25
+ const s = B, W = V, {
26
26
  activeCollection: A,
27
- activeRequest: $,
27
+ activeRequest: E,
28
28
  activeRouterParams: F,
29
- activeWorkspace: y,
29
+ activeWorkspace: x,
30
30
  collections: U,
31
31
  tags: Y,
32
32
  isReadOnly: m,
33
- requests: I,
33
+ requests: $,
34
34
  requestExamples: q,
35
35
  collectionMutators: D,
36
- tagMutators: E,
37
- requestMutators: S,
38
- requestExampleMutators: z,
36
+ tagMutators: S,
37
+ requestMutators: z,
38
+ requestExampleMutators: N,
39
39
  router: H,
40
40
  events: L
41
- } = be(), { collapsedSidebarFolders: N, toggleSidebarFolder: G } = ge(), i = c(() => {
42
- var s, u;
43
- const e = U[r.uid], t = Y[r.uid], l = I[r.uid], o = q[r.uid];
41
+ } = ve(), { collapsedSidebarFolders: C, toggleSidebarFolder: G } = ge(), i = c(() => {
42
+ var l, d;
43
+ const e = U[s.uid], t = Y[s.uid], r = $[s.uid], o = q[s.uid];
44
44
  return e ? {
45
- title: ((s = e.info) == null ? void 0 : s.title) ?? "Unknown title",
45
+ title: ((l = e.info) == null ? void 0 : l.title) ?? "Unknown title",
46
46
  entity: e,
47
47
  resourceTitle: "Collection",
48
48
  children: e.children,
@@ -50,65 +50,78 @@ const he = { class: "flex flex-row gap-1 items-center" }, xe = { class: "relativ
50
50
  documentUrl: e.documentUrl,
51
51
  watchMode: e.watchMode,
52
52
  warning: "This cannot be undone. You’re about to delete the collection and all folders and requests inside it.",
53
- edit: (d, w) => {
54
- D.edit(e.uid, "info.title", d), w && D.edit(e.uid, "x-scalar-icon", w);
53
+ edit: (u, w) => {
54
+ D.edit(e.uid, "info.title", u), w && D.edit(e.uid, "x-scalar-icon", w);
55
55
  },
56
- delete: () => D.delete(e, y.value)
56
+ delete: () => D.delete(e, x.value)
57
57
  } : t ? {
58
58
  title: t.name,
59
59
  entity: t,
60
60
  resourceTitle: "Tag",
61
61
  children: t.children,
62
62
  warning: "This cannot be undone. You’re about to delete the tag and all requests inside it",
63
- edit: (d) => E.edit(t.uid, "name", d),
64
- delete: () => E.delete(t, r.parentUids[0])
65
- } : l ? {
66
- title: l.summary ?? [l.method, l.path].join(" - "),
67
- link: `/workspace/${y.value.uid}/request/${l.uid}`,
68
- method: l.method,
69
- entity: l,
63
+ edit: (u) => S.edit(t.uid, "name", u),
64
+ delete: () => S.delete(t, s.parentUids[0])
65
+ } : r ? {
66
+ title: r.summary ?? [r.method, r.path].join(" - "),
67
+ link: {
68
+ name: "request",
69
+ params: {
70
+ workspace: x.value.uid,
71
+ request: r.uid
72
+ }
73
+ },
74
+ method: r.method,
75
+ entity: r,
70
76
  resourceTitle: "Request",
71
77
  warning: "This cannot be undone. You’re about to delete the request.",
72
- children: l.examples,
73
- edit: (d) => S.edit(l.uid, "summary", d),
74
- delete: () => S.delete(l, r.parentUids[0])
78
+ children: r.examples,
79
+ edit: (u) => z.edit(r.uid, "summary", u),
80
+ delete: () => z.delete(r, s.parentUids[0])
75
81
  } : {
76
82
  title: o.name,
77
- link: `/workspace/${y.value.uid}/request/${o.requestUid}/examples/${o.uid}`,
78
- method: (u = I[o.requestUid]) == null ? void 0 : u.method,
83
+ link: {
84
+ name: "request.examples",
85
+ params: {
86
+ workspace: x.value.uid,
87
+ request: o.requestUid,
88
+ examples: o.uid
89
+ }
90
+ },
91
+ method: (d = $[o.requestUid]) == null ? void 0 : d.method,
79
92
  entity: o,
80
93
  resourceTitle: "Example",
81
94
  warning: "This cannot be undone. You’re about to delete the example from the request.",
82
95
  children: [],
83
- edit: (d) => z.edit(o.uid, "name", d),
84
- delete: () => z.delete(o)
96
+ edit: (u) => N.edit(o.uid, "name", u),
97
+ delete: () => N.delete(o)
85
98
  };
86
99
  }), J = c(
87
100
  () => i.value.entity.type === "collection" && i.value.title === "Drafts"
88
- ), K = c(() => r.parentUids.length ? m.value ? `${(r.parentUids.length - 1) * 12}px` : `${r.parentUids.length * 12}px` : "12px"), Q = c(() => r.parentUids.length ? m.value ? `${(r.parentUids.length - 1) * 12}px` : `${r.parentUids.length * 12}px` : "0px"), X = c(
101
+ ), K = c(() => s.parentUids.length ? m.value ? `${(s.parentUids.length - 1) * 12}px` : `${s.parentUids.length * 12}px` : "12px"), Q = c(() => s.parentUids.length ? m.value ? `${(s.parentUids.length - 1) * 12}px` : `${s.parentUids.length * 12}px` : "0px"), X = c(
89
102
  () => {
90
103
  var e;
91
- return N[r.uid] || ((e = $.value) == null ? void 0 : e.uid) === r.uid && i.value.entity.examples.length > 1;
104
+ return C[s.uid] || ((e = E.value) == null ? void 0 : e.uid) === s.uid && i.value.entity.examples.length > 1;
92
105
  }
93
106
  ), Z = c(
94
107
  () => {
95
108
  var e;
96
- return F.value[ue.Request] === "default" && ((e = $.value) == null ? void 0 : e.uid) === r.uid;
109
+ return F.value[me.Request] === "default" && ((e = E.value) == null ? void 0 : e.uid) === s.uid;
97
110
  }
98
- ), C = le(null), O = c(() => {
111
+ ), R = re(null), O = c(() => {
99
112
  let e = 0.5, t = 0.5;
100
- if (!C.value) return { ceiling: e, floor: t };
101
- const { draggingItem: l } = C.value;
102
- return !U[l == null ? void 0 : l.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 };
103
- }), _ = (e, t) => !(y.value.isReadOnly || q[t.id] || U[e.id]), ee = (e, t) => {
104
- e && (ve(["default"]).some((s) => e[s]) ? W("newTab", t.title || "", t.entity.uid) : t.link && H.push(t.link));
113
+ if (!R.value) return { ceiling: e, floor: t };
114
+ const { draggingItem: r } = R.value;
115
+ return !U[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) => !(x.value.isReadOnly || q[t.id] || U[e.id]), ee = (e, t) => {
117
+ e && (be(["default"]).some((l) => e[l]) ? W("newTab", t.title || "", t.entity.uid) : t.link && H.push(t.link));
105
118
  };
106
119
  function te() {
107
120
  L.commandPalette.emit({
108
121
  commandName: "Create Request",
109
122
  metaData: {
110
- itemUid: r.uid,
111
- parentUid: r.parentUids[0]
123
+ itemUid: s.uid,
124
+ parentUid: s.parentUids[0]
112
125
  }
113
126
  });
114
127
  }
@@ -117,16 +130,16 @@ const he = { class: "flex flex-row gap-1 items-center" }, xe = { class: "relativ
117
130
  return e !== i.value.entity.uid ? "text-c-3" : t === "WATCHING" ? "text-c-1" : t === "ERROR" ? "text-red" : "text-c-3";
118
131
  });
119
132
  return (e, t) => {
120
- const l = se("RequestSidebarItem", !0);
121
- return p(), k("div", {
133
+ const r = le("RequestSidebarItem", !0);
134
+ return p(), k("li", {
122
135
  class: f(["relative flex flex-row", [
123
136
  n(m) && e.parentUids.length > 1 || !n(m) && 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" : ""
124
137
  ]])
125
138
  }, [
126
- h(n(fe), {
139
+ h(n(pe), {
127
140
  id: i.value.entity.uid,
128
141
  ref_key: "draggableRef",
129
- ref: C,
142
+ ref: R,
130
143
  ceiling: O.value.ceiling,
131
144
  class: "flex flex-1 flex-col gap-[.5px] text-sm",
132
145
  floor: O.value.floor,
@@ -138,41 +151,40 @@ const he = { class: "flex flex-row gap-1 items-center" }, xe = { class: "relativ
138
151
  default: g(() => {
139
152
  var o;
140
153
  return [
141
- i.value.link ? (p(), v(n(me), {
154
+ i.value.link ? (p(), b(n(fe), {
142
155
  key: 0,
143
- class: "no-underline",
156
+ class: "group no-underline",
144
157
  to: i.value.link,
145
- onClick: t[1] || (t[1] = R(
146
- (s) => ee(s, i.value),
158
+ onClick: t[1] || (t[1] = M(
159
+ (l) => ee(l, i.value),
147
160
  ["prevent"]
148
161
  ))
149
162
  }, {
150
- default: g(({ isExactActive: s }) => {
151
- var u, d;
163
+ default: g(({ isExactActive: l }) => {
164
+ var d, u;
152
165
  return [
153
166
  a("div", {
154
- class: f(["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 w-full", [
155
- B,
156
- s || Z.value ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
157
- ]]),
158
- tabindex: "0"
167
+ class: f(["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
+ j,
169
+ l || Z.value ? "bg-sidebar-active-b text-sidebar-active-c transition-none" : "text-sidebar-c-2"
170
+ ]])
159
171
  }, [
160
172
  a("span", {
161
173
  class: f(["line-clamp-3 font-medium w-full pl-2 word-break-break-word", {
162
174
  "editable-sidebar-hover-item": !n(m)
163
175
  }])
164
- }, M(i.value.title), 3),
176
+ }, T(i.value.title), 3),
165
177
  a("div", he, [
166
- a("div", xe, [
167
- n(m) ? b("", !0) : (p(), v(n(T), {
178
+ a("div", ye, [
179
+ n(m) ? v("", !0) : (p(), b(n(I), {
168
180
  key: 0,
169
- class: f(["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", {
170
- flex: ((d = (u = e.menuItem) == null ? void 0 : u.item) == null ? void 0 : d.entity.uid) === i.value.entity.uid && e.menuItem.open
181
+ class: f(["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: ((u = (d = e.menuItem) == null ? void 0 : d.item) == null ? void 0 : u.entity.uid) === i.value.entity.uid && e.menuItem.open
171
183
  }]),
172
184
  size: "sm",
173
185
  type: "button",
174
186
  variant: "ghost",
175
- onClick: t[0] || (t[0] = R(
187
+ onClick: t[0] || (t[0] = M(
176
188
  (w) => e.$emit("openMenu", {
177
189
  item: i.value,
178
190
  parentUids: e.parentUids,
@@ -183,7 +195,7 @@ const he = { class: "flex flex-row gap-1 items-center" }, xe = { class: "relativ
183
195
  ))
184
196
  }, {
185
197
  default: g(() => [
186
- h(n(x), {
198
+ h(n(y), {
187
199
  icon: "Ellipses",
188
200
  size: "sm"
189
201
  })
@@ -191,13 +203,14 @@ const he = { class: "flex flex-row gap-1 items-center" }, xe = { class: "relativ
191
203
  _: 1
192
204
  }, 8, ["class"]))
193
205
  ]),
194
- a("span", ye, [
195
- t[9] || (t[9] = j("   ")),
196
- i.value.method ? (p(), v(n(ce), {
206
+ a("span", xe, [
207
+ t[9] || (t[9] = P("   ")),
208
+ t[10] || (t[10] = a("span", { class: "sr-only" }, "HTTP Method:", -1)),
209
+ i.value.method ? (p(), b(n(ce), {
197
210
  key: 0,
198
211
  class: "font-bold",
199
212
  method: i.value.method
200
- }, null, 8, ["method"])) : b("", !0)
213
+ }, null, 8, ["method"])) : v("", !0)
201
214
  ])
202
215
  ])
203
216
  ], 2)
@@ -206,18 +219,19 @@ const he = { class: "flex flex-row gap-1 items-center" }, xe = { class: "relativ
206
219
  _: 1
207
220
  }, 8, ["to"])) : !n(m) || e.parentUids.length ? (p(), k("button", {
208
221
  key: 1,
209
- class: f(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5", B]),
222
+ "aria-expanded": n(C)[i.value.entity.uid],
223
+ class: f(["hover:bg-b-2 group relative flex w-full flex-row justify-start gap-1.5 rounded p-1.5 focus-visible:z-10", j]),
210
224
  type: "button",
211
- onClick: t[3] || (t[3] = (s) => n(G)(i.value.entity.uid))
225
+ onClick: t[3] || (t[3] = (l) => n(G)(i.value.entity.uid))
212
226
  }, [
213
- a("span", we, [
227
+ a("span", ke, [
214
228
  ae(e.$slots, "leftIcon", {}, () => [
215
229
  a("div", {
216
230
  class: f({
217
- "rotate-90": n(N)[i.value.entity.uid]
231
+ "rotate-90": n(C)[i.value.entity.uid]
218
232
  })
219
233
  }, [
220
- h(n(x), {
234
+ h(n(y), {
221
235
  class: "text-c-3 text-sm",
222
236
  icon: "ChevronRight",
223
237
  size: "sm",
@@ -225,48 +239,48 @@ const he = { class: "flex flex-row gap-1 items-center" }, xe = { class: "relativ
225
239
  })
226
240
  ], 2)
227
241
  ], !0),
228
- t[10] || (t[10] = j("   "))
242
+ t[11] || (t[11] = P("   "))
229
243
  ]),
230
- a("div", ke, [
244
+ a("div", Ue, [
231
245
  a("span", {
232
246
  class: f(["line-clamp-3 font-medium text-left w-full word-break-break-word", {
233
247
  "editable-sidebar-hover-item": !n(m)
234
248
  }])
235
- }, M(i.value.title), 3),
236
- a("div", Ue, [
237
- !n(m) && !J.value ? (p(), v(n(T), {
249
+ }, T(i.value.title), 3),
250
+ a("div", qe, [
251
+ !n(m) && !J.value ? (p(), b(n(I), {
238
252
  key: 0,
239
- class: f(["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", {
253
+ class: f(["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", {
240
254
  flex: ((o = e.menuItem.item) == null ? void 0 : o.entity.uid) === i.value.entity.uid && e.menuItem.open,
241
255
  "right-5": i.value.watchMode
242
256
  }]),
243
257
  size: "sm",
244
258
  variant: "ghost",
245
- onClick: t[2] || (t[2] = R(
246
- (s) => e.$emit("openMenu", {
259
+ onClick: t[2] || (t[2] = M(
260
+ (l) => e.$emit("openMenu", {
247
261
  item: i.value,
248
262
  parentUids: e.parentUids,
249
- targetRef: s.currentTarget.parentNode,
263
+ targetRef: l.currentTarget.parentNode,
250
264
  open: !0
251
265
  }),
252
266
  ["stop", "prevent"]
253
267
  ))
254
268
  }, {
255
269
  default: g(() => [
256
- h(n(x), {
270
+ h(n(y), {
257
271
  icon: "Ellipses",
258
272
  size: "sm"
259
273
  })
260
274
  ]),
261
275
  _: 1
262
- }, 8, ["class"])) : b("", !0),
263
- i.value.watchMode ? (p(), v(n(pe), {
276
+ }, 8, ["class"])) : v("", !0),
277
+ i.value.watchMode ? (p(), b(n(de), {
264
278
  key: 1,
265
279
  side: "right",
266
280
  sideOffset: 12
267
281
  }, {
268
282
  trigger: g(() => [
269
- h(n(x), {
283
+ h(n(y), {
270
284
  class: f(["text-sm", ie.value]),
271
285
  icon: "Watch",
272
286
  size: "sm",
@@ -274,47 +288,47 @@ const he = { class: "flex flex-row gap-1 items-center" }, xe = { class: "relativ
274
288
  }, null, 8, ["class"])
275
289
  ]),
276
290
  content: g(() => [
277
- a("div", qe, [
278
- a("div", De, [
279
- a("p", Ce, " Watching: " + M(i.value.documentUrl), 1)
291
+ a("div", De, [
292
+ a("div", Ce, [
293
+ a("p", Re, " Watching: " + T(i.value.documentUrl), 1)
280
294
  ])
281
295
  ])
282
296
  ]),
283
297
  _: 1
284
- })) : b("", !0),
285
- t[11] || (t[11] = a("span", null, " ", -1))
298
+ })) : v("", !0),
299
+ t[12] || (t[12] = a("span", null, " ", -1))
286
300
  ])
287
301
  ])
288
- ])) : b("", !0),
289
- X.value ? (p(), k("div", Re, [
290
- (p(!0), k(oe, null, de(i.value.children, (s) => (p(), v(l, {
291
- key: s,
292
- isDraggable: !n(q)[s],
302
+ ], 8, we)) : v("", !0),
303
+ X.value ? (p(), k("ul", Me, [
304
+ (p(!0), k(oe, null, ue(i.value.children, (l) => (p(), b(r, {
305
+ key: l,
306
+ isDraggable: !n(q)[l],
293
307
  isDroppable: _,
294
308
  menuItem: e.menuItem,
295
309
  parentUids: [...e.parentUids, e.uid],
296
- uid: s,
297
- onNewTab: t[4] || (t[4] = (u, d) => e.$emit("newTab", u, d)),
298
- onOnDragEnd: t[5] || (t[5] = (...u) => e.$emit("onDragEnd", ...u)),
299
- onOpenMenu: t[6] || (t[6] = (u) => e.$emit("openMenu", u))
310
+ uid: l,
311
+ onNewTab: t[4] || (t[4] = (d, u) => e.$emit("newTab", d, u)),
312
+ onOnDragEnd: t[5] || (t[5] = (...d) => e.$emit("onDragEnd", ...d)),
313
+ onOpenMenu: t[6] || (t[6] = (d) => e.$emit("openMenu", d))
300
314
  }, null, 8, ["isDraggable", "menuItem", "parentUids", "uid"]))), 128)),
301
- i.value.children.length === 0 ? (p(), v(n(T), {
315
+ i.value.children.length === 0 ? (p(), b(n(I), {
302
316
  key: 0,
303
317
  class: f(["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" : ""]),
304
318
  variant: "ghost",
305
- onClick: t[7] || (t[7] = (s) => te())
319
+ onClick: t[7] || (t[7] = (l) => te())
306
320
  }, {
307
321
  default: g(() => [
308
- h(n(x), {
322
+ h(n(y), {
309
323
  class: "ml-0.5 h-2.5 w-2.5",
310
324
  icon: "Add",
311
325
  thickness: "3"
312
326
  }),
313
- t[12] || (t[12] = a("span", null, "Add Request", -1))
327
+ t[13] || (t[13] = a("span", null, "Add Request", -1))
314
328
  ]),
315
329
  _: 1
316
- }, 8, ["class"])) : b("", !0)
317
- ])) : b("", !0)
330
+ }, 8, ["class"])) : v("", !0)
331
+ ])) : v("", !0)
318
332
  ];
319
333
  }),
320
334
  _: 3
@@ -2,9 +2,9 @@ import { defineComponent as L, ref as P, watch as K, onMounted as F, onBeforeUnm
2
2
  import J from "../../components/Sidebar/Actions/DeleteSidebarListElement.vue.js";
3
3
  import O from "../../components/Sidebar/Actions/EditSidebarListCollection.vue.js";
4
4
  import Q from "../../components/Sidebar/Actions/EditSidebarListElement.vue.js";
5
- import { PathId as b } from "../../router.js";
6
- import { useModal as z, ScalarDropdown as X, ScalarDropdownItem as g, ScalarIcon as v, ScalarModal as S } from "@scalar/components";
5
+ import { useModal as b, ScalarDropdown as X, ScalarDropdownItem as g, ScalarIcon as v, ScalarModal as z } from "@scalar/components";
7
6
  import { useRouter as Y } from "vue-router";
7
+ import { PathId as S } from "../../routes.js";
8
8
  import { useWorkspace as Z } from "../../store/store.js";
9
9
  const ae = /* @__PURE__ */ L({
10
10
  __name: "RequestSidebarItemMenu",
@@ -13,7 +13,7 @@ const ae = /* @__PURE__ */ L({
13
13
  },
14
14
  emits: ["closeMenu", "toggleWatchMode"],
15
15
  setup(q, { emit: x }) {
16
- const a = q, $ = x, { replace: E } = Y(), { activeWorkspace: h, activeRouterParams: C, events: B } = Z(), d = z(), I = z(), T = () => {
16
+ const a = q, $ = x, { replace: E } = Y(), { activeWorkspace: h, activeRouterParams: C, events: B } = Z(), d = b(), I = b(), T = () => {
17
17
  var e;
18
18
  return B.commandPalette.emit({
19
19
  commandName: "Add Example",
@@ -26,7 +26,7 @@ const ae = /* @__PURE__ */ L({
26
26
  (m = a.menuItem.item) == null || m.edit(e, t), d.hide();
27
27
  }, U = () => {
28
28
  var e, t, m;
29
- (e = a.menuItem.item) == null || e.delete(), C.value[b.Request] === ((t = a.menuItem.item) == null ? void 0 : t.entity.uid) && E(`/workspace/${h.value.uid}/request/default`), C.value[b.Examples] === ((m = a.menuItem.item) == null ? void 0 : m.entity.uid) && E(`/workspace/${h.value}/request/default`), I.hide();
29
+ (e = a.menuItem.item) == null || e.delete(), C.value[S.Request] === ((t = a.menuItem.item) == null ? void 0 : t.entity.uid) && E(`/workspace/${h.value.uid}/request/default`), C.value[S.Examples] === ((m = a.menuItem.item) == null ? void 0 : m.entity.uid) && E(`/workspace/${h.value}/request/default`), I.hide();
30
30
  }, f = P(null);
31
31
  K([() => a.menuItem.open, f], async ([e]) => {
32
32
  var t, m;
@@ -132,7 +132,7 @@ const ae = /* @__PURE__ */ L({
132
132
  }),
133
133
  _: 1
134
134
  }, 8, ["targetRef"])) : M("", !0),
135
- o(n(S), {
135
+ o(n(z), {
136
136
  size: "xxs",
137
137
  state: n(I),
138
138
  title: `Delete ${(m = e.menuItem.item) == null ? void 0 : m.resourceTitle}`
@@ -150,7 +150,7 @@ const ae = /* @__PURE__ */ L({
150
150
  }),
151
151
  _: 1
152
152
  }, 8, ["state", "title"]),
153
- o(n(S), {
153
+ o(n(z), {
154
154
  size: "xxs",
155
155
  state: n(d),
156
156
  title: `Edit ${(W = e.menuItem.item) == null ? void 0 : W.resourceTitle}`
@@ -1 +1 @@
1
- {"version":3,"file":"RequestSubpageHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSubpageHeader.vue"],"names":[],"mappings":"AAqGA,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,OAAO,CAAA;IACnB,UAAU,EAAE,OAAO,CAAA;CACpB,CAAC;;;;;;;;;;AAwOF,wBAQG"}
1
+ {"version":3,"file":"RequestSubpageHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/views/Request/RequestSubpageHeader.vue"],"names":[],"mappings":"AAuGA,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,OAAO,CAAA;IACnB,UAAU,EAAE,OAAO,CAAA;CACpB,CAAC;;;;;;;;;;AA4OF,wBAQG"}
@@ -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-98729408"]]);
4
+ const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-d570aee1"]]);
5
5
  export {
6
6
  p as default
7
7
  };
@@ -1,77 +1,79 @@
1
- import { defineComponent as b, openBlock as l, createElementBlock as s, createElementVNode as d, createVNode as i, createBlock as a, unref as t, createCommentVNode as n } from "vue";
1
+ import { defineComponent as b, openBlock as l, createElementBlock as d, createElementVNode as n, createVNode as s, createBlock as a, unref as t, createCommentVNode as i } from "vue";
2
2
  import c from "../../components/AddressBar/AddressBar.vue.js";
3
- import k from "../../components/EnvironmentSelector/EnvironmentSelector.vue.js";
4
- import y from "../../components/Sidebar/SidebarToggle.vue.js";
3
+ import y from "../../components/EnvironmentSelector/EnvironmentSelector.vue.js";
4
+ import k from "../../components/Sidebar/SidebarToggle.vue.js";
5
5
  import { ScalarIcon as g } from "@scalar/components";
6
- import h from "./components/WorkspaceDropdown.vue.js";
7
- import C from "../../components/OpenApiClientButton.vue.js";
8
- import { useWorkspace as v } from "../../store/store.js";
9
- const w = { 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" }, V = { 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" }, x = { 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" }, z = /* @__PURE__ */ b({
6
+ import C from "./components/WorkspaceDropdown.vue.js";
7
+ import v from "../../components/OpenApiClientButton.vue.js";
8
+ import { useWorkspace as w } from "../../store/store.js";
9
+ const V = { 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" }, x = { 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" }, $ = { 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" }, A = /* @__PURE__ */ b({
10
10
  __name: "RequestSubpageHeader",
11
11
  props: {
12
12
  modelValue: { type: Boolean },
13
13
  isReadonly: { type: Boolean }
14
14
  },
15
15
  emits: ["update:modelValue", "hideModal", "importCurl"],
16
- setup($) {
17
- const { activeCollection: m } = v();
18
- return (e, o) => {
16
+ setup(h) {
17
+ const { activeCollection: m } = w();
18
+ return (o, e) => {
19
19
  var p, u, f;
20
- return l(), s("div", w, [
21
- d("div", V, [
22
- i(y, {
20
+ return l(), d("div", V, [
21
+ n("div", x, [
22
+ s(k, {
23
23
  class: "gitbook-hidden",
24
- modelValue: e.modelValue,
25
- "onUpdate:modelValue": o[0] || (o[0] = (r) => e.$emit("update:modelValue", r))
24
+ modelValue: o.modelValue,
25
+ "onUpdate:modelValue": e[0] || (e[0] = (r) => o.$emit("update:modelValue", r))
26
26
  }, null, 8, ["modelValue"]),
27
- e.isReadonly ? n("", !0) : (l(), a(t(h), { key: 0 })),
28
- o[4] || (o[4] = d("a", {
27
+ o.isReadonly ? i("", !0) : (l(), a(t(C), { key: 0 })),
28
+ e[4] || (e[4] = n("a", {
29
29
  class: "text-c-2 text-sm font-medium gitbook-show ml-.5 hover:text-c-1 border p-1 rounded hover:bg-b-3",
30
30
  href: "https://scalar.com/",
31
31
  target: "_blank"
32
32
  }, " Powered by Scalar.com ", -1))
33
33
  ]),
34
- i(c, {
35
- onImportCurl: o[1] || (o[1] = (r) => e.$emit("importCurl", r))
34
+ s(c, {
35
+ onImportCurl: e[1] || (e[1] = (r) => o.$emit("importCurl", r))
36
36
  }),
37
- d("div", x, [
38
- e.isReadonly ? n("", !0) : (l(), a(k, { key: 0 })),
39
- e.isReadonly && ((p = t(m)) != null && p.documentUrl) ? (l(), a(t(C), {
37
+ n("div", $, [
38
+ o.isReadonly ? i("", !0) : (l(), a(y, { key: 0 })),
39
+ o.isReadonly && ((p = t(m)) != null && p.documentUrl) ? (l(), a(t(v), {
40
40
  key: 1,
41
41
  buttonSource: "modal",
42
42
  class: "gitbook-hidden !w-fit lg:-mr-1",
43
43
  integration: (u = t(m)) == null ? void 0 : u.integration,
44
44
  url: (f = t(m)) == null ? void 0 : f.documentUrl
45
- }, null, 8, ["integration", "url"])) : n("", !0),
46
- e.isReadonly ? (l(), s("button", {
45
+ }, null, 8, ["integration", "url"])) : i("", !0),
46
+ o.isReadonly ? (l(), d("button", {
47
47
  key: 2,
48
48
  class: "app-exit-button p-2 rounded-full fixed right-2 top-2 gitbook-hidden",
49
49
  type: "button",
50
- onClick: o[2] || (o[2] = (r) => e.$emit("hideModal"))
50
+ onClick: e[2] || (e[2] = (r) => o.$emit("hideModal"))
51
51
  }, [
52
- i(t(g), {
52
+ s(t(g), {
53
53
  icon: "Close",
54
54
  size: "lg",
55
55
  thickness: "2"
56
- })
57
- ])) : n("", !0),
58
- e.isReadonly ? (l(), s("button", {
56
+ }),
57
+ e[5] || (e[5] = n("span", { class: "sr-only" }, "Close Client", -1))
58
+ ])) : i("", !0),
59
+ o.isReadonly ? (l(), d("button", {
59
60
  key: 3,
60
61
  class: "text-c-1 hover:bg-b-2 active:text-c-1 p-2 rounded -mr-1.5 gitbook-show",
61
62
  type: "button",
62
- onClick: o[3] || (o[3] = (r) => e.$emit("hideModal"))
63
+ onClick: e[3] || (e[3] = (r) => o.$emit("hideModal"))
63
64
  }, [
64
- i(t(g), {
65
+ s(t(g), {
65
66
  icon: "Close",
66
67
  size: "md",
67
68
  thickness: "1.75"
68
- })
69
- ])) : n("", !0)
69
+ }),
70
+ e[6] || (e[6] = n("span", { class: "sr-only" }, "Close Client", -1))
71
+ ])) : i("", !0)
70
72
  ])
71
73
  ]);
72
74
  };
73
75
  }
74
76
  });
75
77
  export {
76
- z as default
78
+ A as default
77
79
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseBody.vue"],"names":[],"mappings":"AAwHA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,EAAE,CAAA;CAC9D,CAAC;;AA+LF,wBAOG"}
1
+ {"version":3,"file":"ResponseBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseBody.vue"],"names":[],"mappings":"AAwHA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,EAAE,CAAA;CAC9D,CAAC;;AAmMF,wBAOG"}