@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,35 +1,35 @@
1
- import { defineComponent as n, openBlock as e, createBlock as o, unref as c, withCtx as i, renderSlot as u, createCommentVNode as d } from "vue";
2
- import p from "../ScalarHotkey.vue.js";
3
- import { ScalarButton as s } from "@scalar/components";
4
- const y = /* @__PURE__ */ n({
1
+ import { defineComponent as i, openBlock as o, createBlock as e, unref as r, withCtx as u, renderSlot as p, createCommentVNode as s } from "vue";
2
+ import m from "../ScalarHotkey.vue.js";
3
+ import { ScalarButton as d } from "@scalar/components";
4
+ import { useLayout as k } from "../../hooks/useLayout.js";
5
+ const g = /* @__PURE__ */ i({
5
6
  __name: "SidebarButton",
6
7
  props: {
7
- click: {},
8
- hotkey: {},
9
- layout: { default: "desktop" }
8
+ click: { type: Function },
9
+ hotkey: {}
10
10
  },
11
- setup(r) {
12
- const l = r, a = () => {
13
- l.click();
11
+ setup(n) {
12
+ const a = n, { layout: c } = k(), l = () => {
13
+ a.click();
14
14
  };
15
- return (t, k) => (e(), o(c(s), {
15
+ return (t, h) => (o(), e(r(d), {
16
16
  class: "bg-b-1 text-c-1 hover:bg-b-2 group relative w-auto md:w-full border-1/2 px-2 py-1 md:p-1.5 h-auto",
17
17
  icon: "Plus",
18
18
  variant: "outlined",
19
- onClick: a
19
+ onClick: l
20
20
  }, {
21
- default: i(() => [
22
- u(t.$slots, "title"),
23
- t.hotkey && t.layout === "desktop" ? (e(), o(p, {
21
+ default: u(() => [
22
+ p(t.$slots, "title"),
23
+ t.hotkey && r(c) === "desktop" ? (o(), e(m, {
24
24
  key: 0,
25
25
  class: "hidden md:block absolute right-2 group-hover:opacity-80 text-c-2 add-item-hotkey",
26
26
  hotkey: t.hotkey
27
- }, null, 8, ["hotkey"])) : d("", !0)
27
+ }, null, 8, ["hotkey"])) : s("", !0)
28
28
  ]),
29
29
  _: 3
30
30
  }));
31
31
  }
32
32
  });
33
33
  export {
34
- y as default
34
+ g as default
35
35
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarToggle.vue"],"names":[],"mappings":"AA8CA,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,OAAO,CAAA;CACpB,CAAC;;;;;;AA6EF,wBAQG"}
1
+ {"version":3,"file":"SidebarToggle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarToggle.vue"],"names":[],"mappings":"AA+CA,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,OAAO,CAAA;CACpB,CAAC;;;;;;AAgFF,wBAQG"}
@@ -1,38 +1,39 @@
1
- import { defineComponent as r, openBlock as l, createElementBlock as n, createElementVNode as t, normalizeClass as s } from "vue";
2
- const a = {
1
+ import { defineComponent as s, openBlock as l, createElementBlock as n, createElementVNode as e, toDisplayString as r, normalizeClass as a } from "vue";
2
+ const i = { class: "sr-only" }, d = {
3
3
  class: "size-3.5",
4
4
  fill: "none",
5
5
  viewBox: "0 0 24 24",
6
6
  xmlns: "http://www.w3.org/2000/svg"
7
- }, d = { "clip-path": "url(#mask)" }, m = /* @__PURE__ */ r({
7
+ }, p = { "clip-path": "url(#mask)" }, v = /* @__PURE__ */ s({
8
8
  __name: "SidebarToggle",
9
9
  props: {
10
10
  modelValue: { type: Boolean }
11
11
  },
12
12
  emits: ["update:modelValue"],
13
- setup(i) {
14
- return (o, e) => (l(), n("button", {
13
+ setup(u) {
14
+ return (o, t) => (l(), n("button", {
15
15
  class: "text-c-1 hover:bg-b-2 active:text-c-1 p-2 rounded",
16
16
  type: "button",
17
- onClick: e[0] || (e[0] = (u) => o.$emit("update:modelValue", !o.modelValue))
17
+ onClick: t[0] || (t[0] = (m) => o.$emit("update:modelValue", !o.modelValue))
18
18
  }, [
19
- (l(), n("svg", a, [
20
- e[1] || (e[1] = t("defs", null, [
21
- t("clipPath", { id: "mask" }, [
22
- t("path", {
19
+ e("span", i, r(o.modelValue ? "Hide" : "Show") + " sidebar", 1),
20
+ (l(), n("svg", d, [
21
+ t[1] || (t[1] = e("defs", null, [
22
+ e("clipPath", { id: "mask" }, [
23
+ e("path", {
23
24
  "clip-rule": "evenodd",
24
25
  d: "M9 3.2H4c-1.7 0-3 1.3-3 3v11.5c0 1.7 1.3 3 3 3h5V3.2z"
25
26
  })
26
27
  ])
27
28
  ], -1)),
28
- t("g", d, [
29
- t("path", {
30
- class: s(["transition-transform duration-300", o.modelValue ? "translate-x-0" : "-translate-x-1/2"]),
29
+ e("g", p, [
30
+ e("path", {
31
+ class: a(["transition-transform duration-300", o.modelValue ? "translate-x-0" : "-translate-x-1/2"]),
31
32
  d: "M1 3.2h8v17.5H1z",
32
33
  fill: "currentColor"
33
34
  }, null, 2)
34
35
  ]),
35
- e[2] || (e[2] = t("path", {
36
+ t[2] || (t[2] = e("path", {
36
37
  d: "M20 20.8H4c-1.7 0-3-1.3-3-3V6.2c0-1.7 1.3-3 3-3h16c1.7 0 3 1.3 3 3v11.5c0 1.7-1.3 3-3 3zM9 3.2v17.5",
37
38
  stroke: "currentColor",
38
39
  "stroke-linecap": "round",
@@ -44,5 +45,5 @@ const a = {
44
45
  }
45
46
  });
46
47
  export {
47
- m as default
48
+ v as default
48
49
  };
@@ -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;;AAkaF,wBAOG"}
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,7 +1,7 @@
1
1
  import o from "./TopNav.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-fc362fa8"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-09bb5ecf"]]);
5
5
  export {
6
- r as default
6
+ f as default
7
7
  };
@@ -6,40 +6,40 @@ import { ScalarContextMenu as W, ScalarIcon as d, ScalarDropdown as G, ScalarDro
6
6
  import { capitalize as J } from "@scalar/oas-utils/helpers";
7
7
  import P from "./TopNavItem.vue.js";
8
8
  import { useWorkspace as Q } from "../../store/store.js";
9
- const X = { class: "border-b-1/2 flex h-10 t-app__top-nav" }, Y = { class: "flex h-10 flex-1 items-center gap-1.5 text-sm font-medium pr-1 relative overflow-hidden" }, Z = {
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
10
  key: 0,
11
11
  class: "h-full w-full overflow-hidden"
12
- }, ie = /* @__PURE__ */ z({
12
+ }, re = /* @__PURE__ */ z({
13
13
  __name: "TopNav",
14
14
  props: {
15
15
  openNewTab: {}
16
16
  },
17
17
  setup(I) {
18
- const L = I, { activeRequest: S, router: r, events: g } = Q(), { copyToClipboard: U } = H(), t = A([{ label: "", path: "", icon: "Add" }]), a = M(0), T = j(() => a.value);
18
+ const L = I, { activeRequest: S, router: i, events: g } = Q(), { copyToClipboard: U } = H(), t = A([{ label: "", path: "", icon: "Add" }]), a = M(0), T = j(() => a.value);
19
19
  function k() {
20
20
  var o;
21
- const e = F.find((c) => r.currentRoute.value.name == c.name);
21
+ const e = F.find((c) => i.currentRoute.value.name == c.name);
22
22
  e && ((e == null ? void 0 : e.name) === "request" ? t[a.value] = {
23
23
  label: ((o = S.value) == null ? void 0 : o.summary) || "",
24
- path: r.currentRoute.value.path,
24
+ path: i.currentRoute.value.path,
25
25
  icon: e.icon
26
26
  } : t[a.value] = {
27
27
  label: J(e == null ? void 0 : e.name) || "",
28
- path: r.currentRoute.value.path,
28
+ path: i.currentRoute.value.path,
29
29
  icon: e.icon
30
30
  });
31
31
  }
32
32
  function v() {
33
- r.push(t[a.value].path);
33
+ i.push(t[a.value].path);
34
34
  }
35
35
  function p() {
36
36
  t.push({ label: "", path: "", icon: "Add" }), a.value = t.length - 1, k();
37
37
  }
38
- function i(e) {
38
+ function r(e) {
39
39
  a.value = e, v();
40
40
  }
41
41
  w(
42
- () => r.currentRoute.value.path,
42
+ () => i.currentRoute.value.path,
43
43
  () => {
44
44
  k();
45
45
  },
@@ -58,11 +58,11 @@ const X = { class: "border-b-1/2 flex h-10 t-app__top-nav" }, Y = { class: "flex
58
58
  t.splice(0, e), t.splice(1), a.value = 0, v();
59
59
  }, C = (e) => {
60
60
  if (e) {
61
- if (e.addTopNav && p(), e.closeTopNav && N(a.value), e.navigateTopNavLeft && i(Math.max(a.value - 1, 0)), e.navigateTopNavRight && i(Math.min(a.value + 1, t.length - 1)), e.jumpToTab) {
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
62
  const o = Number(e.jumpToTab.key) - 1;
63
- o >= 0 && o < t.length && i(o);
63
+ o >= 0 && o < t.length && r(o);
64
64
  }
65
- e.jumpToLastTab && i(t.length - 1);
65
+ e.jumpToLastTab && r(t.length - 1);
66
66
  }
67
67
  }, $ = (e) => {
68
68
  t.push({
@@ -140,7 +140,7 @@ const X = { class: "border-b-1/2 flex h-10 t-app__top-nav" }, Y = { class: "flex
140
140
  hotkey: (s + 1).toString(),
141
141
  icon: c.icon,
142
142
  label: c.label,
143
- onClick: (h) => i(s),
143
+ onClick: (h) => r(s),
144
144
  onClose: (h) => N(s),
145
145
  onCloseOtherTabs: (h) => R(s),
146
146
  onCopyUrl: (h) => y(s),
@@ -162,5 +162,5 @@ const X = { class: "border-b-1/2 flex h-10 t-app__top-nav" }, Y = { class: "flex
162
162
  }
163
163
  });
164
164
  export {
165
- ie as default
165
+ re as default
166
166
  };
@@ -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
- close: () => any;
10
9
  click: () => any;
10
+ close: () => any;
11
11
  newTab: () => any;
12
12
  copyUrl: () => any;
13
13
  closeOtherTabs: () => any;
14
14
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
15
- onClose?: (() => any) | undefined;
16
15
  onClick?: (() => any) | undefined;
16
+ onClose?: (() => any) | undefined;
17
17
  onNewTab?: (() => any) | undefined;
18
18
  onCopyUrl?: (() => any) | undefined;
19
19
  onCloseOtherTabs?: (() => any) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"ViewLayoutCollapse.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutCollapse.vue"],"names":[],"mappings":"AA4DA,KAAK,WAAW,GAAG;IACf,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAC;AAkBJ,iBAAS,cAAc;WAsIT,OAAO,IAA6B;;;;YAVtB,GAAG;;;YACD,GAAG;;;YACH,GAAG;;;;EAahC;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;iBA7KH,OAAO;eACT,MAAM;6EAoLpB,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"}
@@ -1,12 +1,12 @@
1
- import { defineComponent as c, openBlock as s, createBlock as p, unref as o, withCtx as n, createVNode as i, createElementVNode as r, renderSlot as l, createElementBlock as a, toDisplayString as d, createCommentVNode as u } from "vue";
2
- import { Disclosure as f, DisclosureButton as m, DisclosurePanel as h } from "@headlessui/vue";
3
- import { ScalarIcon as b } from "@scalar/components";
4
- const x = { class: "flex flex-1 items-center gap-1.5 text-c-1" }, g = {
1
+ import { defineComponent as c, openBlock as n, createBlock as p, unref as o, withCtx as s, createElementVNode as r, createVNode as i, renderSlot as l, createElementBlock as u, toDisplayString as d, createCommentVNode as a, mergeProps as f } from "vue";
2
+ import { Disclosure as m, DisclosureButton as h, DisclosurePanel as b } from "@headlessui/vue";
3
+ import { ScalarIcon as x } from "@scalar/components";
4
+ const g = { class: "flex items-center" }, v = { class: "flex flex-1 items-center gap-1.5 text-c-1" }, _ = {
5
5
  key: 0,
6
6
  class: "bg-b-2 text-c-2 text-3xs inline-flex h-4 w-4 items-center justify-center rounded-full font-semibold"
7
- }, _ = { class: "flex items-center gap-2" }, v = {
7
+ }, C = {
8
8
  key: 0,
9
- class: "ui-not-open:invisible -my-1 flex items-center gap-2"
9
+ class: "ui-not-open:invisible flex items-center gap-2 pr-2"
10
10
  }, D = /* @__PURE__ */ c({
11
11
  __name: "ViewLayoutCollapse",
12
12
  props: {
@@ -14,38 +14,38 @@ const x = { class: "flex flex-1 items-center gap-1.5 text-c-1" }, g = {
14
14
  itemCount: { default: 0 }
15
15
  },
16
16
  setup(y) {
17
- return (e, C) => (s(), p(o(f), {
17
+ return (e, k) => (n(), p(o(m), {
18
18
  as: "div",
19
- class: "focus-within:bg-b-2 ui-not-open:hover:bg-b-2 focus-within:text-c-1 text-c-2 rounded request-item ui-not-open:bg-transparent ui-open:pb-1 ui-open:mb-3 ui-not-open:mb-0 ui-not-open:pb-0",
19
+ class: "focus-within:bg-b-2 ui-not-open:hover:bg-b-2 focus-within:text-c-1 text-c-2 rounded request-item ui-not-open:bg-transparent ui-open:pb-1 ui-open:[&:not(:last-child)]:mb-1.5 ui-not-open:mb-0 ui-not-open:pb-0",
20
20
  defaultOpen: e.defaultOpen
21
21
  }, {
22
- default: n(({ open: t }) => [
23
- i(o(m), { class: "hover:text-c-1 group flex w-full items-center gap-2.5 overflow-hidden py-1.5 text-sm font-medium px-1.5" }, {
24
- default: n(() => [
25
- i(o(b), {
26
- class: "text-c-3 group-hover:text-c-1 ui-open:rotate-90 ui-not-open:rotate-0",
27
- icon: "ChevronRight",
28
- size: "sm",
29
- thickness: "2.5"
30
- }),
31
- r("div", x, [
32
- l(e.$slots, "title", { open: t }),
33
- !t && e.itemCount ? (s(), a("span", g, d(e.itemCount), 1)) : u("", !0)
22
+ default: s(({ open: t }) => [
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-1.5 outline-none" }, {
25
+ default: s(() => [
26
+ i(o(x), {
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",
28
+ icon: "ChevronRight",
29
+ size: "sm",
30
+ thickness: "2.5"
31
+ }),
32
+ r("div", v, [
33
+ l(e.$slots, "title", { open: t }),
34
+ !t && e.itemCount ? (n(), u("span", _, d(e.itemCount), 1)) : a("", !0)
35
+ ])
34
36
  ]),
35
- r("div", _, [
36
- e.$slots.actions ? (s(), a("div", v, [
37
- l(e.$slots, "actions", { open: t })
38
- ])) : u("", !0)
39
- ])
40
- ]),
41
- _: 2
42
- }, 1024),
43
- i(o(h), { class: "rounded-b diclosure-panel" }, {
44
- default: n(() => [
37
+ _: 2
38
+ }, 1024),
39
+ e.$slots.actions ? (n(), u("div", C, [
40
+ l(e.$slots, "actions", { open: t })
41
+ ])) : a("", !0)
42
+ ]),
43
+ i(o(b), f(e.$attrs, { class: "h-full max-h-fit rounded-b diclosure-panel" }), {
44
+ default: s(() => [
45
45
  l(e.$slots, "default", { open: t })
46
46
  ]),
47
47
  _: 2
48
- }, 1024)
48
+ }, 1040)
49
49
  ]),
50
50
  _: 3
51
51
  }, 8, ["defaultOpen"]));
@@ -1 +1 @@
1
- {"version":3,"file":"ViewLayoutSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutSection.vue"],"names":[],"mappings":"AA8BA,iBAAS,cAAc;WA8DT,OAAO,IAA6B;;uBATvB,GAAG;yBACD,GAAG;;;;EAa/B;AAQD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,uRAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"ViewLayoutSection.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ViewLayout/ViewLayoutSection.vue"],"names":[],"mappings":"AAmBA,iBAAS,cAAc;WA8DT,OAAO,IAA6B;;uBATvB,GAAG;yBACD,GAAG;;;;EAa/B;AAOD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,uRAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,23 +1,15 @@
1
- import { defineComponent as n, openBlock as r, createElementBlock as s, unref as t, createElementVNode as i, renderSlot as o } from "vue";
2
- import { nanoid as d } from "nanoid";
3
- const a = ["aria-labelledby"], c = ["id"], u = /* @__PURE__ */ n({
4
- __name: "ViewLayoutSection",
5
- setup(m) {
6
- const e = d();
7
- return (l, p) => (r(), s("section", {
8
- "aria-labelledby": t(e),
9
- class: "flex h-full xl:min-w-0 xl:flex-1 flex-col xl:custom-scroll bg-b-1"
10
- }, [
11
- i("div", {
12
- id: t(e),
13
- 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"
14
- }, [
15
- o(l.$slots, "title")
16
- ], 8, c),
17
- o(l.$slots, "default")
18
- ], 8, a));
19
- }
20
- });
1
+ import { openBlock as o, createElementBlock as l, createElementVNode as n, renderSlot as t } from "vue";
2
+ import s from "../../_virtual/_plugin-vue_export-helper.js";
3
+ const r = {}, c = { class: "flex 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" };
4
+ function m(e, d) {
5
+ return o(), l("section", c, [
6
+ n("div", i, [
7
+ t(e.$slots, "title")
8
+ ]),
9
+ t(e.$slots, "default")
10
+ ]);
11
+ }
12
+ const p = /* @__PURE__ */ s(r, [["render", m]]);
21
13
  export {
22
- u as default
14
+ p as default
23
15
  };
@@ -2,5 +2,6 @@ export * from './useDarkModeState.js';
2
2
  export * from './useClipboard.js';
3
3
  export * from './useKeyMap.js';
4
4
  export * from './useFileDialog.js';
5
- export { useSidebar } from './useSidebar.js';
5
+ export * from './useSidebar.js';
6
+ export * from './useLayout.js';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA"}
@@ -1,12 +1,14 @@
1
1
  import { useDarkModeState as r } from "./useDarkModeState.js";
2
- import { useClipboard as t } from "./useClipboard.js";
2
+ import { useClipboard as p } from "./useClipboard.js";
3
3
  import { keyMap as f } from "./useKeyMap.js";
4
- import { useFileDialog as x } from "./useFileDialog.js";
4
+ import { useFileDialog as u } from "./useFileDialog.js";
5
5
  import { useSidebar as s } from "./useSidebar.js";
6
+ import { useLayout as d } from "./useLayout.js";
6
7
  export {
7
8
  f as keyMap,
8
- t as useClipboard,
9
+ p as useClipboard,
9
10
  r as useDarkModeState,
10
- x as useFileDialog,
11
+ u as useFileDialog,
12
+ d as useLayout,
11
13
  s as useSidebar
12
14
  };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The layout of the client
3
+ */
4
+ export type ClientLayout = 'modal' | 'web' | 'desktop';
5
+ /**
6
+ * Get the current client layout
7
+ *
8
+ * @see {@link createApiClient}
9
+ */
10
+ export declare const useLayout: () => {
11
+ layout: ClientLayout;
12
+ };
13
+ //# sourceMappingURL=useLayout.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,7 @@
1
+ import { inject as o } from "vue";
2
+ const e = () => ({
3
+ layout: o("layout") ?? "desktop"
4
+ });
5
+ export {
6
+ e as useLayout
7
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"ApiClientApp.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/App/ApiClientApp.vue"],"names":[],"mappings":";;cA+I8B,MAAM;aAAO,MAAM;;;;cAAnB,MAAM;aAAO,MAAM;;;AAiLjD,wBAMG"}
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,58 +1,58 @@
1
- import { defineComponent as w, ref as y, provide as T, onBeforeMount as _, onMounted as h, onBeforeUnmount as k, computed as K, openBlock as n, createElementBlock as C, Fragment as N, createElementVNode as S, createVNode as a, unref as r, createBlock as m, withCtx as p, KeepAlive as E, resolveDynamicComponent as H, createCommentVNode as b } from "vue";
2
- import D from "../../components/TopNav/TopNav.vue.js";
3
- import A from "./MainLayout.vue.js";
4
- import { addScalarClassesToHeadless as B } from "@scalar/components";
5
- import { getThemeStyles as L } from "@scalar/themes";
6
- import { ScalarToasts as M } from "@scalar/use-toasts";
7
- import { RouterView as P } from "vue-router";
8
- import { APP_HOTKEYS as V } from "./hotkeys.js";
9
- import { useDarkModeState as W } from "../../hooks/useDarkModeState.js";
10
- import { DEFAULT_HOTKEYS as g, handleHotKeyDown as x } from "../../libs/hot-keys.js";
11
- import { useWorkspace as F } from "../../store/store.js";
12
- const O = ["innerHTML"], ee = /* @__PURE__ */ w({
1
+ import { defineComponent as v, ref as T, onBeforeMount as _, onMounted as y, onBeforeUnmount as h, computed as k, openBlock as n, createElementBlock as K, Fragment as C, createElementVNode as N, createVNode as a, unref as r, createBlock as m, withCtx as p, KeepAlive as S, resolveDynamicComponent as E, createCommentVNode as H } from "vue";
2
+ import b from "../../components/TopNav/TopNav.vue.js";
3
+ import D from "./MainLayout.vue.js";
4
+ import { addScalarClassesToHeadless as A } from "@scalar/components";
5
+ import { getThemeStyles as B } from "@scalar/themes";
6
+ import { ScalarToasts as L } from "@scalar/use-toasts";
7
+ import { RouterView as M } from "vue-router";
8
+ import { APP_HOTKEYS as P } from "./hotkeys.js";
9
+ import { useDarkModeState as V } from "../../hooks/useDarkModeState.js";
10
+ import { DEFAULT_HOTKEYS as W, handleHotKeyDown as g } from "../../libs/hot-keys.js";
11
+ import { useWorkspace as x } from "../../store/store.js";
12
+ const F = ["innerHTML"], Z = /* @__PURE__ */ v({
13
13
  __name: "ApiClientApp",
14
14
  emits: ["newTab"],
15
- setup(U) {
16
- const d = { ...g, ...V }, l = y(null), u = (e) => {
15
+ setup(O) {
16
+ const d = { ...W, ...P }, l = T(null), u = (e) => {
17
17
  l.value = e;
18
18
  };
19
- W();
20
- const o = F(), { events: t } = o;
21
- T("layout", "desktop"), _(() => B());
22
- const s = (e) => x(e, t.hotKeys, { hotKeys: d }), i = (e) => {
19
+ V();
20
+ const o = x(), { events: t } = o;
21
+ _(() => A());
22
+ const s = (e) => g(e, t.hotKeys, { hotKeys: d }), c = (e) => {
23
23
  e && e.openCommandPalette && (e.openCommandPalette.preventDefault(), t.commandPalette.emit());
24
24
  };
25
- h(() => {
26
- window.addEventListener("keydown", s), t.hotKeys.on(i);
27
- }), k(() => {
28
- window.removeEventListener("keydown", s), t.hotKeys.off(i);
25
+ y(() => {
26
+ window.addEventListener("keydown", s), t.hotKeys.on(c);
27
+ }), h(() => {
28
+ window.removeEventListener("keydown", s), t.hotKeys.off(c);
29
29
  });
30
- const f = K(
31
- () => o.activeWorkspace.value && `<style>${L(o.activeWorkspace.value.themeId)}</style>`
30
+ const f = k(
31
+ () => o.activeWorkspace.value && `<style>${B(o.activeWorkspace.value.themeId)}</style>`
32
32
  );
33
- return (e, Y) => {
34
- var c;
35
- return n(), C(N, null, [
36
- S("div", { innerHTML: f.value }, null, 8, O),
37
- a(D, { openNewTab: l.value }, null, 8, ["openNewTab"]),
38
- (c = r(o).activeWorkspace.value) != null && c.uid ? (n(), m(A, { key: 0 }, {
33
+ return (e, U) => {
34
+ var i;
35
+ return n(), K(C, null, [
36
+ N("div", { innerHTML: f.value }, null, 8, F),
37
+ a(b, { openNewTab: l.value }, null, 8, ["openNewTab"]),
38
+ (i = r(o).activeWorkspace.value) != null && i.uid ? (n(), m(D, { key: 0 }, {
39
39
  default: p(() => [
40
- a(r(P), { onNewTab: u }, {
41
- default: p(({ Component: v }) => [
42
- (n(), m(E, null, [
43
- (n(), m(H(v)))
40
+ a(r(M), { onNewTab: u }, {
41
+ default: p(({ Component: w }) => [
42
+ (n(), m(S, null, [
43
+ (n(), m(E(w)))
44
44
  ], 1024))
45
45
  ]),
46
46
  _: 1
47
47
  })
48
48
  ]),
49
49
  _: 1
50
- })) : b("", !0),
51
- a(r(M))
50
+ })) : H("", !0),
51
+ a(r(L))
52
52
  ], 64);
53
53
  };
54
54
  }
55
55
  });
56
56
  export {
57
- ee as default
57
+ Z as default
58
58
  };
@@ -1 +1 @@
1
- {"version":3,"file":"MainLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/App/MainLayout.vue"],"names":[],"mappings":"AA6BA,iBAAS,cAAc;WA4DT,OAAO,IAA6B;;yBARpB,GAAG;;;;EAahC;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,+QAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"MainLayout.vue.d.ts","sourceRoot":"","sources":["../../../src/layouts/App/MainLayout.vue"],"names":[],"mappings":"AA0CA,iBAAS,cAAc;WAmET,OAAO,IAA6B;;yBARpB,GAAG;;;;EAahC;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,+QAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,18 +1,26 @@
1
- import { defineComponent as t, openBlock as r, createElementBlock as l, createVNode as e, unref as n, createElementVNode as s, renderSlot as a } from "vue";
2
- import m from "../../components/SideNav/SideNav.vue.js";
3
- import c from "../../components/CommandPalette/TheCommandPalette.vue.js";
4
- const f = { class: "flex flex-col sm:flex-row min-h-0 flex-1" }, d = { class: "flex flex-1 flex-col min-w-0 min-h-0 border-l-1/2" }, h = /* @__PURE__ */ t({
1
+ import { defineComponent as s, openBlock as t, createElementBlock as n, normalizeClass as r, unref as e, createVNode as m, createElementVNode as a, renderSlot as f } from "vue";
2
+ import c from "../../components/SideNav/SideNav.vue.js";
3
+ import d from "../../components/CommandPalette/TheCommandPalette.vue.js";
4
+ import { useLayout as i } from "../../hooks/useLayout.js";
5
+ const b = /* @__PURE__ */ s({
5
6
  __name: "MainLayout",
6
- setup(i) {
7
- return (o, _) => (r(), l("main", f, [
8
- e(m, { class: "order-last sm:order-none" }),
9
- e(n(c)),
10
- s("div", d, [
11
- a(o.$slots, "default")
12
- ])
13
- ]));
7
+ setup(u) {
8
+ const { layout: o } = i();
9
+ return (l, p) => (t(), n("main", {
10
+ class: r(["flex flex-col sm:flex-row min-h-0 flex-1", e(o) === "web" ? "sm:flex-col" : "sm:flex-row"])
11
+ }, [
12
+ m(c, { class: "order-last sm:order-none" }),
13
+ m(e(d)),
14
+ a("div", {
15
+ class: r(["flex flex-1 flex-col min-w-0 min-h-0", {
16
+ "border sm:mr-1.5 sm:mb-1.5 sm:rounded-lg sm:*:rounded-lg": e(o) === "desktop"
17
+ }])
18
+ }, [
19
+ f(l.$slots, "default")
20
+ ], 2)
21
+ ], 2));
14
22
  }
15
23
  });
16
24
  export {
17
- h as default
25
+ b as default
18
26
  };