@scalar/api-client 2.2.62 → 2.3.1

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 (40) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/README.md +2 -6
  3. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  4. package/dist/components/AddressBar/AddressBar.vue.js +2 -2
  5. package/dist/components/AddressBar/AddressBar.vue2.js +38 -38
  6. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  7. package/dist/components/CodeInput/CodeInput.vue.js +1 -1
  8. package/dist/components/CodeInput/CodeInput.vue2.js +21 -21
  9. package/dist/components/DataTable/DataTableInput.vue.d.ts +1 -0
  10. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  11. package/dist/components/DataTable/DataTableInput.vue.js +3 -3
  12. package/dist/components/DataTable/DataTableInput.vue2.js +48 -47
  13. package/dist/components/SectionFilter.vue.js +2 -2
  14. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +1 -1
  15. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  16. package/dist/layouts/App/create-api-client-app.js +13 -14
  17. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  18. package/dist/layouts/Modal/create-api-client-modal.js +18 -19
  19. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  20. package/dist/layouts/Web/create-api-client-web.js +13 -14
  21. package/dist/libs/create-client.d.ts +1 -1
  22. package/dist/libs/create-client.d.ts.map +1 -1
  23. package/dist/libs/create-client.js +20 -20
  24. package/dist/style.css +1 -1
  25. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
  26. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +8 -7
  27. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.d.ts.map +1 -1
  28. package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +21 -23
  29. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
  30. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +1 -1
  31. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
  32. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +2 -2
  33. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +74 -63
  34. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  35. package/dist/views/Request/RequestSection/RequestParams.vue.js +31 -31
  36. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.d.ts.map +1 -1
  37. package/dist/views/Request/RequestSection/RequestTableTooltip.vue.js +1 -1
  38. package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +17 -17
  39. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  40. package/package.json +10 -10
@@ -1,23 +1,23 @@
1
- import { defineComponent as l, openBlock as t, createBlock as p, unref as r, withCtx as a, createElementVNode as m, createVNode as u, normalizeClass as d, createElementBlock as o, toDisplayString as s, createCommentVNode as i } from "vue";
2
- import { ScalarTooltip as c, ScalarIcon as f } from "@scalar/components";
1
+ import { defineComponent as l, openBlock as t, createBlock as p, unref as r, withCtx as a, createElementVNode as m, createVNode as u, normalizeClass as d, createElementBlock as o, toDisplayString as i, createCommentVNode as s } from "vue";
2
+ import { ScalarTooltip as f, ScalarIcon as c } from "@scalar/components";
3
3
  import { parameterIsInvalid as n } from "../libs/request.js";
4
- const g = { class: "bg-b-1 mr-0.25 pl-1 pr-1.5 group-[.alert]:bg-transparent group-[.error]:bg-transparent" }, b = { class: "w-content bg-b-1 text-xxs text-c-1 pointer-events-none grid min-w-48 gap-1.5 rounded p-2 leading-5 shadow-lg" }, h = {
4
+ const g = { class: "bg-b-1 mr-1 pl-1 pr-1.5 group-[.alert]:bg-transparent group-[.error]:bg-transparent" }, b = { class: "w-content bg-b-1 text-xxs text-c-1 pointer-events-none grid min-w-48 gap-1.5 rounded p-2 leading-5 shadow-lg" }, h = {
5
5
  key: 0,
6
6
  class: "text-error-1"
7
7
  }, y = {
8
8
  key: 1,
9
9
  class: "schema text-c-2 flex items-center"
10
- }, v = { key: 0 }, k = { key: 1 }, _ = { key: 2 }, w = { key: 3 }, x = { key: 4 }, C = {
10
+ }, v = { key: 0 }, k = { key: 1 }, _ = { key: 2 }, w = { key: 3 }, C = { key: 4 }, I = {
11
11
  key: 2,
12
12
  class: "text-pretty text-sm leading-snug",
13
13
  style: { maxWidth: "16rem" }
14
- }, V = /* @__PURE__ */ l({
14
+ }, z = /* @__PURE__ */ l({
15
15
  __name: "RequestTableTooltip",
16
16
  props: {
17
17
  item: {}
18
18
  },
19
- setup(I) {
20
- return (e, B) => (t(), p(r(c), {
19
+ setup(B) {
20
+ return (e, N) => (t(), p(r(f), {
21
21
  align: "start",
22
22
  class: "w-full pr-px",
23
23
  delay: 0,
@@ -26,7 +26,7 @@ const g = { class: "bg-b-1 mr-0.25 pl-1 pr-1.5 group-[.alert]:bg-transparent gro
26
26
  }, {
27
27
  trigger: a(() => [
28
28
  m("div", g, [
29
- u(r(f), {
29
+ u(r(c), {
30
30
  class: d(
31
31
  r(n)(e.item).value ? "text-orange brightness-[.9]" : "text-c-3 group-hover/info:text-c-1"
32
32
  ),
@@ -38,14 +38,14 @@ const g = { class: "bg-b-1 mr-0.25 pl-1 pr-1.5 group-[.alert]:bg-transparent gro
38
38
  ]),
39
39
  content: a(() => [
40
40
  m("div", b, [
41
- r(n)(e.item).value ? (t(), o("div", h, s(r(n)(e.item).value), 1)) : (t(), o("div", y, [
42
- e.item.type ? (t(), o("span", v, s(e.item.type), 1)) : i("", !0),
43
- e.item.format ? (t(), o("span", k, s(e.item.format), 1)) : i("", !0),
44
- e.item.minimum ? (t(), o("span", _, "min: " + s(e.item.minimum), 1)) : i("", !0),
45
- e.item.maximum ? (t(), o("span", w, "max: " + s(e.item.maximum), 1)) : i("", !0),
46
- e.item.default ? (t(), o("span", x, "default: " + s(e.item.default), 1)) : i("", !0)
47
- ])),
48
- e.item.description && !r(n)(e.item).value ? (t(), o("span", C, s(e.item.description), 1)) : i("", !0)
41
+ r(n)(e.item).value ? (t(), o("div", h, i(r(n)(e.item).value), 1)) : e.item.type || e.item.format || e.item.minimum || e.item.maximum || e.item.default ? (t(), o("div", y, [
42
+ e.item.type ? (t(), o("span", v, i(e.item.type), 1)) : s("", !0),
43
+ e.item.format ? (t(), o("span", k, i(e.item.format), 1)) : s("", !0),
44
+ e.item.minimum ? (t(), o("span", _, "min: " + i(e.item.minimum), 1)) : s("", !0),
45
+ e.item.maximum ? (t(), o("span", w, "max: " + i(e.item.maximum), 1)) : s("", !0),
46
+ e.item.default ? (t(), o("span", C, "default: " + i(e.item.default), 1)) : s("", !0)
47
+ ])) : s("", !0),
48
+ e.item.description && !r(n)(e.item).value ? (t(), o("span", I, i(e.item.description), 1)) : s("", !0)
49
49
  ])
50
50
  ]),
51
51
  _: 1
@@ -53,5 +53,5 @@ const g = { class: "bg-b-1 mr-0.25 pl-1 pr-1.5 group-[.alert]:bg-transparent gro
53
53
  }
54
54
  });
55
55
  export {
56
- V as default
56
+ z as default
57
57
  };
@@ -36,7 +36,7 @@ const P = { class: "col-1 flex-center relative gap-6 p-2 capitalize" }, T = {
36
36
  }));
37
37
  }, y = (s) => {
38
38
  s != null && s.createNew && w.name === "request" && k();
39
- }, N = "2.2.62";
39
+ }, N = "2.3.1";
40
40
  return B(() => r.hotKeys.on(y)), E(() => r.hotKeys.off(y)), (s, e) => (u(), i("div", P, [
41
41
  o("div", {
42
42
  class: q(["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.2.62",
21
+ "version": "2.3.1",
22
22
  "engines": {
23
23
  "node": ">=18"
24
24
  },
@@ -188,21 +188,21 @@
188
188
  "whatwg-mimetype": "^4.0.0",
189
189
  "yaml": "^2.4.5",
190
190
  "zod": "^3.23.8",
191
- "@scalar/components": "0.13.33",
192
- "@scalar/draggable": "0.1.11",
191
+ "@scalar/components": "0.13.35",
193
192
  "@scalar/icons": "0.1.3",
194
- "@scalar/import": "0.2.36",
193
+ "@scalar/import": "0.3.0",
194
+ "@scalar/draggable": "0.1.11",
195
195
  "@scalar/object-utils": "1.1.13",
196
- "@scalar/oas-utils": "0.2.116",
196
+ "@scalar/oas-utils": "0.2.118",
197
197
  "@scalar/openapi-parser": "0.10.10",
198
198
  "@scalar/openapi-types": "0.1.9",
199
- "@scalar/postman-to-openapi": "0.1.39",
199
+ "@scalar/themes": "0.9.77",
200
+ "@scalar/postman-to-openapi": "0.1.41",
200
201
  "@scalar/snippetz": "0.2.16",
201
- "@scalar/themes": "0.9.75",
202
- "@scalar/types": "0.0.40",
203
- "@scalar/use-hooks": "0.1.29",
204
- "@scalar/use-codemirror": "0.11.78",
202
+ "@scalar/types": "0.1.0",
203
+ "@scalar/use-hooks": "0.1.31",
205
204
  "@scalar/use-toasts": "0.7.9",
205
+ "@scalar/use-codemirror": "0.11.80",
206
206
  "@scalar/use-tooltip": "1.0.6"
207
207
  },
208
208
  "devDependencies": {