@scalar/api-client 2.0.13 → 2.0.15

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 (29) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/App.vue.d.ts.map +1 -1
  3. package/dist/App.vue.js +44 -32
  4. package/dist/components/AddressBar/AddressBar.vue.js +1 -1
  5. package/dist/components/AddressBar/AddressBar.vue2.js +3 -3
  6. package/dist/components/AddressBar/AddressBarServer.vue.js +23 -23
  7. package/dist/components/CodeInput/CodeInput.vue.d.ts +2 -0
  8. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  9. package/dist/components/CodeInput/CodeInput.vue.js +1 -1
  10. package/dist/components/CodeInput/CodeInput.vue2.js +16 -14
  11. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  12. package/dist/components/DataTable/DataTableInput.vue.js +2 -2
  13. package/dist/components/DataTable/DataTableInput.vue2.js +63 -61
  14. package/dist/components/DataTable/DataTableInputEnumSelect.vue.d.ts.map +1 -1
  15. package/dist/components/DataTable/DataTableInputEnumSelect.vue.js +1 -1
  16. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
  17. package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +15 -17
  18. package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
  19. package/dist/components/Sidebar/SidebarListElementActions.vue.js +12 -12
  20. package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
  21. package/dist/components/TopNav/TopNavItem.vue.js +1 -1
  22. package/dist/components/TopNav/TopNavItem.vue2.js +10 -7
  23. package/dist/style.css +1 -1
  24. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  25. package/dist/views/Request/Request.vue.js +2 -2
  26. package/dist/views/Request/Request.vue2.js +101 -100
  27. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  28. package/dist/views/Request/RequestSection/RequestBody.vue.js +1 -0
  29. package/package.json +6 -6
@@ -1,37 +1,35 @@
1
- import { defineComponent as d, openBlock as f, createElementBlock as p, withModifiers as u, renderSlot as c, createElementVNode as b, createVNode as r, unref as l, withCtx as n, createTextVNode as a, toDisplayString as x } from "vue";
2
- import { ScalarButton as s } from "@scalar/components";
3
- const S = { class: "flex gap-3" }, B = /* @__PURE__ */ d({
1
+ import { defineComponent as d, openBlock as p, createElementBlock as u, withModifiers as f, renderSlot as c, createElementVNode as b, createVNode as r, unref as n, withCtx as l, createTextVNode as a, toDisplayString as S } from "vue";
2
+ import { ScalarButton as i } from "@scalar/components";
3
+ const g = { class: "flex justify-end gap-3" }, y = /* @__PURE__ */ d({
4
4
  __name: "SidebarListElementForm",
5
5
  props: {
6
6
  danger: { type: Boolean },
7
7
  label: {}
8
8
  },
9
9
  emits: ["cancel", "submit"],
10
- setup(g, { emit: i }) {
11
- const o = i;
12
- return (t, e) => (f(), p("form", {
13
- class: "flex flex-col gap-3",
14
- onSubmit: e[1] || (e[1] = u((m) => o("submit"), ["prevent"]))
10
+ setup(v, { emit: s }) {
11
+ const o = s;
12
+ return (t, e) => (p(), u("form", {
13
+ class: "flex flex-col gap-6 text-base",
14
+ onSubmit: e[1] || (e[1] = f((m) => o("submit"), ["prevent"]))
15
15
  }, [
16
16
  c(t.$slots, "default"),
17
- b("div", S, [
18
- r(l(s), {
19
- class: "flex-1",
17
+ b("div", g, [
18
+ r(n(i), {
20
19
  variant: "outlined",
21
20
  onClick: e[0] || (e[0] = (m) => o("cancel"))
22
21
  }, {
23
- default: n(() => [
22
+ default: l(() => [
24
23
  a(" Cancel ")
25
24
  ]),
26
25
  _: 1
27
26
  }),
28
- r(l(s), {
29
- class: "flex-1",
27
+ r(n(i), {
30
28
  error: t.danger,
31
29
  type: "submit"
32
30
  }, {
33
- default: n(() => [
34
- a(x(t.label ?? "Submit"), 1)
31
+ default: l(() => [
32
+ a(S(t.label ?? "Submit"), 1)
35
33
  ]),
36
34
  _: 1
37
35
  }, 8, ["error"])
@@ -40,5 +38,5 @@ const S = { class: "flex gap-3" }, B = /* @__PURE__ */ d({
40
38
  }
41
39
  });
42
40
  export {
43
- B as default
41
+ y as default
44
42
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarListElementActions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElementActions.vue"],"names":[],"mappings":";cAmFY;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,EAAE,OAAO,CAAA;KACnB;;;;cAJS;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,EAAE,OAAO,CAAA;KACnB;;;;AAyLH,wBAOG;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":"SidebarListElementActions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElementActions.vue"],"names":[],"mappings":";cAmFY;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,EAAE,OAAO,CAAA;KACnB;;;;cAJS;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,SAAS,EAAE,OAAO,CAAA;KACnB;;;;AA4LH,wBAOG;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,15 +1,15 @@
1
- import { defineComponent as y, ref as N, openBlock as l, createElementBlock as c, Fragment as w, createElementVNode as u, unref as a, createVNode as r, withModifiers as $, createCommentVNode as m, withCtx as g, createBlock as D } from "vue";
2
- import x from "./Actions/DeleteSidebarListElement.vue.js";
1
+ import { defineComponent as y, ref as N, openBlock as l, createElementBlock as c, Fragment as w, createElementVNode as u, unref as a, createVNode as r, withModifiers as x, createCommentVNode as m, withCtx as $, createBlock as g } from "vue";
2
+ import D from "./Actions/DeleteSidebarListElement.vue.js";
3
3
  import { useModal as M, ScalarIcon as d, ScalarModal as S } from "@scalar/components";
4
4
  import { useClipboard as A } from "../../hooks/useClipboard.js";
5
- const B = { class: "absolute right-1 opacity-0 group-hover:opacity-100" }, I = /* @__PURE__ */ y({
5
+ const B = { class: "absolute flex right-1 opacity-0 group-hover:opacity-100" }, I = /* @__PURE__ */ y({
6
6
  __name: "SidebarListElementActions",
7
7
  props: {
8
8
  variable: {}
9
9
  },
10
10
  emits: ["delete"],
11
- setup(v, { emit: p }) {
12
- const { variable: b } = v, f = p, t = N({ action: "None", name: "" }), n = M(), { copyToClipboard: C } = A();
11
+ setup(p, { emit: v }) {
12
+ const { variable: b } = p, f = v, t = N({ action: "None", name: "" }), n = M(), { copyToClipboard: C } = A();
13
13
  function h(e) {
14
14
  t.value = { action: e, name: b.name }, n.show();
15
15
  }
@@ -22,26 +22,26 @@ const B = { class: "absolute right-1 opacity-0 group-hover:opacity-100" }, I = /
22
22
  return (e, o) => (l(), c(w, null, [
23
23
  u("div", B, [
24
24
  u("button", {
25
- class: "text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-1.5",
25
+ class: "text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-[5px]",
26
26
  type: "button",
27
27
  onClick: o[0] || (o[0] = (s) => a(C)(e.variable.name))
28
28
  }, [
29
29
  r(a(d), {
30
- class: "h-2.5 w-2.5",
30
+ class: "h-3 w-3 stroke-[1.5]",
31
31
  icon: "Clipboard"
32
32
  })
33
33
  ]),
34
34
  e.variable.isDefault ? m("", !0) : (l(), c("button", {
35
35
  key: 0,
36
- class: "text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-1.5",
36
+ class: "text-c-3 hover:bg-b-3 hover:text-c-1 rounded p-1",
37
37
  type: "button",
38
- onClick: o[1] || (o[1] = $((s) => h(
38
+ onClick: o[1] || (o[1] = x((s) => h(
39
39
  "Delete"
40
40
  /* Delete */
41
41
  ), ["prevent"]))
42
42
  }, [
43
43
  r(a(d), {
44
- class: "h-2.5 w-2.5",
44
+ class: "h-3.5 w-3.5 stroke-[1.5]",
45
45
  icon: "Close"
46
46
  })
47
47
  ]))
@@ -50,8 +50,8 @@ const B = { class: "absolute right-1 opacity-0 group-hover:opacity-100" }, I = /
50
50
  state: a(n),
51
51
  title: `${t.value.action} ${t.value.name}`
52
52
  }, {
53
- default: g(() => [
54
- t.value.action === "Delete" ? (l(), D(x, {
53
+ default: $(() => [
54
+ t.value.action === "Delete" ? (l(), g(D, {
55
55
  key: 0,
56
56
  variableName: t.value.name,
57
57
  onClose: i,
@@ -1 +1 @@
1
- {"version":3,"file":"TopNavItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNavItem.vue"],"names":[],"mappings":"AA2HA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;;aAM3B,MAAM;YACP,OAAO;;;;;aADN,MAAM;YACP,OAAO;;;;;AAqJnB,wBAOG;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":"TopNavItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/TopNav/TopNavItem.vue"],"names":[],"mappings":"AA6HA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;;aAM3B,MAAM;YACP,OAAO;;;;;aADN,MAAM;YACP,OAAO;;;;;AAsJnB,wBAOG;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,7 +1,7 @@
1
1
  import o from "./TopNavItem.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-095ab46d"]]);
4
+ const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9a892de6"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as m, openBlock as i, createBlock as s, unref as n, withCtx as l, createElementVNode as o, normalizeClass as p, createVNode as a, toDisplayString as f, createCommentVNode as v } from "vue";
2
- import y from "../ScalarHotkey.vue.js";
3
- import { ScalarTooltip as k, ScalarIcon as c } from "@scalar/components";
1
+ import { defineComponent as m, openBlock as s, createBlock as i, unref as n, withCtx as l, createElementVNode as o, normalizeClass as p, createVNode as a, toDisplayString as f, createCommentVNode as k } from "vue";
2
+ import v from "../ScalarHotkey.vue.js";
3
+ import { ScalarTooltip as y, ScalarIcon as c } from "@scalar/components";
4
4
  const d = { class: "nav-item-icon-copy flex flex-1 items-center justify-center gap-1.5" }, u = { class: "nav-item-copy text-xs" }, b = /* @__PURE__ */ m({
5
5
  __name: "TopNavItem",
6
6
  props: {
@@ -11,7 +11,7 @@ const d = { class: "nav-item-icon-copy flex flex-1 items-center justify-center g
11
11
  },
12
12
  emits: ["click", "close"],
13
13
  setup(C) {
14
- return (e, t) => (i(), s(n(k), {
14
+ return (e, t) => (s(), i(n(y), {
15
15
  class: "scalar-client",
16
16
  delay: 500,
17
17
  resize: "",
@@ -35,15 +35,18 @@ const d = { class: "nav-item-icon-copy flex flex-1 items-center justify-center g
35
35
  type: "button",
36
36
  onClick: t[0] || (t[0] = (r) => e.$emit("close"))
37
37
  }, [
38
- a(n(c), { icon: "Close" })
38
+ a(n(c), {
39
+ class: "stroke-[1.75]",
40
+ icon: "Close"
41
+ })
39
42
  ])
40
43
  ], 2)
41
44
  ]),
42
45
  content: l(() => [
43
- e.hotkey ? (i(), s(y, {
46
+ e.hotkey ? (s(), i(v, {
44
47
  key: 0,
45
48
  hotkey: e.hotkey
46
- }, null, 8, ["hotkey"])) : v("", !0)
49
+ }, null, 8, ["hotkey"])) : k("", !0)
47
50
  ]),
48
51
  _: 1
49
52
  }));