@scalar/api-client 2.2.20 → 2.2.22

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 (44) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/components/AddressBar/AddressBar.vue.d.ts.map +1 -1
  3. package/dist/components/AddressBar/AddressBar.vue.js +1 -1
  4. package/dist/components/AddressBar/AddressBar.vue2.js +1 -1
  5. package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts +3 -0
  6. package/dist/components/ImportCurl/ImportCurlModal.vue.d.ts.map +1 -1
  7. package/dist/components/ImportCurl/ImportCurlModal.vue.js +2 -2
  8. package/dist/components/ImportCurl/ImportCurlModal.vue2.js +85 -49
  9. package/dist/components/Sidebar/Sidebar.vue.d.ts +2 -2
  10. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  11. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  12. package/dist/components/Sidebar/Sidebar.vue2.js +16 -16
  13. package/dist/components/Sidebar/SidebarToggle.vue.d.ts.map +1 -1
  14. package/dist/components/Sidebar/SidebarToggle.vue.js +3 -3
  15. package/dist/layouts/App/create-api-client-app.d.ts +8 -7
  16. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  17. package/dist/layouts/Modal/create-api-client-modal.d.ts +16 -14
  18. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  19. package/dist/layouts/Web/create-api-client-web.d.ts +8 -7
  20. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  21. package/dist/libs/create-client.d.ts +8 -7
  22. package/dist/libs/create-client.d.ts.map +1 -1
  23. package/dist/libs/create-client.js +19 -18
  24. package/dist/store/environment.d.ts +4 -4
  25. package/dist/store/requests.d.ts +2 -2
  26. package/dist/store/store.d.ts +11 -11
  27. package/dist/store/store.d.ts.map +1 -1
  28. package/dist/store/store.js +53 -48
  29. package/dist/style.css +1 -1
  30. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  31. package/dist/views/Request/Request.vue.js +2 -2
  32. package/dist/views/Request/Request.vue2.js +159 -149
  33. package/dist/views/Request/RequestSection/RequestParams.vue.d.ts.map +1 -1
  34. package/dist/views/Request/RequestSection/RequestParams.vue.js +74 -61
  35. package/dist/views/Request/RequestSidebar.vue.d.ts +3 -4
  36. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  37. package/dist/views/Request/RequestSidebar.vue.js +1 -1
  38. package/dist/views/Request/RequestSidebar.vue2.js +160 -163
  39. package/dist/views/Request/RequestSubpageHeader.vue.d.ts +0 -1
  40. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
  41. package/dist/views/Request/RequestSubpageHeader.vue.js +2 -2
  42. package/dist/views/Request/RequestSubpageHeader.vue2.js +44 -49
  43. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  44. package/package.json +8 -8
@@ -1,84 +1,79 @@
1
- import { defineComponent as C, openBlock as n, createElementBlock as a, createElementVNode as r, createVNode as i, normalizeClass as V, unref as t, createBlock as c, createCommentVNode as s } from "vue";
1
+ import { defineComponent as V, openBlock as r, createElementBlock as u, createElementVNode as n, unref as e, createBlock as g, normalizeClass as x, createCommentVNode as i, createVNode as a } from "vue";
2
2
  import v from "../../components/AddressBar/AddressBar.vue.js";
3
- import w from "../../components/EnvironmentSelector/EnvironmentSelector.vue.js";
4
- import h from "../../components/Sidebar/SidebarToggle.vue.js";
5
- import { useActiveEntities as x } from "../../store/active-entities.js";
6
- import { ScalarIcon as g } from "@scalar/components";
3
+ import w from "../../components/Sidebar/SidebarToggle.vue.js";
4
+ import { useActiveEntities as h } from "../../store/active-entities.js";
5
+ import { ScalarIcon as b } from "@scalar/components";
7
6
  import { useRouter as B } from "vue-router";
8
- import R from "../../components/OpenApiClientButton.vue.js";
9
- import { useWorkspace as $ } from "../../store/store.js";
10
- import { useLayout as z } from "../../hooks/useLayout.js";
11
- const A = { class: "lg:min-h-client-header flex items-center w-full justify-center p-2 pt-2 lg:pt-1 lg:p-1 flex-wrap t-app__top-container border-b-1/2" }, E = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-2 lg:flex-1 w-6/12" }, M = { class: "flex flex-row items-center gap-1 lg:px-2.5 lg:mb-0 mb-2 lg:flex-1 justify-end w-6/12" }, F = /* @__PURE__ */ C({
7
+ import $ from "../../components/OpenApiClientButton.vue.js";
8
+ import { useWorkspace as R } from "../../store/store.js";
9
+ import { useLayout as S } from "../../hooks/useLayout.js";
10
+ const z = { class: "lg:min-h-client-header flex items-center w-full justify-center p-2 pt-2 lg:pt-1 lg:p-1 flex-wrap t-app__top-container border-b-1/2" }, A = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 mb-2 lg:flex-1 w-6/12" }, E = { class: "flex flex-row items-center gap-1 lg:px-2.5 lg:mb-0 mb-2 lg:flex-1 justify-end w-6/12" }, D = /* @__PURE__ */ V({
12
11
  __name: "RequestSubpageHeader",
13
12
  props: {
14
- modelValue: { type: Boolean },
15
- isReadonly: { type: Boolean }
13
+ modelValue: { type: Boolean }
16
14
  },
17
15
  emits: ["update:modelValue", "hideModal", "importCurl"],
18
- setup(N) {
19
- const { activeCollection: m } = x(), b = $(), { hideClientButton: y } = b, { layout: d } = z(), { currentRoute: k } = B();
20
- return (e, o) => {
21
- var u, p, f;
22
- return n(), a("div", A, [
23
- r("div", E, [
24
- i(h, {
25
- class: V(["gitbook-hidden ml-1", [
26
- { hidden: e.modelValue },
27
- { "xl:!flex": !e.modelValue },
28
- { "!flex": t(d) === "modal" },
29
- { "!hidden": t(d) === "modal" && e.modelValue }
30
- ]]),
31
- modelValue: e.modelValue,
32
- "onUpdate:modelValue": o[0] || (o[0] = (l) => e.$emit("update:modelValue", l))
33
- }, null, 8, ["class", "modelValue"]),
34
- e.isReadonly ? s("", !0) : (n(), c(w, {
16
+ setup(M) {
17
+ const { activeCollection: s } = h(), { isReadOnly: m, hideClientButton: C, showSidebar: k } = R(), { layout: d } = S(), { currentRoute: y } = B();
18
+ return (t, o) => {
19
+ var p, f, c;
20
+ return r(), u("div", z, [
21
+ n("div", A, [
22
+ e(k) ? (r(), g(w, {
35
23
  key: 0,
36
- class: "hidden"
37
- }))
24
+ class: x(["ml-1", [
25
+ { hidden: t.modelValue },
26
+ { "xl:!flex": !t.modelValue },
27
+ { "!flex": e(d) === "modal" },
28
+ { "!hidden": e(d) === "modal" && t.modelValue }
29
+ ]]),
30
+ modelValue: t.modelValue,
31
+ "onUpdate:modelValue": o[0] || (o[0] = (l) => t.$emit("update:modelValue", l))
32
+ }, null, 8, ["class", "modelValue"])) : i("", !0)
38
33
  ]),
39
- i(v, {
40
- onImportCurl: o[1] || (o[1] = (l) => e.$emit("importCurl", l))
34
+ a(v, {
35
+ onImportCurl: o[1] || (o[1] = (l) => t.$emit("importCurl", l))
41
36
  }),
42
- r("div", M, [
43
- e.isReadonly && ((u = t(m)) != null && u.documentUrl) && !t(y) ? (n(), c(t(R), {
37
+ n("div", E, [
38
+ e(m) && ((p = e(s)) != null && p.documentUrl) && !e(C) ? (r(), g(e($), {
44
39
  key: 0,
45
40
  buttonSource: "modal",
46
41
  class: "!w-fit lg:-mr-1",
47
- integration: (p = t(m)) == null ? void 0 : p.integration,
48
- source: t(k).query.source === "gitbook" ? "gitbook" : "api-reference",
49
- url: (f = t(m)) == null ? void 0 : f.documentUrl
50
- }, null, 8, ["integration", "source", "url"])) : s("", !0),
51
- e.isReadonly ? (n(), a("button", {
42
+ integration: (f = e(s)) == null ? void 0 : f.integration,
43
+ source: e(y).query.source === "gitbook" ? "gitbook" : "api-reference",
44
+ url: (c = e(s)) == null ? void 0 : c.documentUrl
45
+ }, null, 8, ["integration", "source", "url"])) : i("", !0),
46
+ e(m) ? (r(), u("button", {
52
47
  key: 1,
53
48
  class: "app-exit-button p-2 rounded-full fixed right-2 top-2 gitbook-hidden",
54
49
  type: "button",
55
- onClick: o[2] || (o[2] = (l) => e.$emit("hideModal"))
50
+ onClick: o[2] || (o[2] = (l) => t.$emit("hideModal"))
56
51
  }, [
57
- i(t(g), {
52
+ a(e(b), {
58
53
  icon: "Close",
59
54
  size: "lg",
60
55
  thickness: "2"
61
56
  }),
62
- o[4] || (o[4] = r("span", { class: "sr-only" }, "Close Client", -1))
63
- ])) : s("", !0),
64
- e.isReadonly ? (n(), a("button", {
57
+ o[4] || (o[4] = n("span", { class: "sr-only" }, "Close Client", -1))
58
+ ])) : i("", !0),
59
+ e(m) ? (r(), u("button", {
65
60
  key: 2,
66
61
  class: "text-c-1 hover:bg-b-2 active:text-c-1 p-2 rounded -mr-1.5 gitbook-show",
67
62
  type: "button",
68
- onClick: o[3] || (o[3] = (l) => e.$emit("hideModal"))
63
+ onClick: o[3] || (o[3] = (l) => t.$emit("hideModal"))
69
64
  }, [
70
- i(t(g), {
65
+ a(e(b), {
71
66
  icon: "Close",
72
67
  size: "md",
73
68
  thickness: "1.75"
74
69
  }),
75
- o[5] || (o[5] = r("span", { class: "sr-only" }, "Close Client", -1))
76
- ])) : s("", !0)
70
+ o[5] || (o[5] = n("span", { class: "sr-only" }, "Close Client", -1))
71
+ ])) : i("", !0)
77
72
  ])
78
73
  ]);
79
74
  };
80
75
  }
81
76
  });
82
77
  export {
83
- F as default
78
+ D as default
84
79
  };
@@ -17,7 +17,7 @@ const K = { class: "relative col-1 flex-center gap-6 p-2 capitalize" }, A = {
17
17
  a.commandPalette.emit({ commandName: "Create Request" });
18
18
  }, y = (i) => {
19
19
  i != null && i.createNew && v.name === "request" && f();
20
- }, h = "2.2.20";
20
+ }, h = "2.2.22";
21
21
  return R(() => a.hotKeys.on(y)), C(() => a.hotKeys.off(y)), (i, e) => (r(), l("div", K, [
22
22
  o("div", {
23
23
  class: k(["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.20",
21
+ "version": "2.2.22",
22
22
  "engines": {
23
23
  "node": ">=18"
24
24
  },
@@ -169,20 +169,20 @@
169
169
  "whatwg-mimetype": "^4.0.0",
170
170
  "yaml": "^2.4.5",
171
171
  "zod": "^3.23.8",
172
- "@scalar/icons": "0.1.2",
173
- "@scalar/components": "0.13.9",
174
- "@scalar/import": "0.2.11",
172
+ "@scalar/components": "0.13.10",
175
173
  "@scalar/draggable": "0.1.8",
174
+ "@scalar/icons": "0.1.2",
176
175
  "@scalar/oas-utils": "0.2.91",
177
- "@scalar/openapi-parser": "0.10.2",
178
176
  "@scalar/object-utils": "1.1.12",
179
- "@scalar/postman-to-openapi": "0.1.14",
177
+ "@scalar/import": "0.2.11",
178
+ "@scalar/openapi-parser": "0.10.2",
180
179
  "@scalar/openapi-types": "0.1.5",
180
+ "@scalar/postman-to-openapi": "0.1.14",
181
181
  "@scalar/types": "0.0.25",
182
- "@scalar/use-hooks": "0.1.11",
183
182
  "@scalar/themes": "0.9.58",
184
- "@scalar/use-codemirror": "0.11.53",
183
+ "@scalar/use-codemirror": "0.11.54",
185
184
  "@scalar/use-toasts": "0.7.7",
185
+ "@scalar/use-hooks": "0.1.11",
186
186
  "@scalar/use-tooltip": "1.0.4"
187
187
  },
188
188
  "devDependencies": {