@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,12 +1,13 @@
1
- import w from "fuse.js";
2
- import { ref as a, watch as T, computed as W, nextTick as x } from "vue";
3
- import { useRouter as I } from "vue-router";
4
- import { useWorkspace as A } from "../../store/store.js";
5
- function H() {
6
- const m = I(), { activeWorkspace: f, activeWorkspaceRequests: d, requests: R } = A(), o = a([]), c = a([]), s = a(0), u = a(""), l = a(null), n = a([]), i = new w(o.value, {
1
+ import { useActiveEntities as w } from "../../store/active-entities.js";
2
+ import T from "fuse.js";
3
+ import { ref as a, watch as W, computed as x, nextTick as A } from "vue";
4
+ import { useRouter as E } from "vue-router";
5
+ import { useWorkspace as I } from "../../store/store.js";
6
+ function M() {
7
+ const m = E(), { activeWorkspace: f, activeWorkspaceRequests: d } = w(), { requests: R } = I(), o = a([]), u = a([]), s = a(0), c = a(""), l = a(null), n = a([]), i = new T(o.value, {
7
8
  keys: ["title", "description", "body"]
8
9
  }), k = () => {
9
- u.value = "", s.value = 0, c.value = [], l.value instanceof HTMLInputElement && l.value.blur();
10
+ c.value = "", s.value = 0, u.value = [], l.value instanceof HTMLInputElement && l.value.blur();
10
11
  }, S = (t) => {
11
12
  o.value = t.map((e) => ({
12
13
  id: e.uid,
@@ -17,10 +18,10 @@ function H() {
17
18
  link: `/workspace/${f.value.uid}/request/${e.uid}`
18
19
  })), i.setCollection(o.value);
19
20
  }, b = () => {
20
- s.value = 0, c.value = i.search(u.value);
21
+ s.value = 0, u.value = i.search(c.value);
21
22
  }, y = (t) => {
22
- const e = t === "up" ? -1 : 1, v = r.value.length;
23
- s.value = (s.value + e + v) % v, x(() => {
23
+ const e = t === "up" ? -1 : 1, h = r.value.length;
24
+ s.value = (s.value + e + h) % h, A(() => {
24
25
  const p = n.value[s.value];
25
26
  p instanceof HTMLElement && p.scrollIntoView({
26
27
  behavior: "smooth",
@@ -28,29 +29,29 @@ function H() {
28
29
  });
29
30
  });
30
31
  }, g = () => {
31
- s.value >= 0 && h(
32
+ s.value >= 0 && v(
32
33
  r.value[s.value]
33
34
  );
34
35
  };
35
- T(
36
+ W(
36
37
  d,
37
38
  (t) => {
38
39
  S(t.map((e) => R[e]));
39
40
  },
40
41
  { immediate: !0 }
41
42
  );
42
- const h = (t) => {
43
+ const v = (t) => {
43
44
  m.push(t.item.id), k();
44
- }, r = W(
45
- () => u.value.length === 0 ? o.value.map((t) => ({
45
+ }, r = x(
46
+ () => c.value.length === 0 ? o.value.map((t) => ({
46
47
  item: t
47
- })) : c.value
48
+ })) : u.value
48
49
  );
49
50
  return {
50
- searchText: u,
51
+ searchText: c,
51
52
  searchResultsWithPlaceholderResults: r,
52
53
  selectedSearchResult: s,
53
- onSearchResultClick: h,
54
+ onSearchResultClick: v,
54
55
  fuseSearch: b,
55
56
  searchInputRef: l,
56
57
  searchResultRefs: n,
@@ -59,5 +60,5 @@ function H() {
59
60
  };
60
61
  }
61
62
  export {
62
- H as useSearch
63
+ M as useSearch
63
64
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as h, openBlock as o, createElementBlock as r, normalizeClass as p, unref as e, createVNode as t, withCtx as n, createElementVNode as i, Fragment as y, renderList as v, createTextVNode as d, toDisplayString as w, createCommentVNode as b } from "vue";
1
+ import { defineComponent as h, openBlock as o, createElementBlock as r, normalizeClass as p, unref as e, createVNode as t, withCtx as n, createElementVNode as i, Fragment as v, renderList as w, createTextVNode as d, toDisplayString as y, createCommentVNode as b } from "vue";
2
2
  import { ROUTES as k } from "../../constants.js";
3
3
  import { ScalarIcon as N } from "@scalar/components";
4
4
  import { useRouter as S } from "vue-router";
@@ -16,7 +16,7 @@ const B = { class: "flex items-center" }, E = { class: "flex items-center" }, L
16
16
  const { currentRoute: m } = S(), { layout: s } = j();
17
17
  return ($, l) => (o(), r("nav", {
18
18
  "aria-label": "App Navigation",
19
- class: p(["flex items-center justify-center sm:justify-between gap-1.5 app-drag-region", e(s) === "web" ? "border h-12" : "sm:flex-col px-2 py-2"]),
19
+ class: p(["flex items-center justify-center sm:justify-between gap-1.5 app-drag-region", e(s) === "web" ? "border h-12" : "sm:flex-col px-2 pb-2"]),
20
20
  role: "navigation"
21
21
  }, [
22
22
  t(u, { class: "app-no-drag-region" }, {
@@ -33,7 +33,7 @@ const B = { class: "flex items-center" }, E = { class: "flex items-center" }, L
33
33
  size: "xl"
34
34
  })
35
35
  ], 2),
36
- (o(!0), r(y, null, v(e(k).filter(
36
+ (o(!0), r(v, null, w(e(k).filter(
37
37
  (a) => a.name !== "settings"
38
38
  ), ({ icon: a, name: c, prettyName: g }, x) => {
39
39
  var f;
@@ -44,7 +44,7 @@ const B = { class: "flex items-center" }, E = { class: "flex items-center" }, L
44
44
  name: c
45
45
  }, {
46
46
  default: n(() => [
47
- d(w(g), 1)
47
+ d(y(g), 1)
48
48
  ]),
49
49
  _: 2
50
50
  }, 1032, ["active", "icon", "name"])
@@ -1,8 +1,8 @@
1
- import { defineComponent as r, openBlock as i, createBlock as n, unref as o, withCtx as a, renderSlot as c } from "vue";
2
- import p from "./SideNavLink.vue.js";
3
- import { RouterLink as s } from "vue-router";
4
- import { useWorkspace as m } from "../../store/store.js";
5
- const v = /* @__PURE__ */ r({
1
+ import { defineComponent as i, openBlock as n, createBlock as r, unref as o, withCtx as a, renderSlot as c } from "vue";
2
+ import s from "./SideNavLink.vue.js";
3
+ import { useActiveEntities as p } from "../../store/active-entities.js";
4
+ import { RouterLink as m } from "vue-router";
5
+ const k = /* @__PURE__ */ i({
6
6
  __name: "SideNavRouterLink",
7
7
  props: {
8
8
  icon: {},
@@ -10,9 +10,9 @@ const v = /* @__PURE__ */ r({
10
10
  active: { type: Boolean }
11
11
  },
12
12
  setup(f) {
13
- const { activeWorkspace: t } = m();
14
- return (e, u) => (i(), n(p, {
15
- is: o(s),
13
+ const { activeWorkspace: t } = p();
14
+ return (e, u) => (n(), r(s, {
15
+ is: o(m),
16
16
  active: e.active,
17
17
  icon: e.icon,
18
18
  to: `/workspace/${o(t).uid}/${e.name}`
@@ -25,5 +25,5 @@ const v = /* @__PURE__ */ r({
25
25
  }
26
26
  });
27
27
  export {
28
- v as default
28
+ k as default
29
29
  };
@@ -1 +1 @@
1
- {"version":3,"file":"TopNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNav.vue"],"names":[],"mappings":"AA8QA,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;CACjD,CAAC;;AAiaF,wBAOG"}
1
+ {"version":3,"file":"TopNav.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNav.vue"],"names":[],"mappings":"AAsPA,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;CACjD,CAAC;;AAgaF,wBAOG"}
@@ -1,7 +1,167 @@
1
- import o from "./TopNav.vue2.js";
2
- /* empty css */
3
- import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b07590ec"]]);
1
+ import { defineComponent as $, reactive as z, ref as E, computed as M, watch as w, onMounted as j, onBeforeUnmount as B, openBlock as m, createElementBlock as b, createElementVNode as f, createVNode as n, unref as l, withCtx as u, toDisplayString as O, createTextVNode as x, Fragment as V, renderList as D, createBlock as K } from "vue";
2
+ import q from "../ScalarHotkey.vue.js";
3
+ import { ROUTES as F } from "../../constants.js";
4
+ import { useActiveEntities as H } from "../../store/active-entities.js";
5
+ import { ScalarContextMenu as W, ScalarIcon as d, ScalarDropdown as G, ScalarDropdownItem as I } from "@scalar/components";
6
+ import { capitalize as J } from "@scalar/oas-utils/helpers";
7
+ import { useClipboard as P } from "@scalar/use-hooks/useClipboard";
8
+ import Q from "./TopNavItem.vue.js";
9
+ import { useWorkspace as X } from "../../store/store.js";
10
+ const Y = { class: "flex relative h-10 pl-2 mac:pl-[72px] t-app__top-nav" }, Z = { class: "flex h-10 flex-1 items-center gap-1.5 text-sm font-medium pr-2.5 relative overflow-hidden" }, ee = {
11
+ key: 0,
12
+ class: "h-full w-full overflow-hidden"
13
+ }, ue = /* @__PURE__ */ $({
14
+ __name: "TopNav",
15
+ props: {
16
+ openNewTab: {}
17
+ },
18
+ setup(_) {
19
+ const L = _, { activeRequest: S, router: i } = H(), { events: g } = X(), { copyToClipboard: U } = P(), t = z([{ label: "", path: "", icon: "Add" }]), a = E(0), T = M(() => a.value);
20
+ function k() {
21
+ var o;
22
+ const e = F.find((c) => i.currentRoute.value.name == c.name);
23
+ e && ((e == null ? void 0 : e.name) === "request" ? t[a.value] = {
24
+ label: ((o = S.value) == null ? void 0 : o.summary) || "",
25
+ path: i.currentRoute.value.path,
26
+ icon: e.icon
27
+ } : t[a.value] = {
28
+ label: J(e == null ? void 0 : e.name) || "",
29
+ path: i.currentRoute.value.path,
30
+ icon: e.icon
31
+ });
32
+ }
33
+ function v() {
34
+ i.push(t[a.value].path);
35
+ }
36
+ function p() {
37
+ t.push({ label: "", path: "", icon: "Add" }), a.value = t.length - 1, k();
38
+ }
39
+ function r(e) {
40
+ a.value = e, v();
41
+ }
42
+ w(
43
+ () => i.currentRoute.value.path,
44
+ () => {
45
+ k();
46
+ },
47
+ { immediate: !0 }
48
+ );
49
+ function N(e) {
50
+ t.splice(e, 1), a.value = Math.min(
51
+ a.value,
52
+ t.length - 1
53
+ ), v();
54
+ }
55
+ const y = (e) => {
56
+ const o = new URL(window.location.href);
57
+ o.pathname = t[e].path, U(o.toString());
58
+ }, R = (e) => {
59
+ t.splice(0, e), t.splice(1), a.value = 0, v();
60
+ }, C = (e) => {
61
+ if (e) {
62
+ if (e.addTopNav && p(), e.closeTopNav && N(a.value), e.navigateTopNavLeft && r(Math.max(a.value - 1, 0)), e.navigateTopNavRight && r(Math.min(a.value + 1, t.length - 1)), e.jumpToTab) {
63
+ const o = Number(e.jumpToTab.key) - 1;
64
+ o >= 0 && o < t.length && r(o);
65
+ }
66
+ e.jumpToLastTab && r(t.length - 1);
67
+ }
68
+ }, A = (e) => {
69
+ t.push({
70
+ label: e.name,
71
+ path: e.uid,
72
+ icon: "ExternalLink"
73
+ });
74
+ };
75
+ return w(
76
+ () => L.openNewTab,
77
+ (e) => {
78
+ e && A(e);
79
+ },
80
+ { immediate: !0 }
81
+ ), j(() => g.hotKeys.on(C)), B(() => g.hotKeys.off(C)), (e, o) => (m(), b("nav", Y, [
82
+ o[3] || (o[3] = f("div", { class: "absolute inset-0 app-drag-region" }, null, -1)),
83
+ f("div", Z, [
84
+ t.length === 1 ? (m(), b("div", ee, [
85
+ n(l(W), { triggerClass: "flex custom-scroll gap-1.5 h-full items-center justify-center w-full whitespace-nowrap" }, {
86
+ trigger: u(() => [
87
+ n(l(d), {
88
+ icon: t[0].icon,
89
+ size: "xs",
90
+ thickness: "2.5"
91
+ }, null, 8, ["icon"]),
92
+ f("span", null, O(t[0].label), 1)
93
+ ]),
94
+ content: u(() => [
95
+ n(l(G), {
96
+ class: "scalar-client",
97
+ static: ""
98
+ }, {
99
+ items: u(() => [
100
+ n(l(I), {
101
+ class: "flex items-center gap-1.5",
102
+ onClick: p
103
+ }, {
104
+ default: u(() => [
105
+ n(l(d), {
106
+ icon: "AddTab",
107
+ size: "sm",
108
+ thickness: "1.5"
109
+ }),
110
+ o[1] || (o[1] = x(" New Tab ")),
111
+ n(q, {
112
+ class: "bg-b-2 ml-auto",
113
+ hotkey: "T"
114
+ })
115
+ ]),
116
+ _: 1
117
+ }),
118
+ n(l(I), {
119
+ class: "flex items-center gap-1.5",
120
+ onClick: o[0] || (o[0] = (c) => y(T.value))
121
+ }, {
122
+ default: u(() => [
123
+ n(l(d), {
124
+ icon: "Link",
125
+ size: "sm",
126
+ thickness: "1.5"
127
+ }),
128
+ o[2] || (o[2] = x(" Copy URL "))
129
+ ]),
130
+ _: 1
131
+ })
132
+ ]),
133
+ _: 1
134
+ })
135
+ ]),
136
+ _: 1
137
+ })
138
+ ])) : (m(!0), b(V, { key: 1 }, D(t, (c, s) => (m(), K(Q, {
139
+ key: s,
140
+ active: s === T.value,
141
+ hotkey: (s + 1).toString(),
142
+ icon: c.icon,
143
+ label: c.label,
144
+ onClick: (h) => r(s),
145
+ onClose: (h) => N(s),
146
+ onCloseOtherTabs: (h) => R(s),
147
+ onCopyUrl: (h) => y(s),
148
+ onNewTab: p
149
+ }, null, 8, ["active", "hotkey", "icon", "label", "onClick", "onClose", "onCloseOtherTabs", "onCopyUrl"]))), 128)),
150
+ f("button", {
151
+ class: "text-c-3 hover:bg-b-3 p-1.5 rounded app-no-drag-region",
152
+ type: "button",
153
+ onClick: p
154
+ }, [
155
+ n(l(d), {
156
+ icon: "Add",
157
+ size: "xs",
158
+ thickness: "2.5"
159
+ })
160
+ ])
161
+ ])
162
+ ]));
163
+ }
164
+ });
5
165
  export {
6
- m as default
166
+ ue as default
7
167
  };
@@ -1,166 +1,4 @@
1
- import { defineComponent as z, reactive as A, ref as M, computed as j, watch as w, onMounted as B, onBeforeUnmount as E, openBlock as m, createElementBlock as b, createElementVNode as f, createVNode as n, unref as l, withCtx as u, toDisplayString as O, createTextVNode as x, Fragment as V, renderList as D, createBlock as K } from "vue";
2
- import q from "../ScalarHotkey.vue.js";
3
- import { ROUTES as F } from "../../constants.js";
4
- import { ScalarContextMenu as H, ScalarIcon as d, ScalarDropdown as W, ScalarDropdownItem as _ } from "@scalar/components";
5
- import { capitalize as G } from "@scalar/oas-utils/helpers";
6
- import { useClipboard as J } from "@scalar/use-hooks/useClipboard";
7
- import P from "./TopNavItem.vue.js";
8
- import { useWorkspace as Q } from "../../store/store.js";
9
- const X = { class: "flex h-10 t-app__top-nav" }, Y = { class: "flex h-10 flex-1 items-center gap-1.5 text-sm font-medium pr-2.5 relative overflow-hidden" }, Z = {
10
- key: 0,
11
- class: "h-full w-full overflow-hidden"
12
- }, re = /* @__PURE__ */ z({
13
- __name: "TopNav",
14
- props: {
15
- openNewTab: {}
16
- },
17
- setup(I) {
18
- const L = I, { activeRequest: S, router: i, events: g } = Q(), { copyToClipboard: U } = J(), t = A([{ label: "", path: "", icon: "Add" }]), a = M(0), T = j(() => a.value);
19
- function k() {
20
- var o;
21
- const e = F.find((c) => i.currentRoute.value.name == c.name);
22
- e && ((e == null ? void 0 : e.name) === "request" ? t[a.value] = {
23
- label: ((o = S.value) == null ? void 0 : o.summary) || "",
24
- path: i.currentRoute.value.path,
25
- icon: e.icon
26
- } : t[a.value] = {
27
- label: G(e == null ? void 0 : e.name) || "",
28
- path: i.currentRoute.value.path,
29
- icon: e.icon
30
- });
31
- }
32
- function v() {
33
- i.push(t[a.value].path);
34
- }
35
- function p() {
36
- t.push({ label: "", path: "", icon: "Add" }), a.value = t.length - 1, k();
37
- }
38
- function r(e) {
39
- a.value = e, v();
40
- }
41
- w(
42
- () => i.currentRoute.value.path,
43
- () => {
44
- k();
45
- },
46
- { immediate: !0 }
47
- );
48
- function N(e) {
49
- t.splice(e, 1), a.value = Math.min(
50
- a.value,
51
- t.length - 1
52
- ), v();
53
- }
54
- const y = (e) => {
55
- const o = new URL(window.location.href);
56
- o.pathname = t[e].path, U(o.toString());
57
- }, R = (e) => {
58
- t.splice(0, e), t.splice(1), a.value = 0, v();
59
- }, C = (e) => {
60
- if (e) {
61
- if (e.addTopNav && p(), e.closeTopNav && N(a.value), e.navigateTopNavLeft && r(Math.max(a.value - 1, 0)), e.navigateTopNavRight && r(Math.min(a.value + 1, t.length - 1)), e.jumpToTab) {
62
- const o = Number(e.jumpToTab.key) - 1;
63
- o >= 0 && o < t.length && r(o);
64
- }
65
- e.jumpToLastTab && r(t.length - 1);
66
- }
67
- }, $ = (e) => {
68
- t.push({
69
- label: e.name,
70
- path: e.uid,
71
- icon: "ExternalLink"
72
- });
73
- };
74
- return w(
75
- () => L.openNewTab,
76
- (e) => {
77
- e && $(e);
78
- },
79
- { immediate: !0 }
80
- ), B(() => g.hotKeys.on(C)), E(() => g.hotKeys.off(C)), (e, o) => (m(), b("nav", X, [
81
- o[3] || (o[3] = f("div", { class: "t-app__top-nav-draggable" }, null, -1)),
82
- f("div", Y, [
83
- t.length === 1 ? (m(), b("div", Z, [
84
- n(l(H), { triggerClass: "flex custom-scroll gap-1.5 h-full items-center justify-center w-full whitespace-nowrap" }, {
85
- trigger: u(() => [
86
- n(l(d), {
87
- icon: t[0].icon,
88
- size: "xs",
89
- thickness: "2.5"
90
- }, null, 8, ["icon"]),
91
- f("span", null, O(t[0].label), 1)
92
- ]),
93
- content: u(() => [
94
- n(l(W), {
95
- class: "scalar-client",
96
- static: ""
97
- }, {
98
- items: u(() => [
99
- n(l(_), {
100
- class: "flex items-center gap-1.5",
101
- onClick: p
102
- }, {
103
- default: u(() => [
104
- n(l(d), {
105
- icon: "AddTab",
106
- size: "sm",
107
- thickness: "1.5"
108
- }),
109
- o[1] || (o[1] = x(" New Tab ")),
110
- n(q, {
111
- class: "bg-b-2 ml-auto",
112
- hotkey: "T"
113
- })
114
- ]),
115
- _: 1
116
- }),
117
- n(l(_), {
118
- class: "flex items-center gap-1.5",
119
- onClick: o[0] || (o[0] = (c) => y(T.value))
120
- }, {
121
- default: u(() => [
122
- n(l(d), {
123
- icon: "Link",
124
- size: "sm",
125
- thickness: "1.5"
126
- }),
127
- o[2] || (o[2] = x(" Copy URL "))
128
- ]),
129
- _: 1
130
- })
131
- ]),
132
- _: 1
133
- })
134
- ]),
135
- _: 1
136
- })
137
- ])) : (m(!0), b(V, { key: 1 }, D(t, (c, s) => (m(), K(P, {
138
- key: s,
139
- active: s === T.value,
140
- hotkey: (s + 1).toString(),
141
- icon: c.icon,
142
- label: c.label,
143
- onClick: (h) => r(s),
144
- onClose: (h) => N(s),
145
- onCloseOtherTabs: (h) => R(s),
146
- onCopyUrl: (h) => y(s),
147
- onNewTab: p
148
- }, null, 8, ["active", "hotkey", "icon", "label", "onClick", "onClose", "onCloseOtherTabs", "onCopyUrl"]))), 128)),
149
- f("button", {
150
- class: "text-c-3 hover:bg-b-3 p-1.5 rounded webkit-app-no-drag",
151
- type: "button",
152
- onClick: p
153
- }, [
154
- n(l(d), {
155
- icon: "Add",
156
- size: "xs",
157
- thickness: "2.5"
158
- })
159
- ])
160
- ])
161
- ]));
162
- }
163
- });
1
+ import f from "./TopNav.vue.js";
164
2
  export {
165
- re as default
3
+ f as default
166
4
  };
@@ -6,14 +6,14 @@ type __VLS_Props = {
6
6
  icon: Icon;
7
7
  };
8
8
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
9
- click: () => any;
10
9
  close: () => any;
10
+ click: () => any;
11
11
  newTab: () => any;
12
12
  copyUrl: () => any;
13
13
  closeOtherTabs: () => any;
14
14
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
15
- onClick?: (() => any) | undefined;
16
15
  onClose?: (() => any) | undefined;
16
+ onClick?: (() => any) | undefined;
17
17
  onNewTab?: (() => any) | undefined;
18
18
  onCopyUrl?: (() => any) | undefined;
19
19
  onCloseOtherTabs?: (() => any) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"TopNavItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNavItem.vue"],"names":[],"mappings":"AA0MA,OAAO,EACL,KAAK,IAAI,EAOV,MAAM,oBAAoB,CAAA;AAI3B,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,OAAO,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,IAAI,CAAA;CACX,CAAC;;;;;;;;;;;;;;AAkUF,wBAQG"}
1
+ {"version":3,"file":"TopNavItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNavItem.vue"],"names":[],"mappings":"AAuMA,OAAO,EACL,KAAK,IAAI,EAOV,MAAM,oBAAoB,CAAA;AAI3B,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,OAAO,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,IAAI,CAAA;CACX,CAAC;;;;;;;;;;;;;;AAiUF,wBAQG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./TopNavItem.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e4e81f66"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9e263bd8"]]);
5
5
  export {
6
- r as default
6
+ a as default
7
7
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as k, openBlock as p, createBlock as d, unref as s, withCtx as i, createVNode as t, createElementVNode as a, normalizeClass as f, toDisplayString as u, createCommentVNode as b, createTextVNode as r } from "vue";
2
2
  import c from "../ScalarHotkey.vue.js";
3
- import { ScalarContextMenu as v, ScalarTooltip as C, ScalarIcon as l, ScalarDropdown as g, ScalarDropdownItem as m, ScalarDropdownDivider as y } from "@scalar/components";
3
+ import { ScalarContextMenu as g, ScalarTooltip as v, ScalarIcon as l, ScalarDropdown as C, ScalarDropdownItem as m, ScalarDropdownDivider as y } from "@scalar/components";
4
4
  const T = { class: "nav-item-icon-copy flex flex-1 items-center justify-center gap-1.5" }, $ = { class: "custom-scroll nav-item-copy text-xs" }, D = /* @__PURE__ */ k({
5
5
  __name: "TopNavItem",
6
6
  props: {
@@ -11,9 +11,9 @@ const T = { class: "nav-item-icon-copy flex flex-1 items-center justify-center g
11
11
  },
12
12
  emits: ["click", "close", "newTab", "copyUrl", "closeOtherTabs"],
13
13
  setup(w) {
14
- return (o, e) => (p(), d(s(v), { triggerClass: "overflow-hidden w-full" }, {
14
+ return (o, e) => (p(), d(s(g), { triggerClass: "overflow-hidden w-full" }, {
15
15
  trigger: i(() => [
16
- t(s(C), {
16
+ t(s(v), {
17
17
  class: "scalar-client",
18
18
  delay: 500,
19
19
  disableClosingTrigger: !0,
@@ -22,7 +22,7 @@ const T = { class: "nav-item-icon-copy flex flex-1 items-center justify-center g
22
22
  }, {
23
23
  trigger: i(() => [
24
24
  a("div", {
25
- class: f(["nav-item webkit-app-no-drag", { "nav-item__active": o.active }]),
25
+ class: f(["nav-item app-no-drag-region", { "nav-item__active": o.active }]),
26
26
  onClick: e[1] || (e[1] = (n) => o.$emit("click"))
27
27
  }, [
28
28
  a("div", T, [
@@ -55,7 +55,7 @@ const T = { class: "nav-item-icon-copy flex flex-1 items-center justify-center g
55
55
  })
56
56
  ]),
57
57
  content: i(() => [
58
- t(s(g), {
58
+ t(s(C), {
59
59
  class: "scalar-client",
60
60
  static: ""
61
61
  }, {
@@ -1 +1 @@
1
- {"version":3,"file":"ViewLayoutCollapse.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutCollapse.vue"],"names":[],"mappings":"AAgEA,KAAK,WAAW,GAAG;IACf,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;AAkBJ,iBAAS,cAAc;WAyIT,OAAO,IAA6B;;;;YAVtB,GAAG;;;YACD,GAAG;;;YACH,GAAG;;;;EAahC;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;iBAhLH,OAAO;eACT,MAAM;6EAuLpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ViewLayoutCollapse.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutCollapse.vue"],"names":[],"mappings":"AAgEA,KAAK,WAAW,GAAG;IACf,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;AAkBJ,iBAAS,cAAc;WA2IT,OAAO,IAA6B;;;;YAVtB,GAAG;;;YACD,GAAG;;;YACH,GAAG;;;;EAahC;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;iBAlLH,OAAO;eACT,MAAM;6EAyLpB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -21,7 +21,7 @@ const g = { class: "flex items-center" }, v = { class: "flex flex-1 items-center
21
21
  }, {
22
22
  default: n(({ open: t }) => [
23
23
  r("div", g, [
24
- i(o(h), { class: "group hover:text-c-1 flex flex-1 items-center gap-2.5 overflow-hidden py-1.5 text-sm font-medium px-2.5 outline-none" }, {
24
+ i(o(h), { class: "group hover:text-c-1 flex flex-1 items-center gap-2.5 overflow-hidden py-1.5 text-sm font-medium px-1 md:px-1.5 xl:px-2 outline-none" }, {
25
25
  default: n(() => [
26
26
  i(o(b), {
27
27
  class: "text-c-3 group-hover:text-c-1 group-focus-visible:outline ui-open:rotate-90 ui-not-open:rotate-0 rounded-[1px] outline-offset-2",
@@ -1,7 +1,7 @@
1
1
  import { openBlock as o, createElementBlock as l, createElementVNode as n, renderSlot as t } from "vue";
2
2
  import s from "../../_virtual/_plugin-vue_export-helper.js";
3
- const r = {}, c = { class: "flex xl:h-full xl:min-w-0 xl:flex-1 flex-col xl:custom-scroll bg-b-1" }, i = { class: "min-h-12 xl:min-h-header flex items-center border-b-1/2 px-3.5 py-1.5 md:px-4 md:py-2 xl:px-6 xl:pr-5 text-sm font-medium sticky top-0 bg-b-1 xl:rounded-none z-1" };
4
- function m(e, x) {
3
+ const r = {}, c = { class: "flex xl:h-full xl:min-w-0 flex-1 flex-col xl:custom-scroll bg-b-1" }, i = { class: "min-h-12 xl:min-h-header flex items-center border-b-1/2 px-3.5 py-1.5 md:px-4 md:py-2 xl:px-6 xl:pr-5 text-sm font-medium sticky top-0 bg-b-1 xl:rounded-none z-1" };
4
+ function m(e, d) {
5
5
  return o(), l("section", c, [
6
6
  n("div", i, [
7
7
  t(e.$slots, "title")
@@ -1,10 +1,11 @@
1
1
  import { keyMap as r } from "./useKeyMap.js";
2
2
  import { useFileDialog as t } from "./useFileDialog.js";
3
3
  import { useSidebar as f } from "./useSidebar.js";
4
- import { useLayout as u } from "./useLayout.js";
4
+ import { LAYOUT_SYMBOL as u, useLayout as x } from "./useLayout.js";
5
5
  export {
6
+ u as LAYOUT_SYMBOL,
6
7
  r as keyMap,
7
8
  t as useFileDialog,
8
- u as useLayout,
9
+ x as useLayout,
9
10
  f as useSidebar
10
11
  };
@@ -1,7 +1,9 @@
1
+ import { type InjectionKey } from 'vue';
1
2
  /**
2
3
  * The layout of the client
3
4
  */
4
5
  export type ClientLayout = 'modal' | 'web' | 'desktop';
6
+ export declare const LAYOUT_SYMBOL: InjectionKey<ClientLayout>;
5
7
  /**
6
8
  * Get the current client layout
7
9
  *
@@ -1 +1 @@
1
- {"version":3,"file":"useLayout.d.ts","sourceRoot":"","sources":["../../src/hooks/useLayout.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,KAAK,GAAG,SAAS,CAAA;AAEtD;;;;GAIG;AACH,eAAO,MAAM,SAAS;;CAEpB,CAAA"}
1
+ {"version":3,"file":"useLayout.d.ts","sourceRoot":"","sources":["../../src/hooks/useLayout.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,YAAY,EAAU,MAAM,KAAK,CAAA;AAE/C;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,KAAK,GAAG,SAAS,CAAA;AACtD,eAAO,MAAM,aAAa,EAAe,YAAY,CAAC,YAAY,CAAC,CAAA;AAEnE;;;;GAIG;AACH,eAAO,MAAM,SAAS;;CAEpB,CAAA"}
@@ -1,7 +1,8 @@
1
1
  import { inject as o } from "vue";
2
- const e = () => ({
3
- layout: o("layout") ?? "desktop"
2
+ const t = Symbol(), s = () => ({
3
+ layout: o(t) ?? "desktop"
4
4
  });
5
5
  export {
6
- e as useLayout
6
+ t as LAYOUT_SYMBOL,
7
+ s as useLayout
7
8
  };
@@ -8,6 +8,6 @@ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import
8
8
  name: string;
9
9
  uid: string;
10
10
  }) => any) | undefined;
11
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
11
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
12
12
  export default _default;
13
13
  //# sourceMappingURL=ApiClientApp.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ApiClientApp.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/App/ApiClientApp.vue"],"names":[],"mappings":";;cA8H8B,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AA8KjD,wBAMG"}
1
+ {"version":3,"file":"ApiClientApp.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/App/ApiClientApp.vue"],"names":[],"mappings":";;cAoI8B,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AAgLjD,wBAOG"}