@scalar/api-client 2.0.33 → 2.0.35

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 (89) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  3. package/dist/components/CommandPalette/CommandPaletteCollection.vue.d.ts.map +1 -1
  4. package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +39 -31
  5. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
  6. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +65 -55
  7. package/dist/components/CommandPalette/CommandPaletteFolder.vue.d.ts.map +1 -1
  8. package/dist/components/CommandPalette/CommandPaletteFolder.vue.js +53 -44
  9. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
  10. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +42 -34
  11. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
  12. package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +126 -70
  13. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.d.ts.map +1 -1
  14. package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +37 -29
  15. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  16. package/dist/components/CommandPalette/TheCommandPalette.vue.js +4 -4
  17. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +97 -85
  18. package/dist/components/CommandPalette/handleKeyDown.d.ts +2 -0
  19. package/dist/components/CommandPalette/handleKeyDown.d.ts.map +1 -0
  20. package/dist/components/CommandPalette/handleKeyDown.js +7 -0
  21. package/dist/components/DataTable/DataTableInput.vue.d.ts +7 -0
  22. package/dist/components/DataTable/DataTableInput.vue.d.ts.map +1 -1
  23. package/dist/components/DataTable/DataTableInput.vue.js +3 -3
  24. package/dist/components/DataTable/DataTableInput.vue2.js +33 -31
  25. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts +19 -3
  26. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
  27. package/dist/components/DataTable/DataTableInputSelect.vue.js +37 -35
  28. package/dist/components/DataTable/index.d.ts +1 -0
  29. package/dist/components/DataTable/index.d.ts.map +1 -1
  30. package/dist/components/DataTable/index.js +6 -4
  31. package/dist/components/Form/Form.vue.js +1 -1
  32. package/dist/components/Search/SearchButton.vue.d.ts.map +1 -1
  33. package/dist/components/Search/SearchButton.vue.js +14 -16
  34. package/dist/components/SideNav/SideHelp.vue.d.ts +3 -0
  35. package/dist/components/SideNav/SideHelp.vue.d.ts.map +1 -0
  36. package/dist/components/SideNav/SideHelp.vue.js +125 -0
  37. package/dist/components/SideNav/SideHelp.vue2.js +4 -0
  38. package/dist/components/SideNav/SideNav.vue.d.ts.map +1 -1
  39. package/dist/components/SideNav/SideNav.vue.js +3 -3
  40. package/dist/components/SideNav/SideNav.vue2.js +28 -24
  41. package/dist/components/Sidebar/SidebarButton.vue.js +1 -1
  42. package/dist/components/Sidebar/SidebarList.vue.d.ts.map +1 -1
  43. package/dist/components/Sidebar/SidebarList.vue.js +1 -1
  44. package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
  45. package/dist/components/Sidebar/SidebarListElement.vue.js +1 -1
  46. package/dist/components/Sidebar/SidebarListElement.vue2.js +9 -9
  47. package/dist/constants.d.ts +0 -4
  48. package/dist/constants.d.ts.map +1 -1
  49. package/dist/constants.js +2 -2
  50. package/dist/layouts/App/create-api-client-app.d.ts +512 -603
  51. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  52. package/dist/layouts/Modal/api-client-modal.d.ts +1036 -1218
  53. package/dist/layouts/Modal/api-client-modal.d.ts.map +1 -1
  54. package/dist/libs/create-client.d.ts +513 -603
  55. package/dist/libs/create-client.d.ts.map +1 -1
  56. package/dist/libs/create-client.js +58 -68
  57. package/dist/libs/local-storage.js +5 -5
  58. package/dist/libs/sendRequest.d.ts +3 -5
  59. package/dist/libs/sendRequest.d.ts.map +1 -1
  60. package/dist/libs/sendRequest.js +73 -67
  61. package/dist/store/workspace.d.ts +1037 -1219
  62. package/dist/store/workspace.d.ts.map +1 -1
  63. package/dist/store/workspace.js +350 -277
  64. package/dist/style.css +1 -1
  65. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  66. package/dist/views/Request/Request.vue.js +1 -1
  67. package/dist/views/Request/Request.vue2.js +101 -102
  68. package/dist/views/Request/RequestSection/RequestAuth.vue.d.ts.map +1 -1
  69. package/dist/views/Request/RequestSection/RequestAuth.vue.js +270 -177
  70. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  71. package/dist/views/Request/RequestSection/RequestSection.vue.js +52 -42
  72. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
  73. package/dist/views/Request/RequestSidebarItemMenu.vue.js +141 -104
  74. package/dist/views/Request/components/OAuth2.vue.d.ts +3 -9
  75. package/dist/views/Request/components/OAuth2.vue.d.ts.map +1 -1
  76. package/dist/views/Request/components/OAuth2.vue.js +141 -112
  77. package/dist/views/Request/components/OAuthScopesInput.vue.d.ts +2 -6
  78. package/dist/views/Request/components/OAuthScopesInput.vue.d.ts.map +1 -1
  79. package/dist/views/Request/components/OAuthScopesInput.vue.js +35 -39
  80. package/dist/views/Request/consts/index.d.ts +2 -0
  81. package/dist/views/Request/consts/index.d.ts.map +1 -0
  82. package/dist/views/Request/consts/index.js +5 -0
  83. package/dist/views/Request/consts/new-auth-options.d.ts +92 -0
  84. package/dist/views/Request/consts/new-auth-options.d.ts.map +1 -0
  85. package/dist/views/Request/consts/new-auth-options.js +83 -0
  86. package/dist/views/Request/libs/oauth2.d.ts +3 -16
  87. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  88. package/dist/views/Request/libs/oauth2.js +28 -31
  89. package/package.json +9 -5
@@ -1,46 +1,50 @@
1
- import { defineComponent as _, openBlock as t, createElementBlock as o, createVNode as r, createElementVNode as a, Fragment as f, renderList as p, unref as c, withCtx as u, createTextVNode as d, toDisplayString as x } from "vue";
2
- import v from "../DarkModeToggle/DarkModeIconToggle.vue.js";
3
- import { ROUTES as h } from "../../constants.js";
1
+ import { defineComponent as _, openBlock as r, createElementBlock as i, createVNode as e, createElementVNode as t, Fragment as f, renderList as p, unref as s, withCtx as u, createTextVNode as d, toDisplayString as x } from "vue";
2
+ import h from "../DarkModeToggle/DarkModeIconToggle.vue.js";
3
+ import { ROUTES as v } from "../../constants.js";
4
4
  import { useRouter as g } from "vue-router";
5
- import N from "./SideNavLink.vue.js";
6
- import y from "./WorkspaceProfileIcon.vue.js";
5
+ import N from "./SideHelp.vue.js";
6
+ import y from "./SideNavLink.vue.js";
7
+ import S from "./WorkspaceProfileIcon.vue.js";
7
8
  /* empty css */
8
- const S = {
9
+ const $ = {
9
10
  "aria-label": "Side Navigation",
10
11
  class: "text-c-2 w-15 flex flex-col items-center px-2 py-2 scalar-sidenav relative",
11
12
  role: "navigation"
12
- }, k = { class: "mt-3.5 flex flex-col gap-1.5" }, E = { class: "mt-auto flex flex-col gap-2 py-1.5" }, R = { class: "flex items-center" }, O = /* @__PURE__ */ _({
13
+ }, k = { class: "mt-3.5 flex flex-col gap-1.5" }, E = { class: "mt-auto flex flex-col gap-2 py-1.5" }, R = { class: "flex items-center" }, V = { class: "flex items-center" }, j = /* @__PURE__ */ _({
13
14
  __name: "SideNav",
14
- setup(V) {
15
- const { currentRoute: n } = g();
16
- return ($, w) => (t(), o("nav", S, [
17
- r(y),
18
- a("ul", k, [
19
- (t(!0), o(f, null, p(c(h), ({ icon: s, name: e, prettyName: l }, m) => {
20
- var i;
21
- return t(), o("li", { key: m }, [
22
- r(N, {
23
- active: (i = c(n).name) == null ? void 0 : i.startsWith(e),
24
- icon: s,
25
- name: e,
15
+ setup(w) {
16
+ const { currentRoute: c } = g();
17
+ return (B, C) => (r(), i("nav", $, [
18
+ e(S),
19
+ t("ul", k, [
20
+ (r(!0), i(f, null, p(s(v), ({ icon: n, name: o, prettyName: l }, m) => {
21
+ var a;
22
+ return r(), i("li", { key: m }, [
23
+ e(y, {
24
+ active: (a = s(c).name) == null ? void 0 : a.startsWith(o),
25
+ icon: n,
26
+ name: o,
26
27
  prettyName: l
27
28
  }, {
28
29
  default: u(() => [
29
- d(x(e), 1)
30
+ d(x(o), 1)
30
31
  ]),
31
32
  _: 2
32
33
  }, 1032, ["active", "icon", "name", "prettyName"])
33
34
  ]);
34
35
  }), 128))
35
36
  ]),
36
- a("ul", E, [
37
- a("li", R, [
38
- r(v)
37
+ t("ul", E, [
38
+ t("li", R, [
39
+ e(N)
40
+ ]),
41
+ t("li", V, [
42
+ e(h)
39
43
  ])
40
44
  ])
41
45
  ]));
42
46
  }
43
47
  });
44
48
  export {
45
- O as default
49
+ j as default
46
50
  };
@@ -21,7 +21,7 @@ const f = { class: "fixed relative bottom-[50px] z-10 flex p-2" }, k = /* @__PUR
21
21
  p(c.$slots, "title"),
22
22
  e(u, {
23
23
  class: "absolute right-2 group-hover:opacity-80 text-c-2",
24
- hotkey: "N",
24
+ hotkey: "K",
25
25
  onHotkeyPressed: t
26
26
  })
27
27
  ]),
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarList.vue"],"names":[],"mappings":"AAcA,iBAAS,cAAc;qBAqBM,GAAG;EAa/B;AACD,QAAA,MAAM,eAAe,0NAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"SidebarList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarList.vue"],"names":[],"mappings":"AAcA,iBAAS,cAAc;qBAoBM,GAAG;EAa/B;AACD,QAAA,MAAM,eAAe,0NAKnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AAOxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { openBlock as o, createElementBlock as t, renderSlot as r } from "vue";
2
2
  import c from "../../_virtual/_plugin-vue_export-helper.js";
3
- const s = {}, l = { class: "flex flex-col gap-1 p-2" };
3
+ const s = {}, l = { class: "flex flex-col p-2" };
4
4
  function n(e, f) {
5
5
  return o(), t("ul", l, [
6
6
  r(e.$slots, "default")
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarListElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElement.vue"],"names":[],"mappings":";cAmEY;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB;;;;cALS;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB;;;;AAkJH,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":"SidebarListElement.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Sidebar/SidebarListElement.vue"],"names":[],"mappings":";cAmEY;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB;;;;cALS;QACR,GAAG,EAAE,MAAM,CAAA;QACX,IAAI,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,SAAS,CAAC,EAAE,OAAO,CAAA;KACpB;;;;AAmJH,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 t from "./SidebarListElement.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-f43d5cfd"]]);
4
+ const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-1d9aeaf7"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as c, resolveComponent as b, openBlock as t, createElementBlock as l, createVNode as a, normalizeClass as r, withModifiers as v, withCtx as f, createElementVNode as k, createCommentVNode as h, createTextVNode as g, toDisplayString as C } from "vue";
1
+ import { defineComponent as c, resolveComponent as b, openBlock as t, createElementBlock as l, createVNode as r, normalizeClass as a, withModifiers as v, withCtx as f, createElementVNode as k, createCommentVNode as h, createTextVNode as g, toDisplayString as C } from "vue";
2
2
  import _ from "./SidebarListElementActions.vue.js";
3
3
  import { useRouter as w } from "vue-router";
4
4
  const y = {
@@ -14,28 +14,28 @@ const y = {
14
14
  setup(D, { emit: n }) {
15
15
  const i = n, s = w(), m = (e, o) => {
16
16
  e.metaKey ? window.open(o, "_blank") : s.push(o);
17
- }, p = (e) => {
17
+ }, u = (e) => {
18
18
  i("delete", e);
19
19
  };
20
20
  return (e, o) => {
21
- const u = b("router-link");
21
+ const d = b("router-link");
22
22
  return t(), l("li", null, [
23
- a(u, {
24
- class: r(["text-c-2 hover:bg-b-2 group relative block flex items-center gap-1 rounded py-1 pr-2 font-medium", [e.variable.color ? "pl-1" : "pl-2"]]),
23
+ r(d, {
24
+ class: a(["text-c-2 hover:bg-b-2 group relative block flex items-center gap-1 rounded py-1 pr-2 font-medium no-underline", [e.variable.color ? "pl-1" : "pl-2"]]),
25
25
  exactActiveClass: "active-link",
26
26
  to: `${e.variable.uid}`,
27
- onClick: o[0] || (o[0] = v((d) => m(d, e.variable.uid), ["prevent"]))
27
+ onClick: o[0] || (o[0] = v((p) => m(p, e.variable.uid), ["prevent"]))
28
28
  }, {
29
29
  default: f(() => [
30
30
  e.variable.color ? (t(), l("button", y, [
31
31
  k("div", {
32
- class: r(["h-2.5 w-2.5 rounded-xl", `bg-${e.variable.color}`])
32
+ class: a(["h-2.5 w-2.5 rounded-xl", `bg-${e.variable.color}`])
33
33
  }, null, 2)
34
34
  ])) : h("", !0),
35
35
  g(" " + C(e.variable.name) + " ", 1),
36
- a(_, {
36
+ r(_, {
37
37
  variable: { ...e.variable, isDefault: e.variable.isDefault ?? !1 },
38
- onDelete: p
38
+ onDelete: u
39
39
  }, null, 8, ["variable"])
40
40
  ]),
41
41
  _: 1
@@ -10,9 +10,5 @@ export declare const ROUTES: readonly [{
10
10
  readonly prettyName: "Env Vars";
11
11
  readonly name: "environment";
12
12
  readonly icon: "Brackets";
13
- }, {
14
- readonly prettyName: "Servers";
15
- readonly name: "servers";
16
- readonly icon: "Server";
17
13
  }];
18
14
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;EAMT,CAAA"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;EAMT,CAAA"}
package/dist/constants.js CHANGED
@@ -1,8 +1,8 @@
1
1
  const e = [
2
2
  { prettyName: "Request", name: "request", icon: "ExternalLink" },
3
3
  { prettyName: "Cookies", name: "cookies", icon: "Cookie" },
4
- { prettyName: "Env Vars", name: "environment", icon: "Brackets" },
5
- { prettyName: "Servers", name: "servers", icon: "Server" }
4
+ { prettyName: "Env Vars", name: "environment", icon: "Brackets" }
5
+ // { prettyName: 'Servers', name: 'servers', icon: 'Server' },
6
6
  // { label: 'Git Sync', icon: 'Branch', path: '/git-sync' },
7
7
  ];
8
8
  export {