@scalar/api-client 2.0.29 → 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 (39) hide show
  1. package/CHANGELOG.md +11 -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.map +1 -1
  18. package/dist/components/SubpageHeader.vue.js +1 -1
  19. package/dist/constants.d.ts +4 -0
  20. package/dist/constants.d.ts.map +1 -1
  21. package/dist/constants.js +4 -4
  22. package/dist/index.d.ts +1 -1
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +11 -10
  25. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
  26. package/dist/layouts/App/ApiClientApp.vue.js +9 -9
  27. package/dist/router.d.ts +10 -4
  28. package/dist/router.d.ts.map +1 -1
  29. package/dist/router.js +31 -27
  30. package/dist/style.css +1 -1
  31. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  32. package/dist/views/Request/Request.vue.js +2 -2
  33. package/dist/views/Request/Request.vue2.js +11 -11
  34. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  35. package/dist/views/Request/RequestSection/RequestBody.vue.js +13 -13
  36. package/dist/views/Request/RequestSection/RequestTable.vue.d.ts.map +1 -1
  37. package/dist/views/Request/RequestSection/RequestTable.vue.js +1 -1
  38. package/dist/views/Request/RequestSection/RequestTable.vue2.js +2 -2
  39. package/package.json +5 -5
package/dist/router.js CHANGED
@@ -1,7 +1,7 @@
1
- import { computed as n } from "vue";
2
- import { createRouter as u, createWebHistory as p, createMemoryHistory as m } from "vue-router";
3
- var c = /* @__PURE__ */ ((e) => (e.Request = "request", e.Examples = "examples", e.Cookies = "cookies", e.Collection = "collection", e.Schema = "schema", e.Environment = "environment", e.Servers = "servers", e.Workspace = "workspace", e))(c || {});
4
- const l = [
1
+ import { computed as m } from "vue";
2
+ import { createRouter as o, createWebHistory as i, createWebHashHistory as f, createMemoryHistory as d } from "vue-router";
3
+ var l = /* @__PURE__ */ ((e) => (e.Request = "request", e.Examples = "examples", e.Cookies = "cookies", e.Collection = "collection", e.Schema = "schema", e.Environment = "environment", e.Servers = "servers", e.Workspace = "workspace", e))(l || {});
4
+ const n = [
5
5
  {
6
6
  path: "",
7
7
  redirect: (e) => `${e.fullPath.replace(/\/$/, "")}/request/default`
@@ -16,11 +16,11 @@ const l = [
16
16
  component: () => import("./views/Request/Request.vue.js")
17
17
  },
18
18
  {
19
- name: "requestExamples",
19
+ name: "examples",
20
20
  path: "request/:request/examples/:examples",
21
21
  component: () => import("./views/Request/Request.vue.js")
22
22
  }
23
- ], i = [
23
+ ], h = [
24
24
  {
25
25
  path: "/",
26
26
  redirect: "/workspace/default/request/default"
@@ -31,9 +31,9 @@ const l = [
31
31
  },
32
32
  {
33
33
  path: "/workspace/:workspace",
34
- children: l
34
+ children: n
35
35
  }
36
- ], f = [
36
+ ], p = [
37
37
  {
38
38
  path: "/",
39
39
  redirect: "/workspace/default/request/default"
@@ -45,7 +45,7 @@ const l = [
45
45
  {
46
46
  path: "/workspace/:workspace",
47
47
  children: [
48
- ...l,
48
+ ...n,
49
49
  // {
50
50
  // path: 'collection',
51
51
  // redirect: (to) =>
@@ -103,13 +103,16 @@ const l = [
103
103
  }
104
104
  ]
105
105
  }
106
- ], t = u({
107
- history: p(),
108
- routes: f
109
- }), s = u({
110
- history: m(),
111
- routes: i
112
- }), v = n(() => {
106
+ ], t = o({
107
+ history: i(),
108
+ routes: p
109
+ }), u = o({
110
+ history: f(),
111
+ routes: p
112
+ }), c = o({
113
+ history: d(),
114
+ routes: h
115
+ }), $ = m(() => {
113
116
  const e = {
114
117
  collection: "default",
115
118
  environment: "default",
@@ -119,15 +122,15 @@ const l = [
119
122
  cookies: "default",
120
123
  servers: "default",
121
124
  workspace: "default"
122
- }, a = s.currentRoute.value.matched.length ? s.currentRoute.value : t.currentRoute.value;
123
- return a && Object.values(c).forEach((r) => {
125
+ }, a = c.currentRoute.value.matched.length ? c.currentRoute.value : u.currentRoute.value.matched.length ? u.currentRoute.value : t.currentRoute.value;
126
+ return a && Object.values(l).forEach((r) => {
124
127
  a.params[r] && (e[r] = a.params[r]);
125
128
  }), e;
126
129
  });
127
- function $(e, a) {
128
- var r, o;
130
+ function k(e, a) {
131
+ var r, s;
129
132
  t.currentRoute.value && // If the item is missing then we know the UID is no longer in use and redirect to the default
130
- !a && ((r = t.currentRoute.value) != null && r.params[e]) && ((o = t.currentRoute.value) == null ? void 0 : o.params[e]) !== "default" && // We only redirect if the key is missing for the matching route
133
+ !a && ((r = t.currentRoute.value) != null && r.params[e]) && ((s = t.currentRoute.value) == null ? void 0 : s.params[e]) !== "default" && // We only redirect if the key is missing for the matching route
131
134
  t.currentRoute.value.path.includes(e) && t.push({
132
135
  params: {
133
136
  ...t.currentRoute.value.params,
@@ -136,10 +139,11 @@ function $(e, a) {
136
139
  });
137
140
  }
138
141
  export {
139
- c as PathId,
140
- v as activeRouterParams,
141
- $ as fallbackMissingParams,
142
- s as modalRouter,
143
- i as modalRoutes,
144
- t as router
142
+ l as PathId,
143
+ $ as activeRouterParams,
144
+ k as fallbackMissingParams,
145
+ c as modalRouter,
146
+ h as modalRoutes,
147
+ t as router,
148
+ u as webHashRouter
145
149
  };