@scalar/api-client 2.5.17 → 2.5.18

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 (60) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/components/AddressBar/AddressBarHistory.vue2.js +9 -8
  3. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +15 -13
  4. package/dist/components/CommandPalette/CommandPaletteServer.vue.js +10 -9
  5. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +28 -26
  6. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  7. package/dist/components/DataTable/DataTableInputSelect.vue.js +9 -8
  8. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +9 -7
  9. package/dist/components/ImportCollection/ImportNowButton.vue.js +6 -4
  10. package/dist/components/ImportCollection/WorkspaceSelector.vue.js +4 -2
  11. package/dist/components/Server/ServerSelector.vue.js +2 -1
  12. package/dist/components/SideNav/SideHelp.vue.js +16 -10
  13. package/dist/components/SideNav/SideNav.vue.js +2 -1
  14. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +2 -1
  15. package/dist/components/TopNav/TopNav.vue.js +9 -7
  16. package/dist/components/TopNav/TopNavItem.vue2.js +8 -4
  17. package/dist/layouts/App/create-api-client-app.d.ts +42 -2
  18. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  19. package/dist/layouts/Modal/create-api-client-modal.d.ts +84 -4
  20. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  21. package/dist/layouts/Web/create-api-client-web.d.ts +42 -2
  22. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  23. package/dist/libs/create-client.d.ts +42 -2
  24. package/dist/libs/create-client.d.ts.map +1 -1
  25. package/dist/store/security-schemes.d.ts +42 -2
  26. package/dist/store/security-schemes.d.ts.map +1 -1
  27. package/dist/store/store.d.ts +42 -2
  28. package/dist/store/store.d.ts.map +1 -1
  29. package/dist/style.css +1 -1
  30. package/dist/views/Collection/CollectionEnvironment.vue2.js +8 -7
  31. package/dist/views/Collection/CollectionServers.vue2.js +2 -1
  32. package/dist/views/Collection/CollectionSettings.vue2.js +2 -1
  33. package/dist/views/Collection/components/EnvironmentForm.vue2.js +4 -2
  34. package/dist/views/Collection/components/MarkdownInput.vue2.js +4 -2
  35. package/dist/views/Environment/Environment.vue2.js +2 -1
  36. package/dist/views/Environment/EnvironmentModal.vue.js +10 -9
  37. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +2 -1
  38. package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +5 -4
  39. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +22 -11
  40. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +9 -8
  41. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +34 -29
  42. package/dist/views/Request/RequestSection/RequestBody.vue2.js +4 -2
  43. package/dist/views/Request/RequestSection/RequestParams.vue.js +2 -1
  44. package/dist/views/Request/RequestSection/RequestTable.vue2.js +12 -10
  45. package/dist/views/Request/RequestSidebar.vue2.js +2 -1
  46. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  47. package/dist/views/Request/RequestSidebarItem.vue2.js +2 -1
  48. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +6 -3
  49. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +4 -2
  50. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +2 -1
  51. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +2 -1
  52. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  53. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +4 -2
  54. package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +5 -4
  55. package/dist/views/Request/components/WorkspaceDropdown.vue.js +13 -10
  56. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  57. package/dist/views/Request/libs/oauth2.js +46 -44
  58. package/dist/views/Settings/SettingsGeneral.vue.js +19 -17
  59. package/dist/views/Settings/components/SettingsAppearance.vue.js +8 -5
  60. package/package.json +17 -17
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.5.18
4
+
5
+ ### Patch Changes
6
+
7
+ - 591562f: feat: add support for x-scalar-security-body extension
8
+ - Updated dependencies [a04cc15]
9
+ - Updated dependencies [591562f]
10
+ - Updated dependencies [85ee2ce]
11
+ - Updated dependencies [fbb7daa]
12
+ - Updated dependencies [fbaaa12]
13
+ - Updated dependencies [85ee2ce]
14
+ - Updated dependencies [97721b5]
15
+ - Updated dependencies [85ee2ce]
16
+ - Updated dependencies [8a67f4f]
17
+ - @scalar/components@0.14.19
18
+ - @scalar/openapi-types@0.3.6
19
+ - @scalar/types@0.2.9
20
+ - @scalar/snippetz@0.4.2
21
+ - @scalar/themes@0.13.10
22
+ - @scalar/use-codemirror@0.12.20
23
+ - @scalar/oas-utils@0.4.14
24
+ - @scalar/openapi-parser@0.18.1
25
+ - @scalar/postman-to-openapi@0.3.17
26
+
3
27
  ## 2.5.17
4
28
 
5
29
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import { defineComponent as x, computed as _, createBlock as i, openBlock as a, unref as e, withCtx as o, createVNode as l, createSlots as y, createCommentVNode as p, createElementVNode as s, normalizeStyle as C, createElementBlock as S, Fragment as b, renderList as H, toDisplayString as u, normalizeClass as q } from "vue";
1
+ import { defineComponent as k, computed as x, createBlock as i, openBlock as a, unref as e, withCtx as o, createVNode as l, createSlots as y, createCommentVNode as p, createElementVNode as s, normalizeStyle as C, createElementBlock as S, Fragment as b, renderList as H, toDisplayString as u, normalizeClass as q } from "vue";
2
2
  import { Menu as B, MenuButton as M, MenuItems as w, MenuItem as z } from "@headlessui/vue";
3
3
  import { ScalarFloating as I, ScalarIcon as F, ScalarFloatingBackdrop as N } from "@scalar/components";
4
4
  import { httpStatusCodes as R } from "@scalar/oas-utils/helpers";
@@ -6,14 +6,14 @@ import { formatMs as V } from "../../libs/formatters.js";
6
6
  import E from "../HttpMethod/HttpMethod.vue.js";
7
7
  import { getStatusCodeColor as A } from "./httpStatusCodeColors.js";
8
8
  import { useWorkspace as D } from "../../store/store.js";
9
- const L = { class: "min-w-0" }, U = { class: "text-c-1 min-w-0 truncate" }, Q = /* @__PURE__ */ x({
9
+ const L = { class: "min-w-0" }, U = { class: "text-c-1 min-w-0 truncate" }, Q = /* @__PURE__ */ k({
10
10
  __name: "AddressBarHistory",
11
11
  props: {
12
12
  operation: {},
13
13
  target: {}
14
14
  },
15
15
  setup(f) {
16
- const { requestHistory: h } = D(), d = _(
16
+ const { requestHistory: h } = D(), d = x(
17
17
  () => h.filter((r) => r.request.requestUid === f.operation.uid).slice().reverse()
18
18
  );
19
19
  function g(r) {
@@ -23,7 +23,7 @@ const L = { class: "min-w-0" }, U = { class: "text-c-1 min-w-0 truncate" }, Q =
23
23
  );
24
24
  }
25
25
  return (r, m) => (a(), i(e(B), { as: "div" }, {
26
- default: o(({ open: v }) => [
26
+ default: o(({ open: _ }) => [
27
27
  l(e(I), {
28
28
  offset: 0,
29
29
  resize: "",
@@ -44,13 +44,14 @@ const L = { class: "min-w-0" }, U = { class: "text-c-1 min-w-0 truncate" }, Q =
44
44
  }),
45
45
  m[0] || (m[0] = s("span", { class: "sr-only" }, "Request History", -1))
46
46
  ]),
47
- _: 1
47
+ _: 1,
48
+ __: [0]
48
49
  })) : p("", !0)
49
50
  ];
50
51
  }),
51
52
  _: 2
52
53
  }, [
53
- v ? {
54
+ _ ? {
54
55
  name: "floating",
55
56
  fn: o(({ width: n }) => [
56
57
  l(e(w), {
@@ -59,11 +60,11 @@ const L = { class: "min-w-0" }, U = { class: "text-c-1 min-w-0 truncate" }, Q =
59
60
  style: C({ width: n })
60
61
  }, {
61
62
  default: o(() => [
62
- (a(!0), S(b, null, H(d.value, (t, k) => (a(), i(e(z), {
63
+ (a(!0), S(b, null, H(d.value, (t, v) => (a(), i(e(z), {
63
64
  key: t.timestamp,
64
65
  as: "button",
65
66
  class: "font-code ui-active:*:bg-b-2 text-c-2 contents text-sm font-medium *:flex *:h-8 *:cursor-pointer *:items-center *:rounded-none *:px-1.5 *:first:rounded-l *:last:rounded-r",
66
- value: k,
67
+ value: v,
67
68
  onClick: (c) => g(t)
68
69
  }, {
69
70
  default: o(() => {
@@ -1,5 +1,5 @@
1
- import { defineComponent as G, ref as O, computed as I, watch as V, createBlock as P, openBlock as i, unref as s, withCtx as v, createElementBlock as f, Fragment as g, createElementVNode as S, createCommentVNode as H, createVNode as C, createTextVNode as p, toDisplayString as T } from "vue";
2
- import { useLoadingState as K, ScalarButton as _, ScalarCodeBlock as Q, ScalarIcon as X, ScalarTooltip as Z } from "@scalar/components";
1
+ import { defineComponent as G, ref as D, computed as I, watch as O, createBlock as P, openBlock as i, unref as s, withCtx as v, createElementBlock as f, Fragment as g, createElementVNode as S, createCommentVNode as H, createVNode as C, createTextVNode as p, toDisplayString as V } from "vue";
2
+ import { useLoadingState as K, ScalarButton as T, ScalarCodeBlock as Q, ScalarIcon as X, ScalarTooltip as Z } from "@scalar/components";
3
3
  import { useToasts as ee } from "@scalar/use-toasts";
4
4
  import { useRouter as te } from "vue-router";
5
5
  import { importCurlCommand as oe } from "../../libs/importers/curl.js";
@@ -17,7 +17,7 @@ const me = { class: "flex justify-between" }, de = { class: "flex w-full flex-ro
17
17
  __name: "CommandPaletteImport",
18
18
  emits: ["close", "back"],
19
19
  setup(pe, { emit: N }) {
20
- const k = N, $ = te(), { activeWorkspace: c, activeCollection: B } = ae(), { importSpecFile: w, importSpecFromUrl: M, events: j } = ce(), { toast: m } = ee(), d = K(), a = O(""), y = O(!0), r = I(() => L(a.value) ? ie(a.value) : se(a.value)), A = I(
20
+ const k = N, $ = te(), { activeWorkspace: c, activeCollection: B } = ae(), { importSpecFile: w, importSpecFromUrl: M, events: j } = ce(), { toast: m } = ee(), d = K(), a = D(""), y = D(!0), r = I(() => L(a.value) ? ie(a.value) : se(a.value)), A = I(
21
21
  () => r.value ? r.value.type : "json"
22
22
  );
23
23
  function x(t) {
@@ -36,7 +36,7 @@ const me = { class: "flex justify-between" }, de = { class: "flex w-full flex-ro
36
36
  if (e) {
37
37
  const n = new FileReader();
38
38
  n.onload = async (b) => {
39
- var u, R, D;
39
+ var u, R, _;
40
40
  const o = (u = b.target) == null ? void 0 : u.result;
41
41
  try {
42
42
  if (L(o)) {
@@ -48,7 +48,7 @@ const me = { class: "flex justify-between" }, de = { class: "flex w-full flex-ro
48
48
  } else {
49
49
  const l = await w(
50
50
  o,
51
- ((D = c.value) == null ? void 0 : D.uid) ?? ""
51
+ ((_ = c.value) == null ? void 0 : _.uid) ?? ""
52
52
  );
53
53
  x(l == null ? void 0 : l.collection);
54
54
  }
@@ -64,9 +64,9 @@ const me = { class: "flex justify-between" }, de = { class: "flex w-full flex-ro
64
64
  multiple: !1,
65
65
  accept: ".json,.yaml,.yml"
66
66
  });
67
- V(h, (t) => {
67
+ O(h, (t) => {
68
68
  t || (y.value = !1);
69
- }), V(a, (t) => {
69
+ }), O(a, (t) => {
70
70
  U(t) || (y.value = !1);
71
71
  });
72
72
  async function J() {
@@ -138,7 +138,7 @@ const me = { class: "flex justify-between" }, de = { class: "flex w-full flex-ro
138
138
  }, {
139
139
  options: v(() => [
140
140
  S("div", de, [
141
- C(s(_), {
141
+ C(s(T), {
142
142
  class: "hover:bg-b-2 relative max-h-8 gap-1.5 p-2 text-xs",
143
143
  variant: "outlined",
144
144
  onClick: s(z)
@@ -151,7 +151,8 @@ const me = { class: "flex justify-between" }, de = { class: "flex w-full flex-ro
151
151
  size: "md"
152
152
  })
153
153
  ]),
154
- _: 1
154
+ _: 1,
155
+ __: [5]
155
156
  }, 8, ["onClick"]),
156
157
  C(s(Z), {
157
158
  content: h.value ? "Watch mode automatically updates the API client when the OpenAPI URL content changes, ensuring your client remains up-to-date." : "Watch mode is only available for URL imports. When enabled it automatically updates the API client when the OpenAPI URL content changes.",
@@ -174,9 +175,9 @@ const me = { class: "flex justify-between" }, de = { class: "flex w-full flex-ro
174
175
  p(" from URL ")
175
176
  ], 64)) : r.value && A.value ? (i(), f(g, { key: 1 }, [
176
177
  r.value.title ? (i(), f(g, { key: 0 }, [
177
- p(' "' + T(r.value.title) + '" ', 1)
178
+ p(' "' + V(r.value.title) + '" ', 1)
178
179
  ], 64)) : (i(), f(g, { key: 1 }, [
179
- p(T(r.value.version), 1)
180
+ p(V(r.value.version), 1)
180
181
  ], 64))
181
182
  ], 64)) : (i(), f(g, { key: 2 }, [
182
183
  p(" Collection ")
@@ -192,7 +193,7 @@ const me = { class: "flex justify-between" }, de = { class: "flex w-full flex-ro
192
193
  }, null, 8, ["modelValue"])) : (i(), f(g, { key: 1 }, [
193
194
  S("div", me, [
194
195
  e[4] || (e[4] = S("div", { class: "text-c-2 min-h-8 w-full py-2 pl-12 text-center text-xs" }, " Preview ", -1)),
195
- C(s(_), {
196
+ C(s(T), {
196
197
  class: "hover:bg-b-2 relative ml-auto max-h-8 gap-1.5 p-2 text-xs",
197
198
  variant: "ghost",
198
199
  onClick: e[1] || (e[1] = (n) => a.value = "")
@@ -200,7 +201,8 @@ const me = { class: "flex justify-between" }, de = { class: "flex w-full flex-ro
200
201
  default: v(() => e[3] || (e[3] = [
201
202
  p(" Clear ")
202
203
  ])),
203
- _: 1
204
+ _: 1,
205
+ __: [3]
204
206
  })
205
207
  ]),
206
208
  r.value && !s(U)(a.value) ? (i(), P(s(Q), {
@@ -17,8 +17,8 @@ const X = /* @__PURE__ */ N({
17
17
  const n = x, d = S, k = I(), { toast: v } = E(), { activeCollection: V, activeWorkspaceCollections: g } = L(), {
18
18
  collectionMutators: D,
19
19
  serverMutators: U,
20
- events: w,
21
- collections: y
20
+ events: _,
21
+ collections: w
22
22
  } = $(), r = p(""), i = h(
23
23
  () => g.value.flatMap(
24
24
  (t) => {
@@ -41,13 +41,13 @@ const X = /* @__PURE__ */ N({
41
41
  return t.id === ((e = V.value) == null ? void 0 : e.uid);
42
42
  }
43
43
  )
44
- ), P = () => {
44
+ ), y = () => {
45
45
  var o;
46
46
  if (!r.value.trim()) {
47
47
  v("Please enter a valid url before creating a server.", "error");
48
48
  return;
49
49
  }
50
- const t = y[((o = a.value) == null ? void 0 : o.id) ?? ""];
50
+ const t = w[((o = a.value) == null ? void 0 : o.id) ?? ""];
51
51
  if (!t) {
52
52
  v("Please select a collection before creating a server.", "error");
53
53
  return;
@@ -60,12 +60,12 @@ const X = /* @__PURE__ */ N({
60
60
  [C.Servers]: e.uid
61
61
  }
62
62
  }), d("close");
63
- }, _ = () => {
64
- w.commandPalette.emit({ commandName: "Create Collection" });
63
+ }, P = () => {
64
+ _.commandPalette.emit({ commandName: "Create Collection" });
65
65
  };
66
66
  return (t, e) => (c(), u(R, {
67
67
  disabled: !r.value.trim() || !a.value,
68
- onSubmit: P
68
+ onSubmit: y
69
69
  }, {
70
70
  options: l(() => [
71
71
  m(s(j), {
@@ -94,12 +94,13 @@ const X = /* @__PURE__ */ N({
94
94
  key: 1,
95
95
  class: "hover:bg-b-2 max-h-8 w-fit justify-between gap-1 p-2 text-xs",
96
96
  variant: "outlined",
97
- onClick: _
97
+ onClick: P
98
98
  }, {
99
99
  default: l(() => e[3] || (e[3] = [
100
100
  f("span", { class: "text-c-1" }, "Create Collection", -1)
101
101
  ])),
102
- _: 1
102
+ _: 1,
103
+ __: [3]
103
104
  }))
104
105
  ]),
105
106
  _: 1
@@ -1,12 +1,12 @@
1
- import { defineComponent as ae, ref as v, computed as O, watch as le, onMounted as re, onBeforeUnmount as se, createBlock as F, openBlock as r, unref as u, withCtx as A, createElementVNode as C, createVNode as y, createElementBlock as d, createTextVNode as G, createCommentVNode as me, withKeys as S, withModifiers as T, Fragment as D, renderList as Q, withDirectives as ie, toDisplayString as j, vShow as ce, normalizeClass as ue, resolveDynamicComponent as de, mergeProps as pe, nextTick as b } from "vue";
1
+ import { defineComponent as ae, ref as v, computed as O, watch as le, onMounted as re, onBeforeUnmount as se, createBlock as F, openBlock as r, unref as u, withCtx as A, createElementVNode as C, createVNode as k, createElementBlock as d, createTextVNode as G, createCommentVNode as me, withKeys as S, withModifiers as T, Fragment as D, renderList as Q, withDirectives as ie, toDisplayString as j, vShow as ce, normalizeClass as ue, resolveDynamicComponent as de, mergeProps as pe, nextTick as b } from "vue";
2
2
  import { Dialog as fe, DialogPanel as ve, DialogTitle as Ce } from "@headlessui/vue";
3
3
  import { useModal as he, ScalarIcon as L } from "@scalar/components";
4
4
  import { useRouter as xe } from "vue-router";
5
- import { ROUTES as ke } from "../../constants.js";
6
- import { importCurlCommand as ye } from "../../libs/importers/curl.js";
5
+ import { ROUTES as _e } from "../../constants.js";
6
+ import { importCurlCommand as ke } from "../../libs/importers/curl.js";
7
7
  import { PathId as E } from "../../routes.js";
8
- import { useActiveEntities as ge } from "../../store/active-entities.js";
9
- import _e from "./CommandPaletteCollection.vue.js";
8
+ import { useActiveEntities as ye } from "../../store/active-entities.js";
9
+ import ge from "./CommandPaletteCollection.vue.js";
10
10
  import be from "./CommandPaletteExample.vue.js";
11
11
  import we from "./CommandPaletteImport.vue.js";
12
12
  import Pe from "./CommandPaletteImportCurl.vue.js";
@@ -31,14 +31,14 @@ const Te = {
31
31
  "Create Workspace": Ae,
32
32
  "Add Tag": Re,
33
33
  "Add Server": Ie,
34
- "Create Collection": _e,
34
+ "Create Collection": ge,
35
35
  "Add Example": be,
36
36
  "Import from cURL": Pe
37
37
  }, to = /* @__PURE__ */ ae({
38
38
  ...He,
39
39
  setup($e) {
40
40
  var z, N;
41
- const h = he(), w = xe(), { activeWorkspace: l, activeWorkspaceCollections: J, activeCollection: X } = ge(), { events: p, requestMutators: Y } = Se(), q = [
41
+ const h = he(), w = xe(), { activeWorkspace: l, activeWorkspaceCollections: J, activeCollection: X } = ye(), { events: p, requestMutators: Y } = Se(), q = [
42
42
  {
43
43
  label: "",
44
44
  commands: [
@@ -101,7 +101,7 @@ const Te = {
101
101
  },
102
102
  {
103
103
  label: "Pages",
104
- commands: ke.map((o) => {
104
+ commands: _e.map((o) => {
105
105
  var e;
106
106
  return {
107
107
  name: o.displayName,
@@ -127,7 +127,7 @@ const Te = {
127
127
  }, Z = (o) => {
128
128
  s.value !== "" && (o == null || o.preventDefault()), m.value = null, b(() => {
129
129
  var e;
130
- return (e = g.value) == null ? void 0 : e.focus();
130
+ return (e = y.value) == null ? void 0 : e.focus();
131
131
  });
132
132
  }, B = (o) => {
133
133
  var e;
@@ -157,13 +157,13 @@ const Te = {
157
157
  f();
158
158
  } else
159
159
  m.value = o.name;
160
- }, g = v(), H = ({
160
+ }, y = v(), H = ({
161
161
  commandName: o,
162
162
  metaData: e
163
163
  } = {}) => {
164
164
  m.value = o ?? null, P.value = e, h.show(), b(() => {
165
165
  var t;
166
- return (t = g.value) == null ? void 0 : t.focus();
166
+ return (t = y.value) == null ? void 0 : t.focus();
167
167
  });
168
168
  };
169
169
  le(s, (o) => {
@@ -175,7 +175,7 @@ const Te = {
175
175
  const t = o === "up" ? -1 : 1, n = x.value.length;
176
176
  i.value = (i.value + t + n) % n, b(() => {
177
177
  var W, V;
178
- const a = (W = g.value) == null ? void 0 : W.closest(".custom-scroll");
178
+ const a = (W = y.value) == null ? void 0 : W.closest(".custom-scroll");
179
179
  if (!a) return;
180
180
  if (i.value === 0) {
181
181
  a.scrollTop = 0;
@@ -183,8 +183,8 @@ const Te = {
183
183
  }
184
184
  const c = M.value[i.value];
185
185
  if (!c) return;
186
- const k = (((V = a.querySelector(".sticky")) == null ? void 0 : V.clientHeight) || 0) + 16, _ = 6, R = c.offsetTop, U = R + c.clientHeight, te = a.scrollTop + k, ne = a.scrollTop + a.clientHeight - _;
187
- R < te ? a.scrollTop = R - k : U > ne && (a.scrollTop = U - a.clientHeight + _);
186
+ const _ = (((V = a.querySelector(".sticky")) == null ? void 0 : V.clientHeight) || 0) + 16, g = 6, R = c.offsetTop, U = R + c.clientHeight, te = a.scrollTop + _, ne = a.scrollTop + a.clientHeight - g;
187
+ R < te ? a.scrollTop = R - _ : U > ne && (a.scrollTop = U - a.clientHeight + g);
188
188
  });
189
189
  }, I = O(
190
190
  () => x.value[i.value]
@@ -198,7 +198,7 @@ const Te = {
198
198
  p.commandPalette.emit({
199
199
  commandName: "Import from cURL",
200
200
  metaData: {
201
- parsedCurl: ye(o),
201
+ parsedCurl: ke(o),
202
202
  collectionUid: (e = X.value) == null ? void 0 : e.uid
203
203
  }
204
204
  });
@@ -216,13 +216,14 @@ const Te = {
216
216
  }, {
217
217
  default: A(() => [
218
218
  e[7] || (e[7] = C("div", { class: "commandmenu-overlay z-overlay" }, null, -1)),
219
- y(u(ve), { class: "commandmenu z-overlay flex flex-col" }, {
219
+ k(u(ve), { class: "commandmenu z-overlay flex flex-col" }, {
220
220
  default: A(() => [
221
- y(u(Ce), { class: "sr-only" }, {
221
+ k(u(Ce), { class: "sr-only" }, {
222
222
  default: A(() => e[6] || (e[6] = [
223
223
  G("API Client Command Menu")
224
224
  ])),
225
- _: 1
225
+ _: 1,
226
+ __: [6]
226
227
  }),
227
228
  m.value ? (r(), d("div", Be, [
228
229
  C("button", {
@@ -230,7 +231,7 @@ const Te = {
230
231
  type: "button",
231
232
  onClick: e[3] || (e[3] = (t) => m.value = null)
232
233
  }, [
233
- y(u(L), {
234
+ k(u(L), {
234
235
  icon: "ChevronLeft",
235
236
  size: "md",
236
237
  thickness: "1.5"
@@ -243,7 +244,7 @@ const Te = {
243
244
  ])) : (r(), d("div", Te, [
244
245
  C("div", De, [
245
246
  C("label", Le, [
246
- y(u(L), {
247
+ k(u(L), {
247
248
  class: "text-c-2 mr-2.5",
248
249
  icon: "Search",
249
250
  size: "md",
@@ -253,7 +254,7 @@ const Te = {
253
254
  C("input", {
254
255
  id: "commandmenu",
255
256
  ref_key: "commandInputRef",
256
- ref: g,
257
+ ref: y,
257
258
  autocomplete: "off",
258
259
  autofocus: "",
259
260
  class: "w-full rounded border-none bg-none py-1.5 text-sm focus:outline-none",
@@ -288,10 +289,10 @@ const Te = {
288
289
  ref_for: !0,
289
290
  ref: (c) => {
290
291
  if (c) {
291
- const k = x.value.findIndex(
292
- (_) => _.name === n.name
292
+ const _ = x.value.findIndex(
293
+ (g) => g.name === n.name
293
294
  );
294
- k !== -1 && (M.value[k] = c);
295
+ _ !== -1 && (M.value[_] = c);
295
296
  }
296
297
  },
297
298
  class: ue(["commandmenu-item hover:bg-b-2 flex cursor-pointer items-center rounded px-2 py-1.5 text-sm", {
@@ -299,7 +300,7 @@ const Te = {
299
300
  }]),
300
301
  onClick: (c) => B(n)
301
302
  }, [
302
- y(u(L), {
303
+ k(u(L), {
303
304
  class: "text-c-2 mr-2.5",
304
305
  icon: n.icon,
305
306
  size: "md",
@@ -315,7 +316,8 @@ const Te = {
315
316
  _: 1
316
317
  })
317
318
  ]),
318
- _: 1
319
+ _: 1,
320
+ __: [7]
319
321
  }, 8, ["open"]));
320
322
  }
321
323
  });
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableInput.vue"],"names":[],"mappings":"AAqMA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAIrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAO/C,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,sEAAsE;IACtE,cAAc,CAAC,EAAE,YAAY,GAAG,SAAS,CAAA;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,0EAA0E;IAC1E,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,QAA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,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;cA1UN,OAAO;cAIP,OAAO;kBAQH,OAAO;2BATE,OAAO;6EA+UjC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAepG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,4 +1,4 @@
1
- import { defineComponent as T, computed as m, ref as V, watch as S, nextTick as E, createElementBlock as f, openBlock as o, createBlock as v, withDirectives as K, unref as a, withCtx as s, createVNode as u, createElementVNode as i, toDisplayString as y, withKeys as M, vModelText as R, createCommentVNode as C, Fragment as _, renderList as U, normalizeClass as W } from "vue";
1
+ import { defineComponent as T, computed as m, ref as V, watch as _, nextTick as E, createElementBlock as f, openBlock as o, createBlock as v, withDirectives as K, unref as a, withCtx as s, createVNode as u, createElementVNode as i, toDisplayString as y, withKeys as M, vModelText as R, createCommentVNode as S, Fragment as C, renderList as U, normalizeClass as W } from "vue";
2
2
  import { ScalarComboboxMultiselect as $, ScalarButton as b, ScalarIcon as h, ScalarDropdown as F, ScalarDropdownItem as D, ScalarDropdownDivider as L } from "@scalar/components";
3
3
  const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-full pr-10 -outline-offset-1 has-[:focus-visible]:rounded-[4px] has-[:focus-visible]:outline" }, G = { class: "text-c-1 whitespace-nowrap" }, H = { class: "text-c-1 overflow-hidden text-ellipsis" }, J = { class: "overflow-hidden text-ellipsis" }, P = { class: "flex h-4 w-4 items-center justify-center" }, Z = /* @__PURE__ */ T({
4
4
  __name: "DataTableInputSelect",
@@ -12,7 +12,7 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
12
12
  emits: ["update:modelValue"],
13
13
  setup(B, { emit: j }) {
14
14
  const n = B, c = j, p = m(() => n.value ?? []), d = V(!1), r = V(""), x = V(null);
15
- S(r, (e) => {
15
+ _(r, (e) => {
16
16
  c("update:modelValue", e);
17
17
  });
18
18
  const g = (e) => {
@@ -22,7 +22,7 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
22
22
  }, A = () => {
23
23
  r.value.trim() || c("update:modelValue", ""), d.value = !1;
24
24
  }, I = (e) => n.modelValue.toString() === e;
25
- S(d, (e) => {
25
+ _(d, (e) => {
26
26
  e && E(() => {
27
27
  var l;
28
28
  (l = x.value) == null || l.focus();
@@ -80,7 +80,7 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
80
80
  value: k.value
81
81
  }, {
82
82
  items: s(() => [
83
- (o(!0), f(_, null, U(p.value, (t) => (o(), v(a(D), {
83
+ (o(!0), f(C, null, U(p.value, (t) => (o(), v(a(D), {
84
84
  key: t,
85
85
  class: "group/item flex items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",
86
86
  value: t,
@@ -103,8 +103,8 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
103
103
  ]),
104
104
  _: 2
105
105
  }, 1032, ["value", "onClick"]))), 128)),
106
- e.canAddCustomValue ? (o(), f(_, { key: 0 }, [
107
- p.value.length ? (o(), v(a(L), { key: 0 })) : C("", !0),
106
+ e.canAddCustomValue ? (o(), f(C, { key: 0 }, [
107
+ p.value.length ? (o(), v(a(L), { key: 0 })) : S("", !0),
108
108
  u(a(D), {
109
109
  class: "flex items-center gap-1.5",
110
110
  onClick: l[1] || (l[1] = (t) => d.value = !0)
@@ -118,9 +118,10 @@ const q = { class: "group-[.alert]:outline-orange group-[.error]:outline-red w-f
118
118
  ]),
119
119
  l[2] || (l[2] = i("span", null, "Add value", -1))
120
120
  ]),
121
- _: 1
121
+ _: 1,
122
+ __: [2]
122
123
  })
123
- ], 64)) : C("", !0)
124
+ ], 64)) : S("", !0)
124
125
  ]),
125
126
  default: s(() => [
126
127
  u(a(b), {
@@ -1,4 +1,4 @@
1
- import { defineComponent as D, computed as E, watch as g, onMounted as L, createBlock as d, openBlock as c, unref as n, withCtx as s, createVNode as l, createElementVNode as p, toDisplayString as w, createElementBlock as M, createCommentVNode as V, Fragment as W, renderList as j, withModifiers as k, createTextVNode as _ } from "vue";
1
+ import { defineComponent as D, computed as E, watch as g, onMounted as L, createBlock as d, openBlock as c, unref as n, withCtx as s, createVNode as l, createElementVNode as p, toDisplayString as w, createElementBlock as M, createCommentVNode as V, Fragment as W, renderList as j, withModifiers as _, createTextVNode as k } from "vue";
2
2
  import { ScalarDropdown as T, ScalarButton as $, ScalarDropdownItem as f, ScalarListboxCheckbox as S, ScalarDropdownDivider as z, ScalarIcon as A } from "@scalar/components";
3
3
  import { useRouter as F } from "vue-router";
4
4
  import { PathId as O } from "../../routes.js";
@@ -56,7 +56,7 @@ const G = { class: "m-0 flex items-center gap-1.5 font-medium whitespace-nowrap"
56
56
  (c(!0), M(W, null, j(v.value, (o) => (c(), d(n(f), {
57
57
  key: o.uid,
58
58
  class: "group/item flex items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",
59
- onClick: k((i) => m(o.uid), ["stop"])
59
+ onClick: _((i) => m(o.uid), ["stop"])
60
60
  }, {
61
61
  default: s(() => {
62
62
  var i;
@@ -64,14 +64,14 @@ const G = { class: "m-0 flex items-center gap-1.5 font-medium whitespace-nowrap"
64
64
  l(n(S), {
65
65
  selected: ((i = n(a)) == null ? void 0 : i["x-scalar-active-environment"]) === o.uid
66
66
  }, null, 8, ["selected"]),
67
- _(" " + w(o.name), 1)
67
+ k(" " + w(o.name), 1)
68
68
  ];
69
69
  }),
70
70
  _: 2
71
71
  }, 1032, ["onClick"]))), 128)),
72
72
  l(n(f), {
73
73
  class: "group/item flex items-center gap-1.5 overflow-hidden text-ellipsis whitespace-nowrap",
74
- onClick: t[0] || (t[0] = k((o) => m(""), ["stop"]))
74
+ onClick: t[0] || (t[0] = _((o) => m(""), ["stop"]))
75
75
  }, {
76
76
  default: s(() => {
77
77
  var o, i, h;
@@ -79,10 +79,11 @@ const G = { class: "m-0 flex items-center gap-1.5 font-medium whitespace-nowrap"
79
79
  l(n(S), {
80
80
  selected: ((o = n(u)) == null ? void 0 : o.uid) === "" && ((i = n(a)) == null ? void 0 : i["x-scalar-active-environment"]) === "" || ((h = n(u)) == null ? void 0 : h.name) === "No Environment"
81
81
  }, null, 8, ["selected"]),
82
- t[1] || (t[1] = _(" No Environment "))
82
+ t[1] || (t[1] = k(" No Environment "))
83
83
  ];
84
84
  }),
85
- _: 1
85
+ _: 1,
86
+ __: [1]
86
87
  }),
87
88
  l(n(z)),
88
89
  n(y) !== "modal" ? (c(), d(n(f), {
@@ -99,7 +100,8 @@ const G = { class: "m-0 flex items-center gap-1.5 font-medium whitespace-nowrap"
99
100
  ]),
100
101
  t[2] || (t[2] = p("span", { class: "leading-none" }, "Manage Environments", -1))
101
102
  ]),
102
- _: 1
103
+ _: 1,
104
+ __: [2]
103
105
  })) : V("", !0)
104
106
  ]),
105
107
  default: s(() => [
@@ -5,7 +5,7 @@ import { useRouter as g } from "vue-router";
5
5
  import { useActiveEntities as x } from "../../store/active-entities.js";
6
6
  import { importCollection as B } from "./utils/import-collection.js";
7
7
  import { useWorkspace as I } from "../../store/store.js";
8
- const R = /* @__PURE__ */ y({
8
+ const z = /* @__PURE__ */ y({
9
9
  __name: "ImportNowButton",
10
10
  props: {
11
11
  source: {},
@@ -52,7 +52,8 @@ const R = /* @__PURE__ */ y({
52
52
  default: m(() => e[0] || (e[0] = [
53
53
  p(" Import Collection ")
54
54
  ])),
55
- _: 1
55
+ _: 1,
56
+ __: [0]
56
57
  })) : (o(), u(a(c), {
57
58
  key: 1,
58
59
  class: "h-fit rounded-lg px-6 py-2.5 text-[21px] font-bold",
@@ -64,11 +65,12 @@ const R = /* @__PURE__ */ y({
64
65
  default: m(() => e[1] || (e[1] = [
65
66
  p(" Try it in the browser ")
66
67
  ])),
67
- _: 1
68
+ _: 1,
69
+ __: [1]
68
70
  }))
69
71
  ], 64)) : h("", !0);
70
72
  }
71
73
  });
72
74
  export {
73
- R as default
75
+ z as default
74
76
  };
@@ -73,7 +73,8 @@ const R = { class: "flex w-[inherit] items-center text-base" }, U = { class: "m-
73
73
  ]),
74
74
  t[2] || (t[2] = s("span", null, "New Workspace", -1))
75
75
  ]),
76
- _: 1
76
+ _: 1,
77
+ __: [2]
77
78
  })
78
79
  ]),
79
80
  default: r(() => [
@@ -128,7 +129,8 @@ const R = { class: "flex w-[inherit] items-center text-base" }, U = { class: "m-
128
129
  default: r(() => t[3] || (t[3] = [
129
130
  j(" Continue ")
130
131
  ])),
131
- _: 1
132
+ _: 1,
133
+ __: [3]
132
134
  }, 8, ["disabled"])
133
135
  ], 32)
134
136
  ]),
@@ -77,7 +77,8 @@ const W = { class: "overflow-x-auto" }, z = {
77
77
  size: "sm"
78
78
  })
79
79
  ]),
80
- _: 1
80
+ _: 1,
81
+ __: [1]
81
82
  })
82
83
  ]),
83
84
  _: 1