@scalar/api-client 2.1.45 → 2.1.46

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 (145) hide show
  1. package/CHANGELOG.md +23 -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/ContextBar.vue.d.ts +1 -1
  13. package/dist/components/ContextBar.vue.d.ts.map +1 -1
  14. package/dist/components/ContextBar.vue.js +2 -2
  15. package/dist/components/ContextBar.vue2.js +30 -19
  16. package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
  17. package/dist/components/DataTable/DataTableCheckbox.vue.js +17 -17
  18. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  19. package/dist/components/DataTable/DataTableInput.vue.js +2 -2
  20. package/dist/components/DataTable/DataTableInput.vue2.js +10 -10
  21. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
  22. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +8 -8
  23. package/dist/components/Form/Form.vue.js +15 -15
  24. package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
  25. package/dist/components/ImportCollection/ImportNowButton.vue.d.ts.map +1 -1
  26. package/dist/components/ImportCollection/ImportNowButton.vue.js +14 -13
  27. package/dist/components/Search/useSearch.d.ts +2 -0
  28. package/dist/components/Search/useSearch.d.ts.map +1 -1
  29. package/dist/components/Search/useSearch.js +25 -24
  30. package/dist/components/SideNav/DownloadAppButton.vue.d.ts +3 -0
  31. package/dist/components/SideNav/DownloadAppButton.vue.d.ts.map +1 -0
  32. package/dist/components/SideNav/DownloadAppButton.vue.js +7 -0
  33. package/dist/components/SideNav/DownloadAppButton.vue2.js +33 -0
  34. package/dist/components/SideNav/SideHelp.vue.d.ts.map +1 -1
  35. package/dist/components/SideNav/SideHelp.vue.js +55 -53
  36. package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
  37. package/dist/components/SideNav/SideNav.vue.js +82 -5
  38. package/dist/components/SideNav/SideNav.vue2.js +2 -72
  39. package/dist/components/SideNav/SideNavGroup.vue.d.ts +18 -0
  40. package/dist/components/SideNav/SideNavGroup.vue.d.ts.map +1 -0
  41. package/dist/components/SideNav/SideNavGroup.vue.js +16 -0
  42. package/dist/components/SideNav/SideNavGroup.vue2.js +4 -0
  43. package/dist/components/SideNav/SideNavLink.vue.d.ts +5 -5
  44. package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
  45. package/dist/components/SideNav/SideNavLink.vue.js +31 -34
  46. package/dist/components/SideNav/SideNavRouterLink.vue.d.ts +25 -0
  47. package/dist/components/SideNav/SideNavRouterLink.vue.d.ts.map +1 -0
  48. package/dist/components/SideNav/SideNavRouterLink.vue.js +29 -0
  49. package/dist/components/SideNav/SideNavRouterLink.vue2.js +4 -0
  50. package/dist/components/Sidebar/SidebarButton.vue.d.ts +1 -4
  51. package/dist/components/Sidebar/SidebarButton.vue.d.ts.map +1 -1
  52. package/dist/components/Sidebar/SidebarButton.vue.js +17 -17
  53. package/dist/components/Sidebar/SidebarToggle.vue.d.ts.map +1 -1
  54. package/dist/components/Sidebar/SidebarToggle.vue.js +16 -15
  55. package/dist/components/TopNav/TopNav.vue.d.ts.map +1 -1
  56. package/dist/components/TopNav/TopNav.vue.js +2 -2
  57. package/dist/components/TopNav/TopNav.vue2.js +14 -14
  58. package/dist/components/TopNav/TopNavItem.vue.d.ts +2 -2
  59. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  60. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +27 -27
  61. package/dist/components/ViewLayout/ViewLayoutSection.vue.d.ts.map +1 -1
  62. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +13 -21
  63. package/dist/hooks/index.d.ts +2 -1
  64. package/dist/hooks/index.d.ts.map +1 -1
  65. package/dist/hooks/index.js +6 -4
  66. package/dist/hooks/useLayout.d.ts +13 -0
  67. package/dist/hooks/useLayout.d.ts.map +1 -0
  68. package/dist/hooks/useLayout.js +7 -0
  69. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
  70. package/dist/layouts/App/ApiClientApp.vue.js +37 -37
  71. package/dist/layouts/App/MainLayout.vue.d.ts.map +1 -1
  72. package/dist/layouts/App/MainLayout.vue.js +21 -13
  73. package/dist/layouts/App/create-api-client-app.d.ts +28 -28
  74. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  75. package/dist/layouts/App/create-api-client-app.js +14 -13
  76. package/dist/layouts/Modal/ApiClientModal.vue.d.ts +3 -1
  77. package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
  78. package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
  79. package/dist/layouts/Modal/ApiClientModal.vue2.js +37 -25
  80. package/dist/layouts/Modal/create-api-client-modal.d.ts +56 -56
  81. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  82. package/dist/layouts/Modal/create-api-client-modal.js +8 -7
  83. package/dist/layouts/Web/ApiClientWeb.vue.d.ts.map +1 -1
  84. package/dist/layouts/Web/ApiClientWeb.vue.js +30 -30
  85. package/dist/layouts/Web/create-api-client-web.d.ts +28 -28
  86. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  87. package/dist/layouts/Web/create-api-client-web.js +12 -11
  88. package/dist/libs/create-client.d.ts +35 -29
  89. package/dist/libs/create-client.d.ts.map +1 -1
  90. package/dist/libs/create-client.js +46 -45
  91. package/dist/libs/hot-keys.d.ts +1 -1
  92. package/dist/store/collections.d.ts +4 -4
  93. package/dist/store/cookies.d.ts +4 -4
  94. package/dist/store/request-example.d.ts +4 -4
  95. package/dist/store/requests.d.ts +4 -4
  96. package/dist/store/security-schemes.d.ts +4 -4
  97. package/dist/store/store.d.ts +56 -56
  98. package/dist/store/tags.d.ts +4 -4
  99. package/dist/store/workspace.d.ts +4 -4
  100. package/dist/style.css +1 -1
  101. package/dist/views/Cookies/CookieRaw.vue.js +10 -10
  102. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  103. package/dist/views/Cookies/Cookies.vue2.js +52 -53
  104. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  105. package/dist/views/Environment/Environment.vue2.js +79 -80
  106. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +2 -2
  107. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +146 -108
  108. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  109. package/dist/views/Request/RequestSection/RequestParams.vue.js +53 -52
  110. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  111. package/dist/views/Request/RequestSection/RequestSection.vue.js +1 -1
  112. package/dist/views/Request/RequestSection/RequestSection.vue2.js +102 -97
  113. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts +2 -2
  114. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  115. package/dist/views/Request/RequestSection/RequestTable.vue.js +2 -2
  116. package/dist/views/Request/RequestSection/RequestTable.vue2.js +44 -40
  117. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  118. package/dist/views/Request/RequestSidebar.vue.js +2 -2
  119. package/dist/views/Request/RequestSidebar.vue2.js +152 -134
  120. package/dist/views/Request/RequestSidebarItem.vue.d.ts +2 -2
  121. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  122. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  123. package/dist/views/Request/RequestSidebarItem.vue2.js +103 -102
  124. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
  125. package/dist/views/Request/RequestSubpageHeader.vue.js +1 -1
  126. package/dist/views/Request/RequestSubpageHeader.vue2.js +36 -34
  127. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.d.ts.map +1 -1
  128. package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +13 -10
  129. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts.map +1 -1
  130. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +1 -1
  131. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +0 -2
  132. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  133. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +3 -3
  134. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +32 -33
  135. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
  136. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +32 -25
  137. package/dist/views/Request/ResponseSection/ResponseSection.vue.d.ts.map +1 -1
  138. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +2 -2
  139. package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +47 -46
  140. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
  141. package/dist/views/Request/components/WorkspaceDropdown.vue.js +1 -1
  142. package/package.json +8 -6
  143. package/dist/components/ViewLayout/ViewLayoutSection.vue2.js +0 -4
  144. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts +0 -7
  145. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +0 -1
@@ -1,27 +1,38 @@
1
- import { defineComponent as r, openBlock as n, createElementBlock as o, createElementVNode as i, Fragment as c, renderList as a, normalizeClass as l, toDisplayString as s, createVNode as d, unref as p } from "vue";
2
- import { ScalarIcon as u } from "@scalar/components";
3
- const m = { class: "hidden lg:flex ml-auto filter-hover context-bar-group lg:w-[120px]" }, v = { class: "request-section-content request-section-content-filter fade-request-section-content text-c-3 hidden xl:flex justify-end rounded text-xs gap-[1.5px] pointer-events-auto relative w-full py-2" }, f = ["isActive", "onClick"], h = { class: "flex items-center context-bar-group-hover:text-c-1 absolute -right-6 top-1/2 -translate-y-1/2" }, x = { class: "mr-1.5 context-bar-group-hover:hidden" }, y = /* @__PURE__ */ r({
1
+ import { defineComponent as f, useId as x, computed as h, openBlock as r, createElementBlock as i, createElementVNode as e, Fragment as g, renderList as _, normalizeClass as b, createTextVNode as y, toDisplayString as l, withDirectives as S, unref as a, vModelRadio as w, createVNode as k } from "vue";
2
+ import { ScalarIcon as V } from "@scalar/components";
3
+ const q = { class: "hidden lg:flex ml-auto filter-hover context-bar-group lg:w-[120px]" }, B = { class: "request-section-content request-section-content-filter fade-request-section-content text-c-3 hidden xl:flex justify-end rounded text-xs gap-[1.5px] pointer-events-auto relative w-full py-2" }, C = ["name", "value"], F = { class: "flex items-center context-bar-group-hover:text-c-1 absolute -right-6 top-1/2 -translate-y-1/2" }, N = { class: "mr-1.5 context-bar-group-hover:hidden" }, D = /* @__PURE__ */ f({
4
4
  __name: "ContextBar",
5
5
  props: {
6
6
  sections: {},
7
7
  activeSection: {}
8
8
  },
9
9
  emits: ["setActiveSection"],
10
- setup(_) {
11
- return (e, g) => (n(), o("div", m, [
12
- i("div", v, [
13
- (n(!0), o(c, null, a(e.sections, (t) => (n(), o("button", {
14
- key: t,
15
- class: l(["hover:bg-b-2 rounded p-1 px-2 text-center font-medium w-fit whitespace-nowrap", [
16
- e.activeSection === t ? "text-c-1 pointer-events-none" : ""
17
- ]]),
18
- isActive: e.activeSection === t,
19
- type: "button",
20
- onClick: (b) => e.$emit("setActiveSection", t)
21
- }, s(t), 11, f))), 128)),
22
- i("div", h, [
23
- i("span", x, s(e.activeSection), 1),
24
- d(p(u), {
10
+ setup(c, { emit: d }) {
11
+ const u = c, p = d, m = x(), t = h({
12
+ get: () => u.activeSection,
13
+ set: (s) => p("setActiveSection", s)
14
+ });
15
+ return (s, o) => (r(), i("fieldset", q, [
16
+ o[1] || (o[1] = e("legend", { class: "sr-only" }, "Filter Sections", -1)),
17
+ e("div", B, [
18
+ (r(!0), i(g, null, _(s.sections, (n) => (r(), i("label", {
19
+ key: n,
20
+ class: b(["filter-hover-item flex items-center hover:bg-b-2 rounded p-1 px-2 cursor-pointer text-center font-medium w-fit whitespace-nowrap has-[:focus-visible]:outline", [t.value === n ? "text-c-1 pointer-events-none" : ""]])
21
+ }, [
22
+ y(l(n) + " ", 1),
23
+ S(e("input", {
24
+ "onUpdate:modelValue": o[0] || (o[0] = (v) => t.value = v),
25
+ class: "sr-only",
26
+ name: a(m),
27
+ type: "radio",
28
+ value: n
29
+ }, null, 8, C), [
30
+ [w, t.value]
31
+ ])
32
+ ], 2))), 128)),
33
+ e("div", F, [
34
+ e("span", N, l(t.value), 1),
35
+ k(a(V), {
25
36
  icon: "FilterList",
26
37
  size: "md",
27
38
  thickness: "2"
@@ -32,5 +43,5 @@ const m = { class: "hidden lg:flex ml-auto filter-hover context-bar-group lg:w-[
32
43
  }
33
44
  });
34
45
  export {
35
- y as default
46
+ D as default
36
47
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableCheckbox.vue"],"names":[],"mappings":"AAyDA,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;CAC1B,CAAC;;;;;;WADQ,MAAM,GAAG,QAAQ;;AA4G7B,wBASG"}
1
+ {"version":3,"file":"DataTableCheckbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableCheckbox.vue"],"names":[],"mappings":"AA0DA,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;CAC1B,CAAC;;;;;;WADQ,MAAM,GAAG,QAAQ;;AAsH7B,wBASG"}
@@ -1,8 +1,8 @@
1
- import { defineComponent as n, openBlock as s, createBlock as c, withCtx as i, createElementVNode as t, normalizeClass as d, unref as r, createVNode as f } from "vue";
2
- import { ScalarIcon as p } from "@scalar/components";
3
- import { cva as b } from "cva";
4
- import m from "./DataTableCell.vue.js";
5
- const u = ["checked", "disabled"], v = /* @__PURE__ */ n({
1
+ import { defineComponent as s, openBlock as n, createBlock as i, withCtx as c, createElementVNode as o, normalizeClass as d, unref as a, createVNode as p } from "vue";
2
+ import { ScalarIcon as u } from "@scalar/components";
3
+ import { cva as m } from "cva";
4
+ import f from "./DataTableCell.vue.js";
5
+ const b = ["checked", "disabled"], x = /* @__PURE__ */ s({
6
6
  __name: "DataTableCheckbox",
7
7
  props: {
8
8
  modelValue: { type: Boolean },
@@ -11,8 +11,8 @@ const u = ["checked", "disabled"], v = /* @__PURE__ */ n({
11
11
  },
12
12
  emits: ["update:modelValue"],
13
13
  setup(h) {
14
- const a = b({
15
- base: "w-8 h-8 flex items-center justify-center text-border peer-checked:text-c-2 pointer-events-none absolute before:absolute before:opacity-0 group-hover/cell:before:opacity-100 before:border before:rounded before:w-9/12 before:aspect-square before:top-1/2 before:left-1/2 before:transform before:-translate-x-1/2 before:-translate-y-1/2 before:border-[1px]",
14
+ const l = m({
15
+ base: "w-8 h-8 flex items-center justify-center text-border peer-checked:text-c-2 pointer-events-none absolute",
16
16
  variants: {
17
17
  align: {
18
18
  left: "left-0",
@@ -20,20 +20,20 @@ const u = ["checked", "disabled"], v = /* @__PURE__ */ n({
20
20
  }
21
21
  }
22
22
  });
23
- return (e, o) => (s(), c(m, { class: "group/cell relative flex min-w-8" }, {
24
- default: i(() => [
25
- t("input", {
23
+ return (e, t) => (n(), i(f, { class: "group/cell relative flex min-w-8" }, {
24
+ default: c(() => [
25
+ o("input", {
26
26
  checked: e.modelValue,
27
27
  class: "peer absolute inset-0 opacity-0 cursor-pointer",
28
28
  disabled: e.disabled,
29
- tabindex: "-1",
30
29
  type: "checkbox",
31
- onChange: o[0] || (o[0] = (l) => e.$emit("update:modelValue", l.target.checked))
32
- }, null, 40, u),
33
- t("div", {
34
- class: d(r(a)({ align: e.align }))
30
+ onChange: t[0] || (t[0] = (r) => e.$emit("update:modelValue", r.target.checked))
31
+ }, null, 40, b),
32
+ o("div", {
33
+ class: d(a(l)({ align: e.align }))
35
34
  }, [
36
- f(r(p), {
35
+ t[1] || (t[1] = o("div", { class: "absolute opacity-0 group-hover/cell:opacity-100 group-has-[:focus-visible]/cell:opacity-100 group-has-[:focus-visible]/cell:border-c-accent border-[1px] rounded size-3/4 m-auto" }, null, -1)),
36
+ p(a(u), {
37
37
  icon: "Checkmark",
38
38
  size: "xs",
39
39
  thickness: "2.5"
@@ -45,5 +45,5 @@ const u = ["checked", "disabled"], v = /* @__PURE__ */ n({
45
45
  }
46
46
  });
47
47
  export {
48
- v as default
48
+ x as default
49
49
  };
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"AAsLA,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,sEAAsE;IACtE,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,0EAA0E;IAC1E,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAC;AAqDJ,iBAAS,cAAc;WA8OT,OAAO,IAA6B;;yBAVrB,GAAG;yBACF,GAAG;sBACN,GAAG;;;;EAa7B;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;cAnUN,OAAO;2BAGM,OAAO;cACpB,OAAO;6EAuUpB,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":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"AAsLA,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,sEAAsE;IACtE,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,0EAA0E;IAC1E,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAC;AAqDJ,iBAAS,cAAc;WA4OT,OAAO,IAA6B;;yBAVrB,GAAG;yBACF,GAAG;sBACN,GAAG;;;;EAa7B;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;cAjUN,OAAO;2BAGM,OAAO;cACpB,OAAO;6EAqUpB,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,7 +1,7 @@
1
1
  import t from "./DataTableInput.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ o(t, [["__scopeId", "data-v-3ff02c4c"]]);
4
+ const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-8574d822"]]);
5
5
  export {
6
- r as default
6
+ m as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as V, ref as i, computed as k, openBlock as l, createBlock as u, normalizeClass as b, withCtx as g, createElementBlock as r, renderSlot as p, createCommentVNode as d, createElementVNode as C, Fragment as B, mergeProps as y, unref as $ } from "vue";
1
+ import { defineComponent as V, ref as i, computed as b, openBlock as l, createBlock as u, normalizeClass as k, withCtx as g, createElementBlock as r, renderSlot as p, createCommentVNode as d, createElementVNode as C, Fragment as B, mergeProps as f, unref as $ } from "vue";
2
2
  import h from "../CodeInput/CodeInput.vue.js";
3
3
  import { ScalarIconButton as x } from "@scalar/components";
4
4
  import O from "./DataTableCell.vue.js";
@@ -8,7 +8,7 @@ const A = {
8
8
  class: "text-c-1 flex min-w-[94px] items-center pl-2 pr-0"
9
9
  }, I = { class: "row-1 overflow-x-auto" }, E = ["id", "readOnly", "type", "value"], F = {
10
10
  key: 2,
11
- class: "absolute centered-y right-0 pt-px pr-2 text-xxs text-c-3 bg-b-1 shadow-[-8px_0_4px_var(--scalar-background-1)] opacity-100 duration-150 transition-opacity peer-focus:opacity-0"
11
+ class: "absolute centered-y right-2 pt-px text-xxs text-c-3 bg-b-1 shadow-[-8px_0_4px_var(--scalar-background-1)] opacity-100 duration-150 transition-opacity peer-has-[:focus-visible]:opacity-0"
12
12
  }, S = {
13
13
  key: 1,
14
14
  class: "absolute centered-y right-7 text-orange text-xs"
@@ -28,16 +28,16 @@ const A = {
28
28
  max: {}
29
29
  },
30
30
  emits: ["update:modelValue", "inputFocus", "inputBlur", "selectVariable"],
31
- setup(c, { emit: f }) {
32
- const o = c, s = f, n = i(!0);
31
+ setup(y, { emit: c }) {
32
+ const o = y, s = c, n = i(!0);
33
33
  i("");
34
34
  const v = i(!1), w = () => {
35
35
  v.value || s("inputBlur");
36
- }, m = k(
36
+ }, m = b(
37
37
  () => o.type === "password" ? n.value ? "password" : "text" : o.type ?? "text"
38
38
  );
39
39
  return (e, t) => (l(), u(O, {
40
- class: b(["relative row", e.containerClass])
40
+ class: k(["relative row", e.containerClass])
41
41
  }, {
42
42
  default: g(() => [
43
43
  e.$slots.default ? (l(), r("div", A, [
@@ -51,10 +51,10 @@ const A = {
51
51
  value: o.enum,
52
52
  "onUpdate:modelValue": t[0] || (t[0] = (a) => s("update:modelValue", a))
53
53
  }, null, 8, ["canAddCustomValue", "modelValue", "value"])) : (l(), r(B, { key: 1 }, [
54
- n.value && e.type === "password" ? (l(), r("input", y({ key: 0 }, e.$attrs, {
54
+ n.value && e.type === "password" ? (l(), r("input", f({ key: 0 }, e.$attrs, {
55
55
  id: e.id,
56
56
  autocomplete: "off",
57
- class: "border-none text-c-1 disabled:text-c-2 min-w-0 w-full peer px-2 py-1.25 outline-none",
57
+ class: "border-none text-c-1 disabled:text-c-2 min-w-0 w-full peer px-2 py-1.25 -outline-offset-2",
58
58
  "data-1p-ignore": "",
59
59
  readOnly: e.readOnly,
60
60
  spellcheck: "false",
@@ -64,9 +64,9 @@ const A = {
64
64
  "update:modelValue",
65
65
  a.target.value ?? ""
66
66
  ))
67
- }), null, 16, E)) : (l(), u(h, y({ key: 1 }, e.$attrs, {
67
+ }), null, 16, E)) : (l(), u(h, f({ key: 1 }, e.$attrs, {
68
68
  id: e.id,
69
- class: "border-none text-c-1 disabled:text-c-2 min-w-0 w-full peer outline-none",
69
+ class: "border-none text-c-1 disabled:text-c-2 min-w-0 w-full peer",
70
70
  disableCloseBrackets: "",
71
71
  disableTabIndent: "",
72
72
  max: e.max,
@@ -1 +1 @@
1
- {"version":3,"file":"EnvironmentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/EnvironmentSelector/EnvironmentSelector.vue"],"names":[],"mappings":";AA0YA,wBAMG"}
1
+ {"version":3,"file":"EnvironmentSelector.vue.d.ts","sourceRoot":"","sources":["../../../src/components/EnvironmentSelector/EnvironmentSelector.vue"],"names":[],"mappings":";AAwYA,wBAMG"}
@@ -1,8 +1,8 @@
1
- import { defineComponent as y, computed as S, openBlock as c, createElementBlock as f, createVNode as n, unref as e, withCtx as r, Fragment as N, renderList as D, createBlock as v, withModifiers as x, createElementVNode as s, normalizeClass as h, createTextVNode as d, toDisplayString as w, createCommentVNode as j } from "vue";
1
+ import { defineComponent as y, computed as S, openBlock as c, createElementBlock as f, createVNode as n, unref as e, withCtx as r, Fragment as N, renderList as D, createBlock as v, withModifiers as h, createElementVNode as s, normalizeClass as w, createTextVNode as d, toDisplayString as x, createCommentVNode as j } from "vue";
2
2
  import { ScalarDropdown as z, ScalarDropdownItem as u, ScalarIcon as l, ScalarDropdownDivider as B, ScalarButton as I } from "@scalar/components";
3
3
  import { useRouter as V } from "vue-router";
4
4
  import { useWorkspace as M } from "../../store/store.js";
5
- const W = { class: "font-medium m-0 text-xs flex gap-1.5 items-center whitespace-nowrap" }, $ = { class: "flex items-center justify-center h-4 w-4" }, A = /* @__PURE__ */ y({
5
+ const W = { class: "font-medium m-0 flex gap-1.5 items-center whitespace-nowrap" }, $ = { class: "flex items-center justify-center h-4 w-4" }, A = /* @__PURE__ */ y({
6
6
  __name: "EnvironmentSelector",
7
7
  setup(O) {
8
8
  const {
@@ -24,11 +24,11 @@ const W = { class: "font-medium m-0 text-xs flex gap-1.5 items-center whitespace
24
24
  (c(!0), f(N, null, D(b.value, (t) => (c(), v(e(u), {
25
25
  key: t.uid,
26
26
  class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
27
- onClick: x((R) => p(t.uid), ["stop"])
27
+ onClick: h((R) => p(t.uid), ["stop"])
28
28
  }, {
29
29
  default: r(() => [
30
30
  s("div", {
31
- class: h([
31
+ class: w([
32
32
  "flex items-center justify-center rounded-full p-[3px] w-4 h-4",
33
33
  e(i).activeEnvironmentId === t.uid ? "bg-c-accent text-b-1" : "group-hover/item:shadow-border text-transparent"
34
34
  ])
@@ -39,17 +39,17 @@ const W = { class: "font-medium m-0 text-xs flex gap-1.5 items-center whitespace
39
39
  thickness: "3.5"
40
40
  })
41
41
  ], 2),
42
- d(" " + w(t.name), 1)
42
+ d(" " + x(t.name), 1)
43
43
  ]),
44
44
  _: 2
45
45
  }, 1032, ["onClick"]))), 128)),
46
46
  n(e(u), {
47
47
  class: "flex gap-1.5 group/item items-center whitespace-nowrap text-ellipsis overflow-hidden",
48
- onClick: o[0] || (o[0] = x((t) => p(""), ["stop"]))
48
+ onClick: o[0] || (o[0] = h((t) => p(""), ["stop"]))
49
49
  }, {
50
50
  default: r(() => [
51
51
  s("div", {
52
- class: h([
52
+ class: w([
53
53
  "flex items-center justify-center rounded-full p-[3px] w-4 h-4",
54
54
  e(i).activeEnvironmentId === "" ? "bg-c-accent text-b-1" : "group-hover/item:shadow-border text-transparent"
55
55
  ])
@@ -92,7 +92,7 @@ const W = { class: "font-medium m-0 text-xs flex gap-1.5 items-center whitespace
92
92
  var t;
93
93
  return [
94
94
  s("h2", W, [
95
- d(w(((t = e(g)) == null ? void 0 : t.name) ?? "No Environment") + " ", 1),
95
+ d(x(((t = e(g)) == null ? void 0 : t.name) ?? "No Environment") + " ", 1),
96
96
  n(e(l), {
97
97
  class: "size-3",
98
98
  icon: "ChevronDown",
@@ -1,9 +1,9 @@
1
- import { defineComponent as m, openBlock as t, createBlock as o, withCtx as l, createElementBlock as n, toDisplayString as s, renderSlot as p, createElementVNode as c, Fragment as i, renderList as u, normalizeClass as f, createVNode as _, createTextVNode as k, createCommentVNode as y } from "vue";
2
- import h from "../DataTable/DataTable.vue.js";
3
- import V from "../DataTable/DataTableInput.vue.js";
1
+ import { defineComponent as m, openBlock as t, createBlock as a, withCtx as l, createElementBlock as n, toDisplayString as d, renderSlot as p, createElementVNode as c, Fragment as i, renderList as u, normalizeClass as f, createVNode as _, createTextVNode as k, createCommentVNode as y } from "vue";
2
+ import V from "../DataTable/DataTable.vue.js";
3
+ import h from "../DataTable/DataTableInput.vue.js";
4
4
  import b from "../DataTable/DataTableRow.vue.js";
5
5
  import g from "../ViewLayout/ViewLayoutSection.vue.js";
6
- const C = { key: 0 }, N = { class: "custom-scroll flex flex-1 flex-col gap-1.5 p-2 md:p-5" }, w = /* @__PURE__ */ m({
6
+ const C = { key: 0 }, N = { class: "custom-scroll flex flex-1 flex-col gap-1.5 p-2 md:p-5" }, E = /* @__PURE__ */ m({
7
7
  __name: "Form",
8
8
  props: {
9
9
  title: {},
@@ -11,30 +11,30 @@ const C = { key: 0 }, N = { class: "custom-scroll flex flex-1 flex-col gap-1.5 p
11
11
  data: {},
12
12
  onUpdate: { type: Function }
13
13
  },
14
- setup(U) {
15
- return (e, B) => (t(), o(g, null, {
14
+ setup(S) {
15
+ return (e, U) => (t(), a(g, null, {
16
16
  title: l(() => [
17
- e.title ? (t(), n("span", C, s(e.title), 1)) : p(e.$slots, "title", { key: 1 })
17
+ e.title ? (t(), n("span", C, d(e.title), 1)) : p(e.$slots, "title", { key: 1 })
18
18
  ]),
19
19
  default: l(() => [
20
20
  c("div", N, [
21
- Object.keys(e.data).length > 0 ? (t(), o(h, {
21
+ Object.keys(e.data).length > 0 ? (t(), a(V, {
22
22
  key: 0,
23
23
  columns: [""]
24
24
  }, {
25
25
  default: l(() => [
26
- (t(!0), n(i, null, u(e.options, (a, r) => (t(), o(b, {
26
+ (t(!0), n(i, null, u(e.options, (o, r) => (t(), a(b, {
27
27
  key: r,
28
28
  class: f({ "border-t": r === 0 })
29
29
  }, {
30
30
  default: l(() => [
31
- _(V, {
32
- modelValue: String(e.data[a.key] ?? ""),
33
- placeholder: a.placeholder,
34
- "onUpdate:modelValue": (d) => e.onUpdate(a.key, d)
31
+ _(h, {
32
+ modelValue: String(e.data[o.key] ?? ""),
33
+ placeholder: o.placeholder,
34
+ "onUpdate:modelValue": (s) => e.onUpdate(o.key, s)
35
35
  }, {
36
36
  default: l(() => [
37
- k(s(a.label), 1)
37
+ k(d(o.label), 1)
38
38
  ]),
39
39
  _: 2
40
40
  }, 1032, ["modelValue", "placeholder", "onUpdate:modelValue"])
@@ -51,5 +51,5 @@ const C = { key: 0 }, N = { class: "custom-scroll flex flex-1 flex-col gap-1.5 p
51
51
  }
52
52
  });
53
53
  export {
54
- w as default
54
+ E as default
55
55
  };
@@ -4,9 +4,9 @@ type __VLS_Props = {
4
4
  isEditable?: boolean;
5
5
  };
6
6
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
7
- change: (value: "connect" | "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace") => any;
7
+ change: (value: "head" | "delete" | "get" | "connect" | "options" | "patch" | "post" | "put" | "trace") => any;
8
8
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
9
- onChange?: ((value: "connect" | "delete" | "get" | "head" | "options" | "patch" | "post" | "put" | "trace") => any) | undefined;
9
+ onChange?: ((value: "head" | "delete" | "get" | "connect" | "options" | "patch" | "post" | "put" | "trace") => any) | undefined;
10
10
  }>, {
11
11
  isSquare: boolean;
12
12
  isEditable: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"ImportNowButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImportCollection/ImportNowButton.vue"],"names":[],"mappings":"AA8GA,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,OAAO,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAA;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAC;;;;;;AA6KF,wBAOG"}
1
+ {"version":3,"file":"ImportNowButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/ImportCollection/ImportNowButton.vue"],"names":[],"mappings":"AA+GA,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,OAAO,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAA;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAA;CACpB,CAAC;;;;;;AA8KF,wBAOG"}
@@ -1,5 +1,5 @@
1
- import { defineComponent as C, openBlock as s, createElementBlock as v, Fragment as b, createBlock as u, unref as m, withCtx as p, createTextVNode as c, createCommentVNode as g } from "vue";
2
- import { isUrl as x } from "./utils/isUrl.js";
1
+ import { defineComponent as C, openBlock as s, createElementBlock as v, Fragment as x, createBlock as u, unref as p, withCtx as m, createTextVNode as c, createCommentVNode as b } from "vue";
2
+ import { isUrl as g } from "./utils/isUrl.js";
3
3
  import { ScalarButton as l } from "@scalar/components";
4
4
  import { useToasts as B } from "@scalar/use-toasts";
5
5
  import { useRouter as F } from "vue-router";
@@ -13,15 +13,16 @@ const z = /* @__PURE__ */ C({
13
13
  },
14
14
  emits: ["importFinished"],
15
15
  setup(f, { emit: d }) {
16
- const o = f, k = d, w = F(), { importSpecFromUrl: y, importSpecFile: h, activeWorkspace: r } = I(), { toast: n } = B();
16
+ const o = f, y = d, k = F(), { importSpecFromUrl: w, importSpecFile: h, activeWorkspace: r } = I(), { toast: n } = B();
17
17
  async function i() {
18
18
  try {
19
19
  if (o.source) {
20
- if (x(o.source)) {
21
- const [e, t] = await y(
20
+ if (g(o.source)) {
21
+ const [e, t] = await w(
22
22
  o.source,
23
23
  r.value.uid,
24
24
  {
25
+ proxy: r.value.proxyUrl,
25
26
  watchMode: o.watchMode
26
27
  }
27
28
  );
@@ -33,7 +34,7 @@ const z = /* @__PURE__ */ C({
33
34
  );
34
35
  a(e);
35
36
  }
36
- n("Import successful", "info"), k("importFinished");
37
+ n("Import successful", "info"), y("importFinished");
37
38
  }
38
39
  } catch (e) {
39
40
  console.error("[importCollection]", e);
@@ -42,7 +43,7 @@ const z = /* @__PURE__ */ C({
42
43
  }
43
44
  }
44
45
  function a(e) {
45
- e && w.push({
46
+ e && k.push({
46
47
  name: "request",
47
48
  params: {
48
49
  workspace: r.value.uid,
@@ -50,19 +51,19 @@ const z = /* @__PURE__ */ C({
50
51
  }
51
52
  });
52
53
  }
53
- return (e, t) => e.source ? (s(), v(b, { key: 0 }, [
54
- e.variant === "button" ? (s(), u(m(l), {
54
+ return (e, t) => e.source ? (s(), v(x, { key: 0 }, [
55
+ e.variant === "button" ? (s(), u(p(l), {
55
56
  key: 0,
56
57
  class: "py-2.5 px-6 rounded-lg font-bold h-fit mt-3 w-full",
57
58
  size: "md",
58
59
  type: "button",
59
60
  onClick: i
60
61
  }, {
61
- default: p(() => t[0] || (t[0] = [
62
+ default: m(() => t[0] || (t[0] = [
62
63
  c(" Import Collection ")
63
64
  ])),
64
65
  _: 1
65
- })) : (s(), u(m(l), {
66
+ })) : (s(), u(p(l), {
66
67
  key: 1,
67
68
  class: "text-[21px] py-2.5 px-6 rounded-lg font-bold h-fit",
68
69
  size: "md",
@@ -70,12 +71,12 @@ const z = /* @__PURE__ */ C({
70
71
  variant: "ghost",
71
72
  onClick: i
72
73
  }, {
73
- default: p(() => t[1] || (t[1] = [
74
+ default: m(() => t[1] || (t[1] = [
74
75
  c(" Try it in the browser ")
75
76
  ])),
76
77
  _: 1
77
78
  }))
78
- ], 64)) : g("", !0);
79
+ ], 64)) : b("", !0);
79
80
  }
80
81
  });
81
82
  export {
@@ -11,6 +11,7 @@ export declare function useSearch(): {
11
11
  httpVerb: string;
12
12
  id: string;
13
13
  path: string;
14
+ link: string;
14
15
  }>[]>;
15
16
  selectedSearchResult: import("vue").Ref<number, number>;
16
17
  onSearchResultClick: (entry: FuseResult<{
@@ -19,6 +20,7 @@ export declare function useSearch(): {
19
20
  httpVerb: string;
20
21
  id: string;
21
22
  path: string;
23
+ link: string;
22
24
  }>) => void;
23
25
  fuseSearch: () => void;
24
26
  searchInputRef: import("vue").Ref<HTMLInputElement | null, HTMLInputElement | null>;
@@ -1 +1 @@
1
- {"version":3,"file":"useSearch.d.ts","sourceRoot":"","sources":["../../../src/components/Search/useSearch.ts"],"names":[],"mappings":"AAEA,OAAa,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAA;AAI/C;;;GAGG;AACH,wBAAgB,SAAS;;;eAKd,MAAM;qBACA,MAAM;kBACT,MAAM;YACZ,MAAM;cACJ,MAAM;;;iCA4EsB,UAAU;eAhFrC,MAAM;qBACA,MAAM;kBACT,MAAM;YACZ,MAAM;cACJ,MAAM;MA4E0C;sBA1CjC,IAAI;;;uCAKe,IAAI,GAAG,MAAM;;EAmExD"}
1
+ {"version":3,"file":"useSearch.d.ts","sourceRoot":"","sources":["../../../src/components/Search/useSearch.ts"],"names":[],"mappings":"AAEA,OAAa,EAAE,KAAK,UAAU,EAAE,MAAM,SAAS,CAAA;AAI/C;;;GAGG;AACH,wBAAgB,SAAS;;;eAKd,MAAM;qBACA,MAAM;kBACT,MAAM;YACZ,MAAM;cACJ,MAAM;cACN,MAAM;;;iCA6EsB,UAAU;eAlFrC,MAAM;qBACA,MAAM;kBACT,MAAM;YACZ,MAAM;cACJ,MAAM;cACN,MAAM;MA6E0C;sBA1CjC,IAAI;;;uCAKe,IAAI,GAAG,MAAM;;EAmExD"}
@@ -1,11 +1,11 @@
1
- import g from "fuse.js";
2
- import { ref as a, watch as T, computed as w, nextTick as x } from "vue";
1
+ import w from "fuse.js";
2
+ import { ref as a, watch as T, computed as W, nextTick as x } from "vue";
3
3
  import { useRouter as I } from "vue-router";
4
- import { useWorkspace as W } from "../../store/store.js";
5
- function F() {
6
- const p = I(), { activeWorkspaceRequests: f, requests: d } = W(), o = a([]), c = a([]), s = a(0), u = a(""), l = a(null), r = a([]), i = new g(o.value, {
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, {
7
7
  keys: ["title", "description", "body"]
8
- }), R = () => {
8
+ }), k = () => {
9
9
  u.value = "", s.value = 0, c.value = [], l.value instanceof HTMLInputElement && l.value.blur();
10
10
  }, S = (t) => {
11
11
  o.value = t.map((e) => ({
@@ -13,50 +13,51 @@ function F() {
13
13
  title: e.summary ?? e.method,
14
14
  description: e.description ?? "",
15
15
  httpVerb: e.method,
16
- path: e.path
16
+ path: e.path,
17
+ link: `/workspace/${f.value.uid}/request/${e.uid}`
17
18
  })), i.setCollection(o.value);
18
- }, k = () => {
19
+ }, b = () => {
19
20
  s.value = 0, c.value = i.search(u.value);
20
- }, b = (t) => {
21
- const e = t === "up" ? -1 : 1, v = n.value.length;
21
+ }, y = (t) => {
22
+ const e = t === "up" ? -1 : 1, v = r.value.length;
22
23
  s.value = (s.value + e + v) % v, x(() => {
23
- const m = r.value[s.value];
24
- m instanceof HTMLElement && m.scrollIntoView({
24
+ const p = n.value[s.value];
25
+ p instanceof HTMLElement && p.scrollIntoView({
25
26
  behavior: "smooth",
26
27
  block: "center"
27
28
  });
28
29
  });
29
- }, y = () => {
30
+ }, g = () => {
30
31
  s.value >= 0 && h(
31
- n.value[s.value]
32
+ r.value[s.value]
32
33
  );
33
34
  };
34
35
  T(
35
- f,
36
+ d,
36
37
  (t) => {
37
- S(t.map((e) => d[e]));
38
+ S(t.map((e) => R[e]));
38
39
  },
39
40
  { immediate: !0 }
40
41
  );
41
42
  const h = (t) => {
42
- p.push(t.item.id), R();
43
- }, n = w(
43
+ m.push(t.item.id), k();
44
+ }, r = W(
44
45
  () => u.value.length === 0 ? o.value.map((t) => ({
45
46
  item: t
46
47
  })) : c.value
47
48
  );
48
49
  return {
49
50
  searchText: u,
50
- searchResultsWithPlaceholderResults: n,
51
+ searchResultsWithPlaceholderResults: r,
51
52
  selectedSearchResult: s,
52
53
  onSearchResultClick: h,
53
- fuseSearch: k,
54
+ fuseSearch: b,
54
55
  searchInputRef: l,
55
- searchResultRefs: r,
56
- navigateSearchResults: b,
57
- selectSearchResult: y
56
+ searchResultRefs: n,
57
+ navigateSearchResults: y,
58
+ selectSearchResult: g
58
59
  };
59
60
  }
60
61
  export {
61
- F as useSearch
62
+ H as useSearch
62
63
  };
@@ -0,0 +1,3 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
3
+ //# sourceMappingURL=DownloadAppButton.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DownloadAppButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/DownloadAppButton.vue"],"names":[],"mappings":";AA6IA,wBAMG"}
@@ -0,0 +1,7 @@
1
+ import o from "./DownloadAppButton.vue2.js";
2
+ /* empty css */
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c896207d"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -0,0 +1,33 @@
1
+ import { defineComponent as e, openBlock as a, createBlock as m, withCtx as o, createVNode as s, unref as t, createElementVNode as r, normalizeClass as c } from "vue";
2
+ import p from "./SideNavLink.vue.js";
3
+ import { ScalarIcon as l } from "@scalar/components";
4
+ import { useLayout as i } from "../../hooks/useLayout.js";
5
+ const h = /* @__PURE__ */ e({
6
+ __name: "DownloadAppButton",
7
+ setup(u) {
8
+ const { layout: n } = i();
9
+ return (d, _) => (a(), m(p, {
10
+ class: "download-app-button sm:px-3 gap-2 !px-3 !py-1.5",
11
+ href: "https://scalar.com/download?utm_source=web_client&utm_medium=download_button&utm_campaign=topnav",
12
+ icon: "Download",
13
+ target: "_blank"
14
+ }, {
15
+ icon: o(() => [
16
+ s(t(l), {
17
+ icon: "Download",
18
+ size: "sm",
19
+ thickness: "2"
20
+ })
21
+ ]),
22
+ default: o(() => [
23
+ r("span", {
24
+ class: c(["text-sm font-medium sr-only", { "sm:not-sr-only": t(n) === "web" }])
25
+ }, " Download App ", 2)
26
+ ]),
27
+ _: 1
28
+ }));
29
+ }
30
+ });
31
+ export {
32
+ h as default
33
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"SideHelp.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideHelp.vue"],"names":[],"mappings":";AAgUA,wBAMG"}
1
+ {"version":3,"file":"SideHelp.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SideNav/SideHelp.vue"],"names":[],"mappings":";AA2TA,wBAMG"}