@scalar/api-client 2.0.43 → 2.0.44

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,12 +1,12 @@
1
- import { defineComponent as F, openBlock as u, createBlock as r, unref as m, withCtx as d, createElementBlock as y, Fragment as w, renderList as I, createCommentVNode as c, createVNode as i, createSlots as C, createTextVNode as U, toDisplayString as V, createElementVNode as p, computed as x, pushScopeId as E, popScopeId as T } from "vue";
2
- import k from "../../../components/CodeInput/CodeInput.vue.js";
3
- import N from "../../../components/DataTable/DataTable.vue.js";
1
+ import { defineComponent as F, openBlock as u, createBlock as r, unref as m, withCtx as d, createElementBlock as w, Fragment as V, renderList as C, createCommentVNode as c, createVNode as i, normalizeClass as I, createSlots as U, createTextVNode as x, toDisplayString as k, createElementVNode as p, computed as E, pushScopeId as T, popScopeId as N } from "vue";
2
+ import g from "../../../components/CodeInput/CodeInput.vue.js";
3
+ import q from "../../../components/DataTable/DataTable.vue.js";
4
4
  import f from "../../../components/DataTable/DataTableCell.vue.js";
5
- import q from "../../../components/DataTable/DataTableCheckbox.vue.js";
5
+ import z from "../../../components/DataTable/DataTableCheckbox.vue.js";
6
6
  import D from "../../../components/DataTable/DataTableRow.vue.js";
7
- import { ScalarButton as H, ScalarIcon as z } from "@scalar/components";
8
- import A from "./RequestTableTooltip.vue.js";
9
- const M = (s) => (E("data-v-2b656c55"), s = s(), T(), s), O = { class: "text-c-2 max-w-[100%] overflow-hidden filemask flex items-end justify-end" }, j = ["onClick"], K = /* @__PURE__ */ M(() => /* @__PURE__ */ p("span", null, "File", -1)), Z = /* @__PURE__ */ F({
7
+ import { ScalarButton as H, ScalarIcon as A } from "@scalar/components";
8
+ import M from "./RequestTableTooltip.vue.js";
9
+ const O = (s) => (T("data-v-0c169f89"), s = s(), N(), s), j = { class: "text-c-2 max-w-[100%] overflow-hidden filemask flex items-end justify-end" }, K = ["onClick"], L = /* @__PURE__ */ O(() => /* @__PURE__ */ p("span", null, "File", -1)), ee = /* @__PURE__ */ F({
10
10
  __name: "RequestTable",
11
11
  props: {
12
12
  items: {},
@@ -14,12 +14,12 @@ const M = (s) => (E("data-v-2b656c55"), s = s(), T(), s), O = { class: "text-c-2
14
14
  showUploadButton: { type: Boolean, default: !1 }
15
15
  },
16
16
  emits: ["updateRow", "toggleRow", "addRow", "deleteRow", "inputFocus", "inputBlur", "uploadFile", "removeFile"],
17
- setup(s, { emit: g }) {
18
- const h = s, t = g, B = h.isEnabledHidden ? ["", ""] : ["", "", "36px"], b = (e, n, l) => {
19
- t("updateRow", e, n, l);
20
- }, _ = (e) => {
21
- t("uploadFile", e);
22
- }, $ = (e) => !!(e.description || e.type || e.default || e.format), v = (e) => x(() => {
17
+ setup(s, { emit: h }) {
18
+ const B = s, a = h, _ = B.isEnabledHidden ? ["", ""] : ["", "", "36px"], b = (e, n, l) => {
19
+ a("updateRow", e, n, l);
20
+ }, $ = (e) => {
21
+ a("uploadFile", e);
22
+ }, v = (e) => !!(e.description || e.type || e.default || e.format), y = (e) => E(() => {
23
23
  if (e.type === "integer" && e.value !== void 0) {
24
24
  const n = Number(e.value);
25
25
  if (e.minimum !== void 0 && n < e.minimum)
@@ -29,39 +29,42 @@ const M = (s) => (E("data-v-2b656c55"), s = s(), T(), s), O = { class: "text-c-2
29
29
  }
30
30
  return !1;
31
31
  }), R = (e) => Array.isArray(e.default) && e.default.length === 1 ? e.default[0] : e.default;
32
- return (e, n) => (u(), r(N, {
32
+ return (e, n) => (u(), r(q, {
33
33
  class: "flex-1",
34
- columns: m(B)
34
+ columns: m(_)
35
35
  }, {
36
36
  default: d(() => [
37
- (u(!0), y(w, null, I(e.items, (l, a) => (u(), r(D, { key: a }, {
37
+ (u(!0), w(V, null, C(e.items, (l, t) => (u(), r(D, { key: t }, {
38
38
  default: d(() => [
39
- e.isEnabledHidden ? c("", !0) : (u(), r(q, {
39
+ e.isEnabledHidden ? c("", !0) : (u(), r(z, {
40
40
  key: 0,
41
41
  modelValue: l.enabled,
42
- "onUpdate:modelValue": (o) => t("toggleRow", a, o)
42
+ "onUpdate:modelValue": (o) => a("toggleRow", t, o)
43
43
  }, null, 8, ["modelValue", "onUpdate:modelValue"])),
44
44
  i(f, null, {
45
45
  default: d(() => [
46
- i(k, {
46
+ i(g, {
47
47
  disableCloseBrackets: "",
48
48
  disableEnter: "",
49
49
  disableTabIndent: "",
50
50
  modelValue: l.key,
51
51
  placeholder: "Key",
52
52
  required: l.required,
53
- onBlur: n[0] || (n[0] = (o) => t("inputBlur")),
54
- onFocus: n[1] || (n[1] = (o) => t("inputFocus")),
55
- onInput: (o) => e.items && a === e.items.length - 1 && t("addRow"),
56
- onSelectVariable: (o) => b(a, "key", o),
57
- "onUpdate:modelValue": (o) => t("updateRow", a, "key", o)
53
+ onBlur: n[0] || (n[0] = (o) => a("inputBlur")),
54
+ onFocus: n[1] || (n[1] = (o) => a("inputFocus")),
55
+ onInput: (o) => e.items && t === e.items.length - 1 && a("addRow"),
56
+ onSelectVariable: (o) => b(t, "key", o),
57
+ "onUpdate:modelValue": (o) => a("updateRow", t, "key", o)
58
58
  }, null, 8, ["modelValue", "required", "onInput", "onSelectVariable", "onUpdate:modelValue"])
59
59
  ]),
60
60
  _: 2
61
61
  }, 1024),
62
62
  i(f, null, {
63
63
  default: d(() => [
64
- i(k, {
64
+ i(g, {
65
+ class: I({
66
+ "pr-6": v(l)
67
+ }),
65
68
  disableCloseBrackets: "",
66
69
  disableEnter: "",
67
70
  disableTabIndent: "",
@@ -72,28 +75,28 @@ const M = (s) => (E("data-v-2b656c55"), s = s(), T(), s), O = { class: "text-c-2
72
75
  nullable: l.nullable,
73
76
  placeholder: "Value",
74
77
  type: l.type,
75
- onBlur: n[2] || (n[2] = (o) => t("inputBlur")),
76
- onFocus: n[3] || (n[3] = (o) => t("inputFocus")),
77
- onInput: (o) => e.items && a === e.items.length - 1 && t("addRow"),
78
- onSelectVariable: (o) => b(a, "value", o),
79
- "onUpdate:modelValue": (o) => t("updateRow", a, "value", o)
80
- }, C({
78
+ onBlur: n[2] || (n[2] = (o) => a("inputBlur")),
79
+ onFocus: n[3] || (n[3] = (o) => a("inputFocus")),
80
+ onInput: (o) => e.items && t === e.items.length - 1 && a("addRow"),
81
+ onSelectVariable: (o) => b(t, "value", o),
82
+ "onUpdate:modelValue": (o) => a("updateRow", t, "value", o)
83
+ }, U({
81
84
  icon: d(() => [
82
- $(l) ? (u(), r(A, {
85
+ v(l) ? (u(), r(M, {
83
86
  key: 0,
84
87
  item: { ...l, default: R(l) }
85
88
  }, null, 8, ["item"])) : c("", !0)
86
89
  ]),
87
90
  _: 2
88
91
  }, [
89
- v(l).value ? {
92
+ y(l).value ? {
90
93
  name: "warning",
91
94
  fn: d(() => [
92
- U(V(v(l).value), 1)
95
+ x(k(y(l).value), 1)
93
96
  ]),
94
97
  key: "0"
95
98
  } : void 0
96
- ]), 1032, ["enum", "max", "min", "modelValue", "nullable", "type", "onInput", "onSelectVariable", "onUpdate:modelValue"])
99
+ ]), 1032, ["class", "enum", "max", "min", "modelValue", "nullable", "type", "onInput", "onSelectVariable", "onUpdate:modelValue"])
97
100
  ]),
98
101
  _: 2
99
102
  }, 1024),
@@ -104,25 +107,25 @@ const M = (s) => (E("data-v-2b656c55"), s = s(), T(), s), O = { class: "text-c-2
104
107
  default: d(() => {
105
108
  var o;
106
109
  return [
107
- l.file ? (u(), y(w, { key: 0 }, [
108
- p("div", O, [
109
- p("span", null, V((o = l.file) == null ? void 0 : o.name), 1)
110
+ l.file ? (u(), w(V, { key: 0 }, [
111
+ p("div", j, [
112
+ p("span", null, k((o = l.file) == null ? void 0 : o.name), 1)
110
113
  ]),
111
114
  p("button", {
112
115
  class: "absolute bg-b-2 font-medium centered-x centered-y hidden rounded text-center p-0.5 w-[calc(100%_-_8px)] group-hover/upload:block text-xs",
113
116
  type: "button",
114
- onClick: (S) => t("removeFile", a)
115
- }, " Delete ", 8, j)
117
+ onClick: (S) => a("removeFile", t)
118
+ }, " Delete ", 8, K)
116
119
  ], 64)) : (u(), r(m(H), {
117
120
  key: 1,
118
121
  class: "bg-b-2 hover:bg-b-3 border-0 py-px text-c-2 shadow-none",
119
122
  size: "sm",
120
123
  variant: "outlined",
121
- onClick: (S) => _(a)
124
+ onClick: (S) => $(t)
122
125
  }, {
123
126
  default: d(() => [
124
- K,
125
- i(m(z), {
127
+ L,
128
+ i(m(A), {
126
129
  class: "ml-1",
127
130
  icon: "UploadSimple",
128
131
  size: "xs",
@@ -144,5 +147,5 @@ const M = (s) => (E("data-v-2b656c55"), s = s(), T(), s), O = { class: "text-c-2
144
147
  }
145
148
  });
146
149
  export {
147
- Z as default
150
+ ee as default
148
151
  };
@@ -1 +1 @@
1
- {"version":3,"file":"RequestTableTooltip.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTableTooltip.vue"],"names":[],"mappings":"AA2DA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAA;;UAI1D,uBAAuB;;UAAvB,uBAAuB;;AAwJrD,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
1
+ {"version":3,"file":"RequestTableTooltip.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestTableTooltip.vue"],"names":[],"mappings":"AA6DA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAA;;UAI1D,uBAAuB;;UAAvB,uBAAuB;;AA2JrD,wBAMG;AAOH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AAC5D,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC"}
@@ -1,52 +1,54 @@
1
- import { defineComponent as m, openBlock as t, createBlock as c, unref as i, withCtx as r, createVNode as l, createElementVNode as a, createElementBlock as o, toDisplayString as s, createCommentVNode as n } from "vue";
2
- import { ScalarTooltip as p, ScalarIcon as f } from "@scalar/components";
3
- const d = { class: "grid gap-1.5 pointer-events-none min-w-48 w-content shadow-lg rounded bg-b-1 z-100 p-2 text-xxs leading-5 z-10 text-c-1" }, u = { class: "flex items-center text-c-2" }, h = { key: 0 }, b = {
1
+ import { defineComponent as m, openBlock as t, createBlock as c, unref as i, withCtx as a, createElementVNode as n, createVNode as l, createElementBlock as o, toDisplayString as s, createCommentVNode as r } from "vue";
2
+ import { ScalarTooltip as f, ScalarIcon as p } from "@scalar/components";
3
+ const d = { class: "pl-1 pr-1.5 py-[9px]" }, b = { class: "grid gap-1.5 pointer-events-none min-w-48 w-content shadow-lg rounded bg-b-1 z-100 p-2 text-xxs leading-5 z-10 text-c-1" }, h = { class: "flex items-center text-c-2" }, u = { key: 0 }, g = {
4
4
  key: 1,
5
5
  class: "before:content-['·'] before:block before:mx-[0.5ch] flex"
6
- }, g = {
6
+ }, x = {
7
7
  key: 2,
8
8
  class: "before:content-['·'] before:block before:mx-[0.5ch] flex whitespace-nowrap"
9
- }, k = {
9
+ }, _ = {
10
10
  key: 3,
11
11
  class: "before:content-['·'] before:block before:mx-[0.5ch] flex whitespace-nowrap"
12
- }, x = {
12
+ }, k = {
13
13
  key: 4,
14
14
  class: "before:content-['·'] before:block before:mx-[0.5ch] flex whitespace-nowrap"
15
- }, _ = {
15
+ }, y = {
16
16
  key: 0,
17
17
  class: "leading-snug text-pretty text-sm",
18
18
  style: { maxWidth: "16rem" }
19
- }, z = /* @__PURE__ */ m({
19
+ }, B = /* @__PURE__ */ m({
20
20
  __name: "RequestTableTooltip",
21
21
  props: {
22
22
  item: {}
23
23
  },
24
- setup(y) {
25
- return (e, w) => (t(), c(i(p), {
24
+ setup(w) {
25
+ return (e, v) => (t(), c(i(f), {
26
26
  align: "start",
27
27
  class: "w-full",
28
28
  delay: 0,
29
29
  side: "left",
30
- triggerClass: "p-[7px]"
30
+ triggerClass: "before:absolute before:content-[''] before:bg-gradient-to-r before:from-transparent before:to-b-1 before:min-h-full before:right-[23px] before:w-3 absolute h-8 right-0"
31
31
  }, {
32
- trigger: r(() => [
33
- l(i(f), {
34
- class: "ml-1 text-c-3 group-hover/info:text-c-1",
35
- icon: "Info",
36
- size: "sm",
37
- thickness: "1.5"
38
- })
32
+ trigger: a(() => [
33
+ n("div", d, [
34
+ l(i(p), {
35
+ class: "text-c-3 group-hover/info:text-c-1",
36
+ icon: "Info",
37
+ size: "sm",
38
+ thickness: "1.5"
39
+ })
40
+ ])
39
41
  ]),
40
- content: r(() => [
41
- a("div", d, [
42
- a("div", u, [
43
- e.item.type ? (t(), o("span", h, s(e.item.type), 1)) : n("", !0),
44
- e.item.format ? (t(), o("span", b, s(e.item.format), 1)) : n("", !0),
45
- e.item.minimum ? (t(), o("span", g, "min: " + s(e.item.minimum), 1)) : n("", !0),
46
- e.item.maximum ? (t(), o("span", k, "max: " + s(e.item.maximum), 1)) : n("", !0),
47
- e.item.default ? (t(), o("span", x, "default: " + s(e.item.default), 1)) : n("", !0)
42
+ content: a(() => [
43
+ n("div", b, [
44
+ n("div", h, [
45
+ e.item.type ? (t(), o("span", u, s(e.item.type), 1)) : r("", !0),
46
+ e.item.format ? (t(), o("span", g, s(e.item.format), 1)) : r("", !0),
47
+ e.item.minimum ? (t(), o("span", x, "min: " + s(e.item.minimum), 1)) : r("", !0),
48
+ e.item.maximum ? (t(), o("span", _, "max: " + s(e.item.maximum), 1)) : r("", !0),
49
+ e.item.default ? (t(), o("span", k, "default: " + s(e.item.default), 1)) : r("", !0)
48
50
  ]),
49
- e.item.description ? (t(), o("span", _, s(e.item.description), 1)) : n("", !0)
51
+ e.item.description ? (t(), o("span", y, s(e.item.description), 1)) : r("", !0)
50
52
  ])
51
53
  ]),
52
54
  _: 1
@@ -54,5 +56,5 @@ const d = { class: "grid gap-1.5 pointer-events-none min-w-48 w-content shadow-l
54
56
  }
55
57
  });
56
58
  export {
57
- z as default
59
+ B as default
58
60
  };
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "rest",
19
19
  "testing"
20
20
  ],
21
- "version": "2.0.43",
21
+ "version": "2.0.44",
22
22
  "engines": {
23
23
  "node": ">=18"
24
24
  },
@@ -127,14 +127,14 @@
127
127
  "vue-router": "^4.3.0",
128
128
  "whatwg-mimetype": "^4.0.0",
129
129
  "zod": "^3.22.4",
130
- "@scalar/components": "0.12.28",
131
130
  "@scalar/draggable": "0.1.4",
132
- "@scalar/oas-utils": "0.2.24",
133
131
  "@scalar/object-utils": "1.1.5",
132
+ "@scalar/oas-utils": "0.2.25",
134
133
  "@scalar/themes": "0.9.20",
135
134
  "@scalar/use-toasts": "0.7.4",
135
+ "@scalar/use-tooltip": "1.0.2",
136
136
  "@scalar/use-codemirror": "0.11.10",
137
- "@scalar/use-tooltip": "1.0.2"
137
+ "@scalar/components": "0.12.28"
138
138
  },
139
139
  "devDependencies": {
140
140
  "@types/content-type": "^1.1.8",