@scalar/api-client 2.0.28 → 2.0.30

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 (47) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBar.vue.js +2 -2
  4. package/dist/components/AddressBar/AddressBar.vue2.js +23 -23
  5. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  6. package/dist/components/CodeInput/CodeInput.vue.js +1 -1
  7. package/dist/components/CodeInput/CodeInput.vue2.js +1 -1
  8. package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.d.ts.map +1 -1
  9. package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.js +5 -5
  10. package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
  11. package/dist/components/SideNav/SideNav.vue.js +5 -43
  12. package/dist/components/SideNav/SideNav.vue2.js +44 -2
  13. package/dist/components/SideNav/SideNavLink.vue.d.ts +2 -0
  14. package/dist/components/SideNav/SideNavLink.vue.d.ts.map +1 -1
  15. package/dist/components/SideNav/SideNavLink.vue.js +29 -20
  16. package/dist/components/SideNav/WorkspaceProfileIcon.vue.d.ts.map +1 -1
  17. package/dist/components/SubpageHeader.vue.d.ts +12 -0
  18. package/dist/components/SubpageHeader.vue.d.ts.map +1 -0
  19. package/dist/components/SubpageHeader.vue.js +31 -0
  20. package/dist/components/SubpageHeader.vue2.js +4 -0
  21. package/dist/constants.d.ts +4 -0
  22. package/dist/constants.d.ts.map +1 -1
  23. package/dist/constants.js +4 -4
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.js +11 -10
  27. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
  28. package/dist/layouts/App/ApiClientApp.vue.js +9 -9
  29. package/dist/router.d.ts +10 -4
  30. package/dist/router.d.ts.map +1 -1
  31. package/dist/router.js +31 -27
  32. package/dist/style.css +1 -1
  33. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  34. package/dist/views/Cookies/Cookies.vue2.js +44 -38
  35. package/dist/views/Environment/Environment.vue.d.ts.map +1 -1
  36. package/dist/views/Environment/Environment.vue2.js +92 -86
  37. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  38. package/dist/views/Request/Request.vue.js +2 -2
  39. package/dist/views/Request/Request.vue2.js +11 -11
  40. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  41. package/dist/views/Request/RequestSection/RequestBody.vue.js +13 -13
  42. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  43. package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
  44. package/dist/views/Request/RequestSection/RequestTable.vue2.js +2 -2
  45. package/dist/views/Servers/Servers.vue.d.ts.map +1 -1
  46. package/dist/views/Servers/Servers.vue2.js +45 -39
  47. package/package.json +6 -6
@@ -1,58 +1,64 @@
1
- import { defineComponent as d, openBlock as n, createBlock as l, withCtx as e, createVNode as r, unref as s, createElementVNode as p, createElementBlock as _, Fragment as v, renderList as x, createTextVNode as S } from "vue";
1
+ import { defineComponent as _, openBlock as l, createBlock as s, withCtx as e, createVNode as r, unref as n, createElementVNode as d, createElementBlock as p, Fragment as v, renderList as x, createTextVNode as S } from "vue";
2
2
  import h from "../../components/Sidebar/SidebarButton.vue.js";
3
3
  import k from "../../components/Sidebar/SidebarList.vue.js";
4
4
  import b from "../../components/Sidebar/SidebarListElement.vue.js";
5
- import L from "../../components/ViewLayout/ViewLayout.vue.js";
6
- import V from "../../components/ViewLayout/ViewLayoutContent.vue.js";
5
+ import L from "../../components/SubpageHeader.vue.js";
6
+ import V from "../../components/ViewLayout/ViewLayout.vue.js";
7
+ import $ from "../../components/ViewLayout/ViewLayoutContent.vue.js";
7
8
  import { useWorkspace as w } from "../../store/workspace.js";
8
9
  import { createServer as C } from "@scalar/oas-utils/entities/workspace/server";
9
- import { useRouter as $ } from "vue-router";
10
- import y from "./ServerForm.vue.js";
11
- import B from "../../components/Sidebar/Sidebar.vue.js";
10
+ import { useRouter as y } from "vue-router";
11
+ import B from "./ServerForm.vue.js";
12
+ import E from "../../components/Sidebar/Sidebar.vue.js";
12
13
  /* empty css */
13
- const E = { class: "flex-1" }, I = /* @__PURE__ */ d({
14
+ const N = { class: "flex-1" }, K = /* @__PURE__ */ _({
14
15
  __name: "Servers",
15
- setup(N) {
16
- const { activeCollection: t, servers: m, serverMutators: c } = w(), { push: u } = $(), f = () => {
16
+ setup(g) {
17
+ const { activeCollection: t, servers: m, serverMutators: c } = w(), { push: u } = y(), f = () => {
17
18
  if (!t.value) return;
18
19
  const o = C({ url: "http://localhost" });
19
20
  c.add(o, t.value.uid), u(`/servers/${o.uid}`);
20
21
  };
21
- return (o, g) => (n(), l(L, null, {
22
+ return (o, A) => (l(), s(L, null, {
22
23
  default: e(() => [
23
- r(s(B), { title: "Servers" }, {
24
- content: e(() => [
25
- p("div", E, [
26
- r(k, null, {
27
- default: e(() => {
28
- var i;
29
- return [
30
- (n(!0), _(v, null, x((i = s(t)) == null ? void 0 : i.spec.serverUids, (a) => (n(), l(b, {
31
- key: a,
32
- class: "text-xs",
33
- variable: { name: s(m)[a].url, uid: a }
34
- }, null, 8, ["variable"]))), 128))
35
- ];
36
- }),
37
- _: 1
38
- })
39
- ])
40
- ]),
41
- button: e(() => [
42
- r(h, { click: f }, {
43
- title: e(() => [
44
- S("Add Server")
24
+ r(V, null, {
25
+ default: e(() => [
26
+ r(n(E), { title: "Servers" }, {
27
+ content: e(() => [
28
+ d("div", N, [
29
+ r(k, null, {
30
+ default: e(() => {
31
+ var i;
32
+ return [
33
+ (l(!0), p(v, null, x((i = n(t)) == null ? void 0 : i.spec.serverUids, (a) => (l(), s(b, {
34
+ key: a,
35
+ class: "text-xs",
36
+ variable: { name: n(m)[a].url, uid: a }
37
+ }, null, 8, ["variable"]))), 128))
38
+ ];
39
+ }),
40
+ _: 1
41
+ })
42
+ ])
43
+ ]),
44
+ button: e(() => [
45
+ r(h, { click: f }, {
46
+ title: e(() => [
47
+ S("Add Server")
48
+ ]),
49
+ _: 1
50
+ })
51
+ ]),
52
+ _: 1
53
+ }),
54
+ r($, { class: "flex-1" }, {
55
+ default: e(() => [
56
+ r(B)
45
57
  ]),
46
58
  _: 1
47
59
  })
48
60
  ]),
49
61
  _: 1
50
- }),
51
- r(V, { class: "flex-1" }, {
52
- default: e(() => [
53
- r(y)
54
- ]),
55
- _: 1
56
62
  })
57
63
  ]),
58
64
  _: 1
@@ -60,5 +66,5 @@ const E = { class: "flex-1" }, I = /* @__PURE__ */ d({
60
66
  }
61
67
  });
62
68
  export {
63
- I as default
69
+ K as default
64
70
  };
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "rest",
19
19
  "testing"
20
20
  ],
21
- "version": "2.0.28",
21
+ "version": "2.0.30",
22
22
  "engines": {
23
23
  "node": ">=18"
24
24
  },
@@ -118,14 +118,14 @@
118
118
  "vue": "^3.4.29",
119
119
  "vue-router": "^4.3.0",
120
120
  "zod": "^3.22.4",
121
- "@scalar/components": "0.12.18",
122
- "@scalar/draggable": "0.1.3",
123
- "@scalar/oas-utils": "0.2.16",
121
+ "@scalar/oas-utils": "0.2.17",
124
122
  "@scalar/object-utils": "1.1.4",
125
- "@scalar/themes": "0.9.15",
123
+ "@scalar/draggable": "0.1.3",
126
124
  "@scalar/use-codemirror": "0.11.8",
127
125
  "@scalar/use-toasts": "0.7.4",
128
- "@scalar/use-tooltip": "1.0.2"
126
+ "@scalar/use-tooltip": "1.0.2",
127
+ "@scalar/themes": "0.9.16",
128
+ "@scalar/components": "0.12.19"
129
129
  },
130
130
  "devDependencies": {
131
131
  "@types/content-type": "^1.1.8",