@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
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.1.46
4
+
5
+ ### Patch Changes
6
+
7
+ - ecdf18d: style(api-client: link to scalar on client + fix some visual bugs
8
+ - caa45c9: feat(api-client): change sidenav to header only for web api client view
9
+ - 9eb6650: feat: add support for the x-defaultClientId extension
10
+ - 4a3c873: fix: adds missing hover in context bar
11
+ - 15a47e6: feat: indicate which auth is required
12
+ - 576e94a: fix: remove loop from media response
13
+ - 09a6fba: fix: add missing proxy on import modal
14
+ - be50225: fix: improve API client modal accessibility
15
+ - 0a0ca71: style(api-client): make roadmap button slightly more prominent
16
+ - Updated dependencies [4bcaa75]
17
+ - Updated dependencies [9eb6650]
18
+ - Updated dependencies [c98a99c]
19
+ - Updated dependencies [c98a99c]
20
+ - Updated dependencies [be50225]
21
+ - @scalar/oas-utils@0.2.72
22
+ - @scalar/import@0.1.0
23
+ - @scalar/components@0.12.66
24
+ - @scalar/use-codemirror@0.11.33
25
+
3
26
  ## 2.1.45
4
27
 
5
28
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBar.vue"],"names":[],"mappings":";;;;;AAkwBA,wBAMG"}
1
+ {"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBar.vue"],"names":[],"mappings":";;;;;AAgxBA,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./AddressBar.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-1dd69544"]]);
4
+ const s = /* @__PURE__ */ r(o, [["__scopeId", "data-v-0d3d8fab"]]);
5
5
  export {
6
- a as default
6
+ s as default
7
7
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as H, ref as u, watch as L, onMounted as z, onBeforeUnmount as K, unref as o, openBlock as O, createElementBlock as A, createElementVNode as r, createVNode as n, withCtx as w, normalizeClass as C, normalizeStyle as N, createCommentVNode as T } from "vue";
1
+ import { defineComponent as H, ref as u, watch as L, onMounted as z, onBeforeUnmount as K, unref as a, openBlock as O, createElementBlock as A, createElementVNode as o, createVNode as n, withCtx as w, normalizeClass as y, normalizeStyle as N, createCommentVNode as T } from "vue";
2
2
  import $ from "../CodeInput/CodeInput.vue.js";
3
- import { Listbox as D } from "@headlessui/vue";
4
- import { ScalarButton as P, ScalarIcon as Q } from "@scalar/components";
3
+ import { Listbox as P } from "@headlessui/vue";
4
+ import { ScalarButton as D, ScalarIcon as Q } from "@scalar/components";
5
5
  import { REQUEST_METHODS as W } from "@scalar/oas-utils/helpers";
6
6
  import { isMacOS as j } from "@scalar/use-tooltip";
7
7
  import { useMagicKeys as F, whenever as G } from "@vueuse/core";
@@ -12,131 +12,139 @@ import { useWorkspace as Z } from "../../store/store.js";
12
12
  const ee = {
13
13
  key: 0,
14
14
  class: "order-last lg:order-none lg:w-auto w-full"
15
- }, te = { class: "m-auto flex flex-row items-center" }, le = { class: "pointer-events-none absolute left-0 top-0 block h-full w-full overflow-hidden" }, oe = { class: "flex gap-1" }, re = { class: "codemirror-bg-switcher scroll-timeline-x scroll-timeline-x-hidden relative flex w-full" }, xe = /* @__PURE__ */ H({
15
+ }, te = { class: "m-auto flex flex-row items-center" }, le = { class: "pointer-events-none absolute left-0 top-0 block h-full w-full overflow-hidden" }, oe = { class: "flex gap-1" }, ae = { class: "codemirror-bg-switcher scroll-timeline-x scroll-timeline-x-hidden relative flex w-full" }, re = {
16
+ "aria-hidden": "true",
17
+ class: "inline-flex gap-1 items-center"
18
+ }, be = /* @__PURE__ */ H({
16
19
  __name: "AddressBar",
17
20
  emits: ["importCurl"],
18
- setup(ae) {
21
+ setup(se) {
19
22
  const {
20
- activeRequest: t,
21
- activeExample: _,
22
- activeServer: y,
23
- isReadOnly: v,
23
+ activeRequest: l,
24
+ activeExample: C,
25
+ activeServer: _,
26
+ isReadOnly: c,
24
27
  requestMutators: m,
25
- requestHistory: k,
28
+ requestHistory: R,
26
29
  events: d
27
- } = Z(), c = u(k[0]), p = u(null), h = F();
30
+ } = Z(), v = u(R[0]), p = u(null), h = F();
28
31
  G(
29
32
  j() ? h.meta_enter : h.ctrl_enter,
30
33
  () => d.executeRequest.emit()
31
34
  );
32
- const R = (e) => {
33
- !t.value || t.value.path === e || m.edit(t.value.uid, "path", e);
35
+ const k = (e) => {
36
+ !l.value || l.value.path === e || m.edit(l.value.uid, "path", e);
34
37
  };
35
38
  L(
36
39
  () => {
37
40
  var e;
38
- return (e = t.value) == null ? void 0 : e.path;
41
+ return (e = l.value) == null ? void 0 : e.path;
39
42
  },
40
43
  (e) => {
41
- !t.value || !e || R(e);
44
+ !l.value || !e || k(e);
42
45
  }
43
46
  );
44
- const a = u(100), x = u(0), s = u(!1), i = u();
47
+ const r = u(100), x = u(0), s = u(!1), i = u();
45
48
  function q() {
46
- s.value ? a.value -= (a.value - 15) / 60 : a.value -= x.value / 20, a.value <= 0 && (clearInterval(i.value), i.value = void 0, a.value = 100, s.value = !1);
49
+ s.value ? r.value -= (r.value - 15) / 60 : r.value -= x.value / 20, r.value <= 0 && (clearInterval(i.value), i.value = void 0, r.value = 100, s.value = !1);
47
50
  }
48
51
  function B() {
49
52
  i.value || (s.value = !0, i.value = setInterval(q, 20));
50
53
  }
51
- function E() {
52
- x.value = a.value, s.value = !1;
53
- }
54
54
  function S() {
55
- clearInterval(i.value), i.value = void 0, a.value = 100, s.value = !1;
55
+ x.value = r.value, s.value = !1;
56
+ }
57
+ function E() {
58
+ clearInterval(i.value), i.value = void 0, r.value = 100, s.value = !1;
56
59
  }
57
60
  d.requestStatus.on((e) => {
58
- e === "start" && B(), e === "stop" && E(), e === "abort" && S();
61
+ e === "start" && B(), e === "stop" && S(), e === "abort" && E();
59
62
  });
60
63
  function V(e) {
61
- t.value && m.edit(t.value.uid, "method", e);
64
+ l.value && m.edit(l.value.uid, "method", e);
62
65
  }
63
66
  function M() {
64
- if (!t.value) return;
65
- const { method: e } = t.value;
67
+ if (!l.value) return;
68
+ const { method: e } = l.value;
66
69
  return W[e].backgroundColor;
67
70
  }
68
71
  function b() {
69
72
  s.value || (s.value = !0, d.executeRequest.emit());
70
73
  }
71
74
  function I(e) {
72
- t.value && m.edit(t.value.uid, "path", e);
75
+ l.value && m.edit(l.value.uid, "path", e);
73
76
  }
74
77
  function g(e) {
75
- var l;
76
- e != null && e.focusAddressBar && ((l = p.value) == null || l.focus());
78
+ var t;
79
+ e != null && e.focusAddressBar && ((t = p.value) == null || t.focus());
77
80
  }
78
- return z(() => d.hotKeys.on(g)), K(() => d.hotKeys.off(g)), (e, l) => o(t) && o(_) ? (O(), A("div", ee, [
79
- r("div", te, [
80
- n(o(D), {
81
- modelValue: c.value,
82
- "onUpdate:modelValue": l[1] || (l[1] = (f) => c.value = f)
81
+ return z(() => d.hotKeys.on(g)), K(() => d.hotKeys.off(g)), (e, t) => a(l) && a(C) ? (O(), A("div", ee, [
82
+ o("div", te, [
83
+ n(a(P), {
84
+ modelValue: v.value,
85
+ "onUpdate:modelValue": t[1] || (t[1] = (f) => v.value = f)
83
86
  }, {
84
87
  default: w(({ open: f }) => [
85
- r("div", {
86
- class: C([
88
+ o("div", {
89
+ class: y([
87
90
  "addressbar-bg-states text-xxs relative flex w-full lg:min-w-[720px] lg:max-w-[720px] order-last overflow-hidden lg:order-none flex-1 flex-row items-stretch rounded-lg border-1/2 p-[3px]",
88
91
  { "border-transparent overflow-visible rounded-b-none": f }
89
92
  ])
90
93
  }, [
91
- r("div", le, [
92
- r("div", {
93
- class: C(["bg-mix-transparent bg-mix-amount-90 absolute left-0 top-0 h-full w-full z-context", M()]),
94
- style: N({ transform: `translate3d(-${a.value}%,0,0)` })
94
+ o("div", le, [
95
+ o("div", {
96
+ class: y(["bg-mix-transparent bg-mix-amount-90 absolute left-0 top-0 h-full w-full z-context", M()]),
97
+ style: N({ transform: `translate3d(-${r.value}%,0,0)` })
95
98
  }, null, 6)
96
99
  ]),
97
- r("div", oe, [
100
+ o("div", oe, [
98
101
  n(J, {
99
- isEditable: !o(v),
102
+ isEditable: !a(c),
100
103
  isSquare: "",
101
- method: o(t).method,
104
+ method: a(l).method,
102
105
  teleport: ".scalar-client",
103
106
  onChange: V
104
107
  }, null, 8, ["isEditable", "method"])
105
108
  ]),
106
- r("div", re, [
107
- l[2] || (l[2] = r("div", { class: "fade-left" }, null, -1)),
109
+ o("div", ae, [
110
+ t[2] || (t[2] = o("div", { class: "fade-left" }, null, -1)),
108
111
  n(Y),
109
112
  n($, {
110
113
  ref_key: "addressBarRef",
111
114
  ref: p,
115
+ "aria-label": "Path",
116
+ class: "outline-none",
112
117
  disableCloseBrackets: "",
113
- disabled: o(v),
118
+ disabled: a(c),
114
119
  disableEnter: "",
115
120
  disableTabIndent: "",
116
121
  emitOnBlur: !1,
117
122
  importCurl: "",
118
- modelValue: o(t).path,
119
- placeholder: o(y) ? "" : "Enter a URL or cURL command",
123
+ modelValue: a(l).path,
124
+ placeholder: a(_) ? "" : "Enter a URL or cURL command",
120
125
  server: "",
121
- onCurl: l[0] || (l[0] = (U) => e.$emit("importCurl", U)),
126
+ onCurl: t[0] || (t[0] = (U) => e.$emit("importCurl", U)),
122
127
  onSubmit: b,
123
128
  "onUpdate:modelValue": I
124
129
  }, null, 8, ["disabled", "modelValue", "placeholder"]),
125
- l[3] || (l[3] = r("div", { class: "fade-right" }, null, -1))
130
+ t[3] || (t[3] = o("div", { class: "fade-right" }, null, -1))
126
131
  ]),
127
132
  n(X, { open: f }, null, 8, ["open"]),
128
- n(o(P), {
129
- class: "relative h-auto shrink-0 gap-1 overflow-hidden pl-2 pr-2.5 py-1 font-bold",
133
+ n(a(D), {
134
+ class: "relative h-auto shrink-0 overflow-hidden pl-2 pr-2.5 py-1 font-bold",
130
135
  disabled: s.value,
131
136
  onClick: b
132
137
  }, {
133
138
  default: w(() => [
134
- n(o(Q), {
135
- class: "relative shrink-0 fill-current",
136
- icon: "Play",
137
- size: "xs"
138
- }),
139
- l[4] || (l[4] = r("span", { class: "text-xxs relative lg:flex hidden" }, "Send", -1))
139
+ o("span", re, [
140
+ n(a(Q), {
141
+ class: "relative shrink-0 fill-current",
142
+ icon: "Play",
143
+ size: "xs"
144
+ }),
145
+ t[4] || (t[4] = o("span", { class: "text-xxs lg:flex hidden" }, "Send", -1))
146
+ ]),
147
+ t[5] || (t[5] = o("span", { class: "sr-only" }, " Send Request ", -1))
140
148
  ]),
141
149
  _: 1
142
150
  }, 8, ["disabled"])
@@ -149,5 +157,5 @@ const ee = {
149
157
  }
150
158
  });
151
159
  export {
152
- xe as default
160
+ be as default
153
161
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./AddressBarHistory.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-0e166ebf"]]);
4
+ const c = /* @__PURE__ */ r(o, [["__scopeId", "data-v-9c5cf81b"]]);
5
5
  export {
6
- a as default
6
+ c as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as C, computed as q, openBlock as u, createElementBlock as b, Fragment as h, createBlock as c, unref as o, withCtx as i, createVNode as x, createCommentVNode as v, createElementVNode as r, normalizeClass as g, renderList as B, toDisplayString as l } from "vue";
1
+ import { defineComponent as C, computed as q, openBlock as u, createElementBlock as b, Fragment as h, createBlock as i, unref as o, withCtx as c, createVNode as x, createCommentVNode as v, createElementVNode as r, normalizeClass as g, renderList as B, toDisplayString as l } from "vue";
2
2
  import { formatMs as H } from "../../libs/formatters.js";
3
3
  import { ListboxButton as y, ListboxOptions as L, ListboxOption as S } from "@headlessui/vue";
4
4
  import { ScalarIcon as z } from "@scalar/components";
@@ -29,11 +29,11 @@ const $ = { class: "min-w-0" }, I = { class: "min-w-0 truncate text-c-1" }, P =
29
29
  return (t, s) => {
30
30
  var n;
31
31
  return u(), b(h, null, [
32
- (n = m.value) != null && n.length ? (u(), c(o(y), {
32
+ (n = m.value) != null && n.length ? (u(), i(o(y), {
33
33
  key: 0,
34
34
  class: "addressbar-history-button mr-1 rounded-lg p-1.5 text-c-3 focus:text-c-1"
35
35
  }, {
36
- default: i(() => [
36
+ default: c(() => [
37
37
  x(o(z), {
38
38
  icon: "History",
39
39
  size: "sm",
@@ -49,17 +49,17 @@ const $ = { class: "min-w-0" }, I = { class: "min-w-0 truncate text-c-1" }, P =
49
49
  ])
50
50
  }, [
51
51
  x(o(L), { class: "bg-b-1 border-t custom-scroll max-h-[300px] rounded-b-lg p-[3px] grid grid-cols-[44px,1fr,repeat(3,auto)] items-center" }, {
52
- default: i(() => [
53
- (u(!0), b(h, null, B(m.value, (e, f) => (u(), c(o(S), {
52
+ default: c(() => [
53
+ (u(!0), b(h, null, B(m.value, (e, f) => (u(), i(o(S), {
54
54
  key: f,
55
- class: "contents font-code text-sm *:rounded-none first:*:rounded-l last:*:rounded-r *:h-8 *:hover:bg-b-2 *:flex *:items-center *:cursor-pointer *:px-1.5 text-c-2 font-medium",
55
+ class: "contents font-code text-sm *:rounded-none first:*:rounded-l last:*:rounded-r *:h-8 *:ui-active:bg-b-2 *:flex *:items-center *:cursor-pointer *:px-1.5 text-c-2 font-medium",
56
56
  value: f,
57
57
  onClick: (a) => w(e)
58
58
  }, {
59
- default: i(() => {
59
+ default: c(() => {
60
60
  var a;
61
61
  return [
62
- e.response.method ? (u(), c(N, {
62
+ e.response.method ? (u(), i(N, {
63
63
  key: 0,
64
64
  class: "text-[11px]",
65
65
  method: e.response.method
@@ -1 +1 @@
1
- {"version":3,"file":"AddressBarServer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBarServer.vue"],"names":[],"mappings":";AA8WA,wBAKG"}
1
+ {"version":3,"file":"AddressBarServer.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBarServer.vue"],"names":[],"mappings":";AAiXA,wBAKG"}
@@ -1,103 +1,106 @@
1
- import { defineComponent as O, computed as c, watch as R, openBlock as l, createBlock as S, unref as n, withCtx as w, createElementBlock as o, createCommentVNode as v, Fragment as m, renderList as g, createVNode as p, createElementVNode as i, withModifiers as V, toDisplayString as b } from "vue";
1
+ import { defineComponent as V, computed as u, watch as O, openBlock as l, createBlock as S, unref as n, withCtx as w, createElementBlock as o, createCommentVNode as v, Fragment as m, renderList as g, createVNode as p, createElementVNode as a, createTextVNode as R, toDisplayString as b } from "vue";
2
2
  import { ScalarDropdown as W, ScalarDropdownDivider as C, ScalarDropdownItem as E, ScalarIcon as I } from "@scalar/components";
3
3
  import D from "./AddressBarServerItem.vue.js";
4
4
  import { useWorkspace as L } from "../../store/store.js";
5
- const M = {
5
+ const T = {
6
+ class: "font-code lg:text-sm text-xs whitespace-nowrap border border-b-3 border-solid rounded px-1.5 py-0.5 text-c-2 -outline-offset-1",
7
+ type: "button"
8
+ }, j = {
6
9
  key: 0,
7
10
  class: "text-xxs text-c-2 ml-8"
8
- }, j = { class: "flex items-center justify-center h-4 w-4" }, F = {
11
+ }, F = { class: "flex items-center justify-center h-4 w-4" }, M = {
9
12
  key: 1,
10
13
  class: "flex whitespace-nowrap items-center font-code lg:text-sm text-xs"
11
- }, G = /* @__PURE__ */ O({
14
+ }, H = /* @__PURE__ */ V({
12
15
  __name: "AddressBarServer",
13
16
  setup(P) {
14
17
  const {
15
- activeRequest: k,
18
+ activeRequest: y,
16
19
  activeCollection: h,
17
20
  activeServer: x,
18
21
  isReadOnly: A,
19
- servers: y,
20
- collectionMutators: B,
21
- events: N
22
- } = L(), d = c(
22
+ servers: k,
23
+ collectionMutators: N,
24
+ events: B
25
+ } = L(), c = u(
23
26
  () => {
24
27
  var t, e;
25
- return (e = (t = k.value) == null ? void 0 : t.servers) == null ? void 0 : e.map((r) => {
28
+ return (e = (t = y.value) == null ? void 0 : t.servers) == null ? void 0 : e.map((r) => {
26
29
  var s;
27
30
  return {
28
31
  id: r,
29
- label: ((s = y[r]) == null ? void 0 : s.url) ?? "Unknown server"
32
+ label: ((s = k[r]) == null ? void 0 : s.url) ?? "Unknown server"
30
33
  };
31
34
  });
32
35
  }
33
- ), u = c(
36
+ ), i = u(
34
37
  () => {
35
38
  var t, e;
36
39
  return (e = (t = h.value) == null ? void 0 : t.servers) == null ? void 0 : e.map((r) => {
37
40
  var s;
38
41
  return {
39
42
  id: r,
40
- label: ((s = y[r]) == null ? void 0 : s.url) ?? "Unknown server"
43
+ label: ((s = k[r]) == null ? void 0 : s.url) ?? "Unknown server"
41
44
  };
42
45
  });
43
46
  }
44
- ), _ = c(
47
+ ), _ = u(
45
48
  () => {
46
49
  var t, e;
47
- return ((t = d.value) == null ? void 0 : t.length) && ((e = u.value) == null ? void 0 : e.length);
50
+ return ((t = c.value) == null ? void 0 : t.length) && ((e = i.value) == null ? void 0 : e.length);
48
51
  }
49
52
  );
50
- R([h, k], ([t, e]) => {
51
- !t || t.selectedServerUid || e != null && e.selectedServerUid || B.edit(
53
+ O([h, y], ([t, e]) => {
54
+ !t || t.selectedServerUid || e != null && e.selectedServerUid || N.edit(
52
55
  t.uid,
53
56
  "selectedServerUid",
54
57
  t.servers[0]
55
58
  );
56
59
  });
57
- const U = () => N.commandPalette.emit({
60
+ const U = () => B.commandPalette.emit({
58
61
  commandName: "Add Server"
59
- }), f = c(() => {
62
+ }), f = u(() => {
60
63
  var t, e, r;
61
64
  return (e = (t = x.value) == null ? void 0 : t.url) != null && e.endsWith("/") ? x.value.url.slice(0, -1) : ((r = x.value) == null ? void 0 : r.url) || "";
62
65
  });
63
66
  return (t, e) => {
64
67
  var r, s;
65
- return d.value && ((r = d.value) == null ? void 0 : r.length) > 1 || u.value && ((s = u.value) == null ? void 0 : s.length) > 1 ? (l(), S(n(W), {
68
+ return c.value && ((r = c.value) == null ? void 0 : r.length) > 1 || i.value && ((s = i.value) == null ? void 0 : s.length) > 1 ? (l(), S(n(W), {
66
69
  key: 0,
67
70
  class: "w-max",
68
71
  teleport: ".scalar-client"
69
72
  }, {
70
73
  items: w(() => [
71
- _.value ? (l(), o("div", M, " Request Servers ")) : v("", !0),
72
- (l(!0), o(m, null, g(d.value, (a) => (l(), S(D, {
73
- key: a.id,
74
- serverOption: a,
74
+ _.value ? (l(), o("div", j, " Request Servers ")) : v("", !0),
75
+ (l(!0), o(m, null, g(c.value, (d) => (l(), S(D, {
76
+ key: d.id,
77
+ serverOption: d,
75
78
  type: "request"
76
79
  }, null, 8, ["serverOption"]))), 128)),
77
80
  _.value ? (l(), o(m, { key: 1 }, [
78
81
  p(n(C)),
79
- e[1] || (e[1] = i("div", { class: "text-xxs text-c-2 ml-8" }, "Collection Servers", -1))
82
+ e[1] || (e[1] = a("div", { class: "text-xxs text-c-2 ml-8" }, "Collection Servers", -1))
80
83
  ], 64)) : v("", !0),
81
- (l(!0), o(m, null, g(u.value, (a) => (l(), S(D, {
82
- key: a.id,
83
- serverOption: a,
84
+ (l(!0), o(m, null, g(i.value, (d) => (l(), S(D, {
85
+ key: d.id,
86
+ serverOption: d,
84
87
  type: "collection"
85
88
  }, null, 8, ["serverOption"]))), 128)),
86
89
  n(A) ? v("", !0) : (l(), o(m, { key: 2 }, [
87
90
  p(n(C)),
88
91
  p(n(E), null, {
89
92
  default: w(() => [
90
- i("div", {
93
+ a("div", {
91
94
  class: "font-code text-xxs flex items-center gap-1.5",
92
95
  onClick: U
93
96
  }, [
94
- i("div", j, [
97
+ a("div", F, [
95
98
  p(n(I), {
96
99
  class: "h-2.5",
97
100
  icon: "Add"
98
101
  })
99
102
  ]),
100
- e[2] || (e[2] = i("span", null, "Add Server", -1))
103
+ e[2] || (e[2] = a("span", null, "Add Server", -1))
101
104
  ])
102
105
  ]),
103
106
  _: 1
@@ -105,18 +108,16 @@ const M = {
105
108
  ], 64))
106
109
  ]),
107
110
  default: w(() => [
108
- i("button", {
109
- class: "font-code lg:text-sm text-xs whitespace-nowrap border border-b-3 border-solid rounded px-1.5 py-0.5 text-c-2",
110
- type: "button",
111
- onClick: e[0] || (e[0] = V(() => {
112
- }, ["stop"]))
113
- }, b(f.value), 1)
111
+ a("button", T, [
112
+ e[0] || (e[0] = a("span", { class: "sr-only" }, "Server:", -1)),
113
+ R(" " + b(f.value), 1)
114
+ ])
114
115
  ]),
115
116
  _: 1
116
- })) : f.value ? (l(), o("div", F, b(f.value), 1)) : v("", !0);
117
+ })) : f.value ? (l(), o("div", M, b(f.value), 1)) : v("", !0);
117
118
  };
118
119
  }
119
120
  });
120
121
  export {
121
- G as default
122
+ H as default
122
123
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/CodeInput.vue"],"names":[],"mappings":"AAAA,OAqcO,EAGL,KAAK,kBAAkB,EAGxB,MAAM,wBAAwB,CAAA;;kBAiBb,OAAO;gBACT,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;WACR,MAAM;eACF,OAAO;oBACF,OAAO;iBACV,OAAO;iBACP,OAAO;cACV,MAAM,GAAG,MAAM;;;;;;;;kBApBX,OAAO;gBACT,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;WACR,MAAM;eACF,OAAO;oBACF,OAAO;iBACV,OAAO;iBACP,OAAO;cACV,MAAM,GAAG,MAAM;;;;;;gBAjBZ,OAAO;iBAHN,OAAO;sBAMF,OAAO;kBAMX,OAAO;0BACC,OAAO;cAGnB,OAAO;mBACF,OAAO;gBAEV,OAAO;;qBA+YM,GAAG;kBACN,GAAG;;AAta9B,wBAoeC;AAgBD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/CodeInput.vue"],"names":[],"mappings":"AAAA,OAqcO,EAGL,KAAK,kBAAkB,EAGxB,MAAM,wBAAwB,CAAA;;kBAiBb,OAAO;gBACT,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;WACR,MAAM;eACF,OAAO;oBACF,OAAO;iBACV,OAAO;iBACP,OAAO;cACV,MAAM,GAAG,MAAM;;;;;;;;kBApBX,OAAO;gBACT,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;WACR,MAAM;eACF,OAAO;oBACF,OAAO;iBACV,OAAO;iBACP,OAAO;cACV,MAAM,GAAG,MAAM;;;;;;gBAjBZ,OAAO;iBAHN,OAAO;sBAMF,OAAO;kBAMX,OAAO;0BACC,OAAO;cAGnB,OAAO;mBACF,OAAO;gBAEV,OAAO;;qBAkZM,GAAG;kBACN,GAAG;;AAza9B,wBAueC;AAgBD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -2,7 +2,7 @@ import o from "./CodeInput.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../../_virtual/_plugin-vue_export-helper.js";
5
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2fd087a0"]]);
5
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-19c5f2da"]]);
6
6
  export {
7
7
  f as default
8
8
  };
@@ -48,7 +48,7 @@ const se = ["id"], de = {
48
48
  emits: ["submit", "update:modelValue", "curl"],
49
49
  setup(N, { expose: O, emit: _ }) {
50
50
  var P;
51
- const e = N, s = _, V = L(), I = V.id || `id-${oe()}`, g = i(!1), m = i(!1), B = i(""), C = i({ left: 0, top: 0 }), c = i(null), { activeEnvVariables: k, isReadOnly: S, activeEnvironment: E, router: K } = ie(), { copyToClipboard: M } = ae();
51
+ const e = N, s = _, V = L(), I = V.id || `id-${oe()}`, g = i(!1), m = i(!1), B = i(""), C = i({ left: 0, top: 0 }), c = i(null), { activeEnvVariables: k, isReadOnly: S, activeEnvironment: x, router: K } = ie(), { copyToClipboard: M } = ae();
52
52
  function A(o) {
53
53
  var t;
54
54
  return o === e.modelValue ? null : e.importCurl && o.trim().toLowerCase().startsWith("curl") ? (s("curl", o), (t = a.value) == null || t.dispatch({
@@ -68,13 +68,13 @@ const se = ["id"], de = {
68
68
  const y = [];
69
69
  e.colorPicker && y.push(ee), y.push(
70
70
  te({
71
- activeEnvironment: E,
71
+ activeEnvironment: x,
72
72
  activeEnvVariables: k,
73
73
  isReadOnly: S
74
74
  }),
75
75
  le
76
76
  );
77
- const x = i(null), { codeMirror: a } = Y({
77
+ const E = i(null), { codeMirror: a } = Y({
78
78
  content: r(
79
79
  () => e.modelValue !== void 0 ? String(e.modelValue) : ""
80
80
  ),
@@ -83,7 +83,7 @@ const se = ["id"], de = {
83
83
  },
84
84
  onFocus: () => g.value = !0,
85
85
  onBlur: (o) => z(o),
86
- codeMirrorRef: x,
86
+ codeMirrorRef: E,
87
87
  disableTabIndent: r(() => e.disableTabIndent),
88
88
  disableEnter: r(() => e.disableEnter),
89
89
  disableCloseBrackets: r(() => e.disableCloseBrackets),
@@ -135,8 +135,8 @@ const se = ["id"], de = {
135
135
  id: n(I)
136
136
  }, o.$attrs, {
137
137
  ref_key: "codeMirrorRef",
138
- ref: x,
139
- class: ["peer font-code w-full whitespace-nowrap overflow-hidden text-xs leading-[1.44] relative", {
138
+ ref: E,
139
+ class: ["peer font-code w-full whitespace-nowrap overflow-hidden text-xs leading-[1.44] relative has-[:focus-visible]:outline has-[:focus-visible]:rounded-[4px] -outline-offset-2", {
140
140
  "flow-code-input--error": o.error
141
141
  }],
142
142
  onKeydown: [
@@ -169,7 +169,7 @@ const se = ["id"], de = {
169
169
  ref_key: "dropdownRef",
170
170
  ref: c,
171
171
  activeEnvVariables: v(() => n(k)),
172
- activeEnvironment: v(() => n(E)),
172
+ activeEnvironment: v(() => n(x)),
173
173
  dropdownPosition: C.value,
174
174
  query: B.value,
175
175
  router: n(K),
@@ -6,6 +6,6 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
6
6
  setActiveSection: (value: string) => any;
7
7
  }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
8
8
  onSetActiveSection?: ((value: string) => any) | undefined;
9
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
9
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLFieldSetElement>;
10
10
  export default _default;
11
11
  //# sourceMappingURL=ContextBar.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContextBar.vue.d.ts","sourceRoot":"","sources":["../../src/components/ContextBar.vue"],"names":[],"mappings":"AAoIA,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,aAAa,EAAE,MAAM,CAAA;CACtB,CAAC;;;;;;AA2IF,wBAQG"}
1
+ {"version":3,"file":"ContextBar.vue.d.ts","sourceRoot":"","sources":["../../src/components/ContextBar.vue"],"names":[],"mappings":"AAmJA,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,aAAa,EAAE,MAAM,CAAA;CACtB,CAAC;;;;;;AAwKF,wBAQG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ContextBar.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-df918011"]]);
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3015ddb3"]]);
5
5
  export {
6
- m as default
6
+ p as default
7
7
  };