@scalar/api-client 2.3.33 → 2.3.34

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":"RequestTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTable.vue"],"names":[],"mappings":"AA8QA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AACrE,OAAO,EAAc,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAQ9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAO1D,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,CAAC,uBAAuB,GAAG;QAAE,KAAK,CAAC,EAAE,gBAAgB,CAAA;KAAE,CAAC,EAAE,CAAA;IAClE,8BAA8B;IAC9B,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;IACpB,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;;;;;;;;;;;;;;;;;;;;yBATsB,OAAO;sBACV,OAAO;cACf,OAAO;gBACL,OAAO;;AAukBxB,wBASG"}
1
+ {"version":3,"file":"RequestTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTable.vue"],"names":[],"mappings":"AAgRA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AACzE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAC9E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AACrE,OAAO,EAAc,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAQ9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAO1D,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,CAAC,uBAAuB,GAAG;QAAE,KAAK,CAAC,EAAE,gBAAgB,CAAA;KAAE,CAAC,EAAE,CAAA;IAClE,8BAA8B;IAC9B,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,EAAE,WAAW,CAAA;IACxB,YAAY,EAAE,WAAW,EAAE,CAAA;IAC3B,SAAS,EAAE,SAAS,CAAA;IACpB,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;;;;;;;;;;;;;;;;;;;;yBATsB,OAAO;sBACV,OAAO;cACf,OAAO;gBACL,OAAO;;AAukBxB,wBASG"}
@@ -1,7 +1,7 @@
1
- import o from "./RequestTable.vue2.js";
1
+ import e from "./RequestTable.vue2.js";
2
2
  /* empty css */
3
- import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9b558be3"]]);
3
+ import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const c = /* @__PURE__ */ o(e, [["__scopeId", "data-v-d3cec84e"]]);
5
5
  export {
6
- m as default
6
+ c as default
7
7
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as _, createBlock as p, openBlock as d, withCtx as n, createVNode as t, createElementBlock as f, createTextVNode as b, toDisplayString as c, Fragment as h, renderList as q, normalizeClass as v, unref as r, createCommentVNode as k, createElementVNode as i } from "vue";
2
- import { ScalarTooltip as D, ScalarIcon as x, ScalarButton as B } from "@scalar/components";
1
+ import { defineComponent as q, createBlock as p, openBlock as d, withCtx as n, createVNode as t, createElementBlock as b, createTextVNode as f, toDisplayString as c, Fragment as h, renderList as D, normalizeClass as v, unref as s, createCommentVNode as k, createElementVNode as i } from "vue";
2
+ import { ScalarTooltip as _, ScalarIcon as B, ScalarButton as x } from "@scalar/components";
3
3
  import { ScalarIconTrash as E } from "@scalar/icons";
4
4
  import { RouterLink as G } from "vue-router";
5
5
  import R from "../../../components/CodeInput/CodeInput.vue.js";
@@ -9,11 +9,11 @@ import P from "../../../components/DataTable/DataTableCheckbox.vue.js";
9
9
  import w from "../../../components/DataTable/DataTableHeader.vue.js";
10
10
  import C from "../../../components/DataTable/DataTableRow.vue.js";
11
11
  import { parameterIsInvalid as j, hasItemProperties as V } from "../libs/request.js";
12
- import O from "./RequestTableTooltip.vue.js";
13
- const A = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify-end overflow-hidden p-1" }, K = ["onClick"], L = {
12
+ import K from "./RequestTableTooltip.vue.js";
13
+ const O = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify-end overflow-hidden p-1" }, A = ["onClick"], L = {
14
14
  key: 1,
15
15
  class: "p-0.5"
16
- }, ne = /* @__PURE__ */ _({
16
+ }, ne = /* @__PURE__ */ q({
17
17
  __name: "RequestTable",
18
18
  props: {
19
19
  items: {},
@@ -28,62 +28,62 @@ const A = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
28
28
  label: {}
29
29
  },
30
30
  emits: ["updateRow", "toggleRow", "addRow", "deleteRow", "inputFocus", "inputBlur", "uploadFile", "removeFile"],
31
- setup(F, { emit: U }) {
32
- const m = F, s = U, $ = ["", "", "36px"], g = (e, o, l) => {
33
- s("updateRow", e, o, l);
31
+ setup($, { emit: F }) {
32
+ const m = $, r = F, U = ["", "", "36px"], g = (e, o, l) => {
33
+ r("updateRow", e, o, l);
34
34
  }, S = (e) => {
35
- s("uploadFile", e);
35
+ r("uploadFile", e);
36
36
  }, z = (e) => Array.isArray(e.default) && e.default.length === 1 ? e.default[0] : e.default, T = (e) => !!(e.key || e.value);
37
37
  return (e, o) => (d(), p(N, {
38
38
  class: "group/table flex-1",
39
- columns: $
39
+ columns: U
40
40
  }, {
41
41
  default: n(() => [
42
42
  t(C, { class: "sr-only !block" }, {
43
43
  default: n(() => [
44
44
  t(w, null, {
45
45
  default: n(() => [
46
- b(c(e.label) + " Enabled", 1)
46
+ f(c(e.label) + " Enabled", 1)
47
47
  ]),
48
48
  _: 1
49
49
  }),
50
50
  t(w, null, {
51
51
  default: n(() => [
52
- b(c(e.label) + " Key", 1)
52
+ f(c(e.label) + " Key", 1)
53
53
  ]),
54
54
  _: 1
55
55
  }),
56
56
  t(w, null, {
57
57
  default: n(() => [
58
- b(c(e.label) + " Value", 1)
58
+ f(c(e.label) + " Value", 1)
59
59
  ]),
60
60
  _: 1
61
61
  })
62
62
  ]),
63
63
  _: 1
64
64
  }),
65
- (d(!0), f(h, null, q(e.items, (l, u) => (d(), p(C, {
65
+ (d(!0), b(h, null, D(e.items, (l, u) => (d(), p(C, {
66
66
  id: l.key,
67
67
  key: u,
68
68
  class: v({
69
- alert: r(j)(l).value,
69
+ alert: s(j)(l).value,
70
70
  error: e.invalidParams && e.invalidParams.has(l.key)
71
71
  })
72
72
  }, {
73
73
  default: n(() => [
74
- e.isGlobal ? (d(), p(r(G), {
74
+ e.isGlobal ? (d(), p(s(G), {
75
75
  key: 0,
76
76
  class: "!border-r-1/2 border-t-1/2 text-c-2 flex items-center justify-center",
77
77
  to: l.route ?? {}
78
78
  }, {
79
79
  default: n(() => [
80
80
  o[5] || (o[5] = i("span", { class: "sr-only" }, "Global", -1)),
81
- t(r(D), {
81
+ t(s(_), {
82
82
  as: "div",
83
83
  side: "top"
84
84
  }, {
85
85
  trigger: n(() => [
86
- t(r(x), {
86
+ t(s(B), {
87
87
  class: "text-c-1",
88
88
  icon: "Globe",
89
89
  size: "xs"
@@ -105,11 +105,12 @@ const A = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
105
105
  class: "!border-r-1/2",
106
106
  disabled: m.hasCheckboxDisabled,
107
107
  modelValue: l.enabled,
108
- "onUpdate:modelValue": (a) => s("toggleRow", u, a)
108
+ "onUpdate:modelValue": (a) => r("toggleRow", u, a)
109
109
  }, null, 8, ["disabled", "modelValue", "onUpdate:modelValue"])),
110
110
  t(y, null, {
111
111
  default: n(() => [
112
112
  t(R, {
113
+ "aria-label": `${e.label} Key`,
113
114
  disableCloseBrackets: "",
114
115
  disabled: m.isReadOnly,
115
116
  disableEnter: "",
@@ -121,19 +122,20 @@ const A = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
121
122
  placeholder: "Key",
122
123
  required: !!l.required,
123
124
  workspace: e.workspace,
124
- onBlur: o[0] || (o[0] = (a) => s("inputBlur")),
125
- onFocus: o[1] || (o[1] = (a) => s("inputFocus")),
125
+ onBlur: o[0] || (o[0] = (a) => r("inputBlur")),
126
+ onFocus: o[1] || (o[1] = (a) => r("inputFocus")),
126
127
  onSelectVariable: (a) => g(u, "key", a),
127
- "onUpdate:modelValue": (a) => s("updateRow", u, "key", a)
128
- }, null, 8, ["disabled", "envVariables", "environment", "modelValue", "required", "workspace", "onSelectVariable", "onUpdate:modelValue"])
128
+ "onUpdate:modelValue": (a) => r("updateRow", u, "key", a)
129
+ }, null, 8, ["aria-label", "disabled", "envVariables", "environment", "modelValue", "required", "workspace", "onSelectVariable", "onUpdate:modelValue"])
129
130
  ]),
130
131
  _: 2
131
132
  }, 1024),
132
133
  t(y, null, {
133
134
  default: n(() => [
134
135
  t(R, {
136
+ "aria-label": `${e.label} Value`,
135
137
  class: v(
136
- r(V)(l) ? "pr-6 group-hover:pr-10 group-has-[.cm-focused]:pr-10" : "group-hover:pr-6 group-has-[.cm-focused]:pr-6"
138
+ s(V)(l) ? "pr-6 group-hover:pr-10 group-has-[.cm-focused]:pr-10" : "group-hover:pr-6 group-has-[.cm-focused]:pr-6"
137
139
  ),
138
140
  default: l.default,
139
141
  disableCloseBrackets: "",
@@ -152,33 +154,33 @@ const A = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
152
154
  placeholder: "Value",
153
155
  type: l.type,
154
156
  workspace: e.workspace,
155
- onBlur: o[2] || (o[2] = (a) => s("inputBlur")),
156
- onFocus: o[3] || (o[3] = (a) => s("inputFocus")),
157
+ onBlur: o[2] || (o[2] = (a) => r("inputBlur")),
158
+ onFocus: o[3] || (o[3] = (a) => r("inputFocus")),
157
159
  onSelectVariable: (a) => g(u, "value", a),
158
- "onUpdate:modelValue": (a) => s("updateRow", u, "value", a)
160
+ "onUpdate:modelValue": (a) => r("updateRow", u, "value", a)
159
161
  }, {
160
162
  icon: n(() => [
161
- T(l) && !l.required ? (d(), p(r(B), {
163
+ T(l) && !l.required ? (d(), p(s(x), {
162
164
  key: 0,
163
165
  class: v([{
164
- "-mr-0.5": r(V)(l)
166
+ "-mr-0.5": s(V)(l)
165
167
  }, "text-c-2 hover:text-c-1 hover:bg-b-2 z-context hidden h-fit rounded p-1 group-hover:flex group-has-[.cm-focused]:flex"]),
166
168
  size: "sm",
167
169
  variant: "ghost",
168
- onClick: (a) => s("deleteRow", u)
170
+ onClick: (a) => r("deleteRow", u)
169
171
  }, {
170
172
  default: n(() => [
171
- t(r(E), { class: "size-3.5" })
173
+ t(s(E), { class: "size-3.5" })
172
174
  ]),
173
175
  _: 2
174
176
  }, 1032, ["class", "onClick"])) : k("", !0),
175
- r(V)(l) ? (d(), p(O, {
177
+ s(V)(l) ? (d(), p(K, {
176
178
  key: 1,
177
179
  item: { ...l, default: z(l) }
178
180
  }, null, 8, ["item"])) : k("", !0)
179
181
  ]),
180
182
  _: 2
181
- }, 1032, ["class", "default", "disabled", "enum", "envVariables", "environment", "examples", "max", "min", "modelValue", "nullable", "type", "workspace", "onSelectVariable", "onUpdate:modelValue"])
183
+ }, 1032, ["aria-label", "class", "default", "disabled", "enum", "envVariables", "environment", "examples", "max", "min", "modelValue", "nullable", "type", "workspace", "onSelectVariable", "onUpdate:modelValue"])
182
184
  ]),
183
185
  _: 2
184
186
  }, 1024),
@@ -189,17 +191,17 @@ const A = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
189
191
  default: n(() => {
190
192
  var a;
191
193
  return [
192
- l.file ? (d(), f(h, { key: 0 }, [
193
- i("div", A, [
194
+ l.file ? (d(), b(h, { key: 0 }, [
195
+ i("div", O, [
194
196
  i("span", null, c((a = l.file) == null ? void 0 : a.name), 1)
195
197
  ]),
196
198
  i("button", {
197
199
  class: "bg-b-2 centered-x centered-y absolute hidden w-[calc(100%_-_8px)] rounded p-0.5 text-center text-xs font-medium group-hover/upload:block",
198
200
  type: "button",
199
- onClick: (I) => s("removeFile", u)
200
- }, " Delete ", 8, K)
201
- ], 64)) : (d(), f("div", L, [
202
- t(r(B), {
201
+ onClick: (I) => r("removeFile", u)
202
+ }, " Delete ", 8, A)
203
+ ], 64)) : (d(), b("div", L, [
204
+ t(s(x), {
203
205
  class: "bg-b-2 hover:bg-b-3 text-c-2 h-fit border-0 py-px shadow-none",
204
206
  size: "sm",
205
207
  variant: "outlined",
@@ -207,7 +209,7 @@ const A = { class: "text-c-2 filemask flex w-full max-w-[100%] items-end justify
207
209
  }, {
208
210
  default: n(() => [
209
211
  o[6] || (o[6] = i("span", null, "Upload File", -1)),
210
- t(r(x), {
212
+ t(s(B), {
211
213
  class: "ml-1",
212
214
  icon: "Upload",
213
215
  size: "xs",
@@ -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.3.33";
37
+ }, w = "2.3.34";
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.3.33",
21
+ "version": "2.3.34",
22
22
  "engines": {
23
23
  "node": ">=18"
24
24
  },
@@ -199,20 +199,20 @@
199
199
  "whatwg-mimetype": "^4.0.0",
200
200
  "yaml": "^2.4.5",
201
201
  "zod": "3.24.1",
202
- "@scalar/components": "0.13.58",
203
- "@scalar/icons": "0.3.6",
202
+ "@scalar/components": "0.13.59",
204
203
  "@scalar/draggable": "0.1.11",
205
- "@scalar/import": "0.3.26",
206
- "@scalar/oas-utils": "0.2.143",
207
- "@scalar/object-utils": "1.1.14",
204
+ "@scalar/icons": "0.3.7",
205
+ "@scalar/import": "0.3.27",
206
+ "@scalar/oas-utils": "0.2.144",
208
207
  "@scalar/openapi-parser": "0.10.17",
208
+ "@scalar/object-utils": "1.1.14",
209
+ "@scalar/postman-to-openapi": "0.2.17",
209
210
  "@scalar/openapi-types": "0.2.3",
210
211
  "@scalar/snippetz": "0.2.20",
211
- "@scalar/themes": "0.11.2",
212
- "@scalar/types": "0.1.15",
213
- "@scalar/postman-to-openapi": "0.2.16",
214
- "@scalar/use-codemirror": "0.11.103",
215
- "@scalar/use-hooks": "0.1.49",
212
+ "@scalar/types": "0.1.16",
213
+ "@scalar/use-codemirror": "0.11.104",
214
+ "@scalar/themes": "0.11.3",
215
+ "@scalar/use-hooks": "0.1.50",
216
216
  "@scalar/use-tooltip": "1.0.7",
217
217
  "@scalar/use-toasts": "0.7.10"
218
218
  },
@@ -229,8 +229,8 @@
229
229
  "vite": "5.4.19",
230
230
  "vite-svg-loader": "^5.1.0",
231
231
  "vitest": "^1.6.0",
232
- "@scalar/build-tooling": "0.1.19",
233
- "@scalar/galaxy": "0.3.2"
232
+ "@scalar/galaxy": "0.3.2",
233
+ "@scalar/build-tooling": "0.1.19"
234
234
  },
235
235
  "scripts": {
236
236
  "build": "scalar-build-vite",