@scalar/api-client 2.4.1 → 2.4.3

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.
@@ -1 +1 @@
1
- {"version":3,"file":"RequestAuthDataTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue"],"names":[],"mappings":"AAmNA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EAEV,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAIrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAO1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,WAAW,EAAE,OAAO,CAAA;IACpB,qBAAqB,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACtD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AAkNF,wBAOG"}
1
+ {"version":3,"file":"RequestAuthDataTable.vue.d.ts","sourceRoot":"","sources":["../../../../../src/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue"],"names":[],"mappings":"AAuNA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EACV,UAAU,EAEV,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAIrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAO1D,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,WAAW,EAAE,OAAO,CAAA;IACpB,qBAAqB,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;IACtD,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;CACrB,CAAC;;AAoNF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import t from "./RequestAuthDataTable.vue2.js";
2
2
  /* empty css */
3
- import o from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ o(t, [["__scopeId", "data-v-6e4f51b7"]]);
3
+ import a from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const f = /* @__PURE__ */ a(t, [["__scopeId", "data-v-3f02bac6"]]);
5
5
  export {
6
6
  f as default
7
7
  };
@@ -1,18 +1,12 @@
1
- import { defineComponent as b, ref as d, computed as y, watch as k, createElementBlock as o, openBlock as s, withModifiers as w, createCommentVNode as m, createBlock as x, createVNode as p, Fragment as S, renderList as g, normalizeClass as h, createElementVNode as v, toDisplayString as A, unref as a, withCtx as C } from "vue";
1
+ import { defineComponent as b, ref as m, computed as y, watch as k, createElementBlock as l, openBlock as o, withModifiers as w, createCommentVNode as p, createBlock as g, createVNode as h, normalizeClass as s, Fragment as S, renderList as x, createElementVNode as v, toDisplayString as A, unref as i, withCtx as C } from "vue";
2
2
  import { useModal as V } from "@scalar/components";
3
3
  import O from "./DeleteRequestAuthModal.vue.js";
4
- import _ from "./RequestAuthTab.vue.js";
5
- import z from "../../../../components/DataTable/DataTable.vue.js";
6
- const B = {
7
- key: 0,
8
- class: "box-content flex h-8 flex-wrap gap-x-2.5 overflow-hidden border border-b-0 px-3"
9
- }, M = ["onClick"], N = { class: "relative z-10 whitespace-nowrap font-medium" }, $ = {
4
+ import z from "./RequestAuthTab.vue.js";
5
+ import B from "../../../../components/DataTable/DataTable.vue.js";
6
+ const M = ["onClick"], N = { class: "relative z-10 whitespace-nowrap font-medium" }, $ = {
10
7
  key: 0,
11
8
  class: "z-1 absolute inset-x-1 bottom-[var(--scalar-border-width)] left-1/2 h-px w-full -translate-x-1/2 bg-current"
12
- }, q = {
13
- key: 2,
14
- class: "text-c-3 bg-b-1 flex min-h-[calc(4rem+1px)] items-center justify-center border-t px-4 text-sm"
15
- }, F = /* @__PURE__ */ b({
9
+ }, j = /* @__PURE__ */ b({
16
10
  __name: "RequestAuthDataTable",
17
11
  props: {
18
12
  collection: {},
@@ -24,68 +18,77 @@ const B = {
24
18
  server: {},
25
19
  workspace: {}
26
20
  },
27
- setup(i) {
28
- const c = V(), f = d(
21
+ setup(c) {
22
+ const u = V(), f = m(
29
23
  null
30
- ), t = d(0), u = y(() => {
31
- const e = i.selectedSchemeOptions[t.value];
24
+ ), t = m(0), d = y(() => {
25
+ const e = c.selectedSchemeOptions[t.value];
32
26
  if (!e)
33
27
  return [];
34
28
  const r = e == null ? void 0 : e.id.split(",");
35
29
  return r.length > 1 ? r : [e.id];
36
30
  });
37
31
  return k(
38
- () => i.selectedSchemeOptions,
32
+ () => c.selectedSchemeOptions,
39
33
  (e) => {
40
34
  e[t.value] || (t.value = Math.max(0, t.value - 1));
41
35
  }
42
- ), (e, r) => (s(), o("form", {
36
+ ), (e, r) => (o(), l("form", {
43
37
  onSubmit: r[1] || (r[1] = w(() => {
44
38
  }, ["prevent"]))
45
39
  }, [
46
- e.selectedSchemeOptions.length > 1 ? (s(), o("div", B, [
47
- (s(!0), o(S, null, g(e.selectedSchemeOptions, (l, n) => (s(), o("div", {
48
- key: l.id,
49
- class: h(["z-1 relative -mb-[var(--scalar-border-width)] flex h-8 cursor-pointer", [t.value === n ? "text-c-1" : "text-c-3"]])
40
+ e.selectedSchemeOptions.length > 1 ? (o(), l("div", {
41
+ key: 0,
42
+ class: s(["box-content flex h-8 flex-wrap gap-x-2.5 overflow-hidden border border-b-0 px-3", e.layout === "client" && "border-r-0"])
43
+ }, [
44
+ (o(!0), l(S, null, x(e.selectedSchemeOptions, (n, a) => (o(), l("div", {
45
+ key: n.id,
46
+ class: s(["z-1 relative -mb-[var(--scalar-border-width)] flex h-8 cursor-pointer", [t.value === a ? "text-c-1" : "text-c-3"]])
50
47
  }, [
51
48
  v("button", {
52
49
  class: "floating-bg relative cursor-pointer border-b-[1px] border-transparent py-1 text-sm font-medium",
53
50
  type: "button",
54
- onClick: (D) => t.value = n
51
+ onClick: (q) => t.value = a
55
52
  }, [
56
- v("span", N, A(l.label), 1)
53
+ v("span", N, A(n.label), 1)
57
54
  ], 8, M),
58
- t.value === n ? (s(), o("div", $)) : m("", !0)
55
+ t.value === a ? (o(), l("div", $)) : p("", !0)
59
56
  ], 2))), 128))
60
- ])) : m("", !0),
61
- u.value.length ? (s(), x(a(z), {
57
+ ], 2)) : p("", !0),
58
+ d.value.length ? (o(), g(i(B), {
62
59
  key: 1,
63
- class: h(["flex-1", e.layout === "reference" && "rounded-b-lg border border-t-0"]),
60
+ class: s(["flex-1", e.layout === "reference" && "rounded-b-lg border border-t-0"]),
64
61
  columns: [""],
65
62
  presentational: ""
66
63
  }, {
67
64
  default: C(() => [
68
- p(_, {
65
+ h(z, {
69
66
  collection: e.collection,
70
67
  envVariables: e.envVariables,
71
68
  environment: e.environment,
72
69
  layout: e.layout,
73
70
  persistAuth: e.persistAuth,
74
- securitySchemeUids: u.value,
71
+ securitySchemeUids: d.value,
75
72
  server: e.server,
76
73
  workspace: e.workspace
77
74
  }, null, 8, ["collection", "envVariables", "environment", "layout", "persistAuth", "securitySchemeUids", "server", "workspace"])
78
75
  ]),
79
76
  _: 1
80
- }, 8, ["class"])) : (s(), o("div", q, " No authentication selected ")),
81
- p(O, {
77
+ }, 8, ["class"])) : (o(), l("div", {
78
+ key: 2,
79
+ class: s([
80
+ "text-c-3 bg-b-1 flex min-h-16 items-center justify-center border-t px-4 text-sm",
81
+ e.layout === "reference" && "min-h-[calc(4rem+0.5px)] rounded-b-lg border"
82
+ ])
83
+ }, " No authentication selected ", 2)),
84
+ h(O, {
82
85
  scheme: f.value,
83
- state: a(c),
84
- onClose: r[0] || (r[0] = (l) => a(c).hide())
86
+ state: i(u),
87
+ onClose: r[0] || (r[0] = (n) => i(u).hide())
85
88
  }, null, 8, ["scheme", "state"])
86
89
  ], 32));
87
90
  }
88
91
  });
89
92
  export {
90
- F as default
93
+ j as default
91
94
  };
@@ -34,7 +34,7 @@ const W = { class: "col-1 flex-center relative gap-6 p-2 capitalize" }, $ = {
34
34
  }));
35
35
  }, k = (o) => {
36
36
  o != null && o.createNew && x.name === "request" && f();
37
- }, w = "2.4.1";
37
+ }, w = "2.4.3";
38
38
  return R(() => a.hotKeys.on(k)), v(() => a.hotKeys.off(k)), (o, e) => (u(), l("div", W, [
39
39
  s("div", {
40
40
  class: y(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center", {
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "rest",
19
19
  "testing"
20
20
  ],
21
- "version": "2.4.1",
21
+ "version": "2.4.3",
22
22
  "engines": {
23
23
  "node": ">=20"
24
24
  },
@@ -204,20 +204,20 @@
204
204
  "whatwg-mimetype": "^4.0.0",
205
205
  "yaml": "^2.4.5",
206
206
  "zod": "3.24.1",
207
- "@scalar/draggable": "0.2.0",
208
207
  "@scalar/components": "0.14.1",
208
+ "@scalar/draggable": "0.2.0",
209
209
  "@scalar/icons": "0.4.1",
210
+ "@scalar/import": "0.4.2",
211
+ "@scalar/object-utils": "1.2.1",
210
212
  "@scalar/oas-utils": "0.3.1",
211
- "@scalar/import": "0.4.1",
212
- "@scalar/openapi-parser": "0.11.0",
213
+ "@scalar/openapi-parser": "0.11.1",
213
214
  "@scalar/openapi-types": "0.3.1",
214
- "@scalar/object-utils": "1.2.1",
215
- "@scalar/snippetz": "0.3.0",
216
- "@scalar/themes": "0.12.1",
217
215
  "@scalar/postman-to-openapi": "0.3.1",
216
+ "@scalar/themes": "0.12.1",
218
217
  "@scalar/types": "0.2.1",
219
- "@scalar/use-codemirror": "0.12.1",
218
+ "@scalar/use-codemirror": "0.12.2",
220
219
  "@scalar/use-hooks": "0.2.1",
220
+ "@scalar/snippetz": "0.3.0",
221
221
  "@scalar/use-toasts": "0.8.0",
222
222
  "@scalar/use-tooltip": "1.1.0"
223
223
  },
@@ -234,8 +234,8 @@
234
234
  "vite": "5.4.19",
235
235
  "vite-svg-loader": "^5.1.0",
236
236
  "vitest": "^1.6.0",
237
- "@scalar/galaxy": "0.4.1",
238
- "@scalar/build-tooling": "0.2.0"
237
+ "@scalar/build-tooling": "0.2.0",
238
+ "@scalar/galaxy": "0.4.1"
239
239
  },
240
240
  "scripts": {
241
241
  "build": "scalar-build-vite",