@scalar/api-client 2.2.4 → 2.2.7

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 (93) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/dist/components/AddressBar/AddressBar.vue.js +2 -2
  3. package/dist/components/AddressBar/AddressBar.vue2.js +1 -1
  4. package/dist/components/AddressBar/AddressBarServer.vue.d.ts.map +1 -1
  5. package/dist/components/AddressBar/AddressBarServer.vue.js +28 -28
  6. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +1 -1
  7. package/dist/components/CommandPalette/CommandPaletteRequest.vue.d.ts.map +1 -1
  8. package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +41 -41
  9. package/dist/components/CommandPalette/CommandPaletteServer.vue.js +2 -2
  10. package/dist/components/CommandPalette/CommandPaletteTag.vue.js +5 -5
  11. package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
  12. package/dist/components/DataTable/DataTableCheckbox.vue.js +5 -6
  13. package/dist/components/DataTable/DataTableInputSelect.vue.d.ts.map +1 -1
  14. package/dist/components/DataTable/DataTableInputSelect.vue.js +8 -8
  15. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.d.ts.map +1 -1
  16. package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +9 -10
  17. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  18. package/dist/components/HttpMethod/HttpMethod.vue.js +2 -2
  19. package/dist/components/HttpMethod/HttpMethod.vue2.js +24 -25
  20. package/dist/components/HttpMethod/index.d.ts +0 -1
  21. package/dist/components/HttpMethod/index.d.ts.map +1 -1
  22. package/dist/components/HttpMethod/index.js +2 -4
  23. package/dist/components/ImportCollection/ImportCollectionModal.vue.d.ts.map +1 -1
  24. package/dist/components/ImportCollection/ImportCollectionModal.vue.js +121 -103
  25. package/dist/components/ImportCollection/WorkspaceSelector.vue.d.ts.map +1 -1
  26. package/dist/components/ImportCollection/WorkspaceSelector.vue.js +24 -26
  27. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts +6 -0
  28. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.d.ts.map +1 -1
  29. package/dist/components/ImportCollection/hooks/useUrlPrefetcher.js +28 -23
  30. package/dist/components/OpenApiClientButton.vue.d.ts +1 -0
  31. package/dist/components/OpenApiClientButton.vue.d.ts.map +1 -1
  32. package/dist/components/OpenApiClientButton.vue.js +2 -2
  33. package/dist/components/OpenApiClientButton.vue2.js +21 -15
  34. package/dist/components/Search/useSearch.d.ts.map +1 -1
  35. package/dist/components/Search/useSearch.js +45 -41
  36. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.d.ts.map +1 -1
  37. package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +5 -6
  38. package/dist/layouts/App/create-api-client-app.d.ts +1 -0
  39. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  40. package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
  41. package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
  42. package/dist/layouts/Modal/ApiClientModal.vue2.js +28 -23
  43. package/dist/layouts/Modal/create-api-client-modal.d.ts +2 -0
  44. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  45. package/dist/layouts/Web/create-api-client-web.d.ts +1 -0
  46. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  47. package/dist/libs/create-client.d.ts +3 -1
  48. package/dist/libs/create-client.d.ts.map +1 -1
  49. package/dist/libs/create-client.js +50 -48
  50. package/dist/store/store.d.ts +3 -1
  51. package/dist/store/store.d.ts.map +1 -1
  52. package/dist/store/store.js +47 -45
  53. package/dist/style.css +1 -1
  54. package/dist/views/Cookies/Cookies.vue.d.ts.map +1 -1
  55. package/dist/views/Cookies/Cookies.vue2.js +18 -20
  56. package/dist/views/Environment/EnvironmentVariableDropdown.vue.d.ts.map +1 -1
  57. package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +63 -60
  58. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.d.ts.map +1 -1
  59. package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +20 -19
  60. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.d.ts.map +1 -1
  61. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue.js +1 -1
  62. package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +84 -86
  63. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  64. package/dist/views/Request/RequestSection/RequestBody.vue.js +2 -2
  65. package/dist/views/Request/RequestSection/RequestBody.vue2.js +37 -36
  66. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  67. package/dist/views/Request/RequestSidebar.vue.js +3 -3
  68. package/dist/views/Request/RequestSidebar.vue2.js +60 -61
  69. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  70. package/dist/views/Request/RequestSidebarItem.vue.js +1 -1
  71. package/dist/views/Request/RequestSidebarItem.vue2.js +187 -195
  72. package/dist/views/Request/RequestSubpageHeader.vue.d.ts.map +1 -1
  73. package/dist/views/Request/RequestSubpageHeader.vue.js +3 -3
  74. package/dist/views/Request/RequestSubpageHeader.vue2.js +34 -36
  75. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.d.ts.map +1 -1
  76. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue.js +1 -1
  77. package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +5 -5
  78. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.d.ts.map +1 -1
  79. package/dist/views/Request/ResponseSection/ResponseEmpty.vue.js +2 -2
  80. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +30 -25
  81. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.d.ts.map +1 -1
  82. package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +41 -30
  83. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
  84. package/dist/views/Request/components/WorkspaceDropdown.vue.js +3 -5
  85. package/dist/views/Request/libs/live-sync.d.ts.map +1 -1
  86. package/dist/views/Request/libs/live-sync.js +77 -78
  87. package/dist/views/Request/libs/oauth2.d.ts +6 -2
  88. package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
  89. package/dist/views/Request/libs/oauth2.js +43 -37
  90. package/package.json +10 -11
  91. package/dist/components/HttpMethod/helpers.d.ts +0 -4
  92. package/dist/components/HttpMethod/helpers.d.ts.map +0 -1
  93. package/dist/components/HttpMethod/helpers.js +0 -5
@@ -1,13 +1,15 @@
1
- import { defineComponent as y, openBlock as l, createElementBlock as a, createElementVNode as r, createVNode as s, normalizeClass as c, unref as t, createBlock as d, createCommentVNode as i } from "vue";
2
- import k from "../../components/AddressBar/AddressBar.vue.js";
3
- import C from "../../components/EnvironmentSelector/EnvironmentSelector.vue.js";
4
- import x from "../../components/Sidebar/SidebarToggle.vue.js";
5
- import { useActiveEntities as v } from "../../store/active-entities.js";
6
- import { ScalarIcon as g } from "@scalar/components";
7
- import V from "./components/WorkspaceDropdown.vue.js";
8
- import w from "../../components/OpenApiClientButton.vue.js";
9
- import { useLayout as h } from "../../hooks/useLayout.js";
10
- const $ = { class: "lg:min-h-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" }, B = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 lg:mb-0 mb-2 lg:flex-1 w-6/12" }, R = { 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" }, H = /* @__PURE__ */ y({
1
+ import { defineComponent as C, openBlock as l, createElementBlock as a, createElementVNode as i, createVNode as s, normalizeClass as V, unref as t, createBlock as u, createCommentVNode as r } from "vue";
2
+ import x from "../../components/AddressBar/AddressBar.vue.js";
3
+ import v from "../../components/EnvironmentSelector/EnvironmentSelector.vue.js";
4
+ import w from "../../components/Sidebar/SidebarToggle.vue.js";
5
+ import { useActiveEntities as R } from "../../store/active-entities.js";
6
+ import { ScalarIcon as c } from "@scalar/components";
7
+ import { useRouter as $ } from "vue-router";
8
+ import B from "./components/WorkspaceDropdown.vue.js";
9
+ import h from "../../components/OpenApiClientButton.vue.js";
10
+ import { useWorkspace as z } from "../../store/store.js";
11
+ import { useLayout as A } from "../../hooks/useLayout.js";
12
+ const E = { class: "lg:min-h-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" }, M = { class: "flex flex-row items-center gap-1 lg:px-1 lg:mb-0 lg:mb-0 mb-2 lg:flex-1 w-6/12" }, N = { 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" }, J = /* @__PURE__ */ C({
11
13
  __name: "RequestSubpageHeader",
12
14
  props: {
13
15
  modelValue: { type: Boolean },
@@ -15,13 +17,13 @@ const $ = { class: "lg:min-h-header flex items-center w-full justify-center p-2
15
17
  },
16
18
  emits: ["update:modelValue", "hideModal", "importCurl"],
17
19
  setup(S) {
18
- const { activeCollection: m } = v(), { layout: b } = h();
20
+ const { activeCollection: m } = R(), g = z(), { hideClientButton: y } = g, { layout: b } = A(), { currentRoute: k } = $();
19
21
  return (o, e) => {
20
- var p, u, f;
21
- return l(), a("div", $, [
22
- r("div", B, [
23
- s(x, {
24
- class: c(["gitbook-hidden", [
22
+ var d, p, f;
23
+ return l(), a("div", E, [
24
+ i("div", M, [
25
+ s(w, {
26
+ class: V(["gitbook-hidden", [
25
27
  "xl:hidden",
26
28
  { "xl:!flex": !o.modelValue },
27
29
  { "!flex": t(b) === "modal" }
@@ -29,56 +31,52 @@ const $ = { class: "lg:min-h-header flex items-center w-full justify-center p-2
29
31
  modelValue: o.modelValue,
30
32
  "onUpdate:modelValue": e[0] || (e[0] = (n) => o.$emit("update:modelValue", n))
31
33
  }, null, 8, ["class", "modelValue"]),
32
- o.isReadonly ? i("", !0) : (l(), d(t(V), { key: 0 })),
33
- e[4] || (e[4] = r("a", {
34
- class: "text-c-2 text-sm font-medium gitbook-show ml-.5 hover:text-c-1 border p-1 rounded hover:bg-b-3",
35
- href: "https://scalar.com/",
36
- target: "_blank"
37
- }, " Powered by Scalar.com ", -1))
34
+ o.isReadonly ? r("", !0) : (l(), u(t(B), { key: 0 }))
38
35
  ]),
39
- s(k, {
36
+ s(x, {
40
37
  onImportCurl: e[1] || (e[1] = (n) => o.$emit("importCurl", n))
41
38
  }),
42
- r("div", R, [
43
- o.isReadonly ? i("", !0) : (l(), d(C, { key: 0 })),
44
- o.isReadonly && ((p = t(m)) != null && p.documentUrl) ? (l(), d(t(w), {
39
+ i("div", N, [
40
+ o.isReadonly ? r("", !0) : (l(), u(v, { key: 0 })),
41
+ o.isReadonly && ((d = t(m)) != null && d.documentUrl) && !t(y) ? (l(), u(t(h), {
45
42
  key: 1,
46
43
  buttonSource: "modal",
47
- class: "gitbook-hidden !w-fit lg:-mr-1",
48
- integration: (u = t(m)) == null ? void 0 : u.integration,
44
+ class: "!w-fit lg:-mr-1",
45
+ integration: (p = t(m)) == null ? void 0 : p.integration,
46
+ source: t(k).query.source === "gitbook" ? "gitbook" : "api-reference",
49
47
  url: (f = t(m)) == null ? void 0 : f.documentUrl
50
- }, null, 8, ["integration", "url"])) : i("", !0),
48
+ }, null, 8, ["integration", "source", "url"])) : r("", !0),
51
49
  o.isReadonly ? (l(), a("button", {
52
50
  key: 2,
53
51
  class: "app-exit-button p-2 rounded-full fixed right-2 top-2 gitbook-hidden",
54
52
  type: "button",
55
53
  onClick: e[2] || (e[2] = (n) => o.$emit("hideModal"))
56
54
  }, [
57
- s(t(g), {
55
+ s(t(c), {
58
56
  icon: "Close",
59
57
  size: "lg",
60
58
  thickness: "2"
61
59
  }),
62
- e[5] || (e[5] = r("span", { class: "sr-only" }, "Close Client", -1))
63
- ])) : i("", !0),
60
+ e[4] || (e[4] = i("span", { class: "sr-only" }, "Close Client", -1))
61
+ ])) : r("", !0),
64
62
  o.isReadonly ? (l(), a("button", {
65
63
  key: 3,
66
64
  class: "text-c-1 hover:bg-b-2 active:text-c-1 p-2 rounded -mr-1.5 gitbook-show",
67
65
  type: "button",
68
66
  onClick: e[3] || (e[3] = (n) => o.$emit("hideModal"))
69
67
  }, [
70
- s(t(g), {
68
+ s(t(c), {
71
69
  icon: "Close",
72
70
  size: "md",
73
71
  thickness: "1.75"
74
72
  }),
75
- e[6] || (e[6] = r("span", { class: "sr-only" }, "Close Client", -1))
76
- ])) : i("", !0)
73
+ e[5] || (e[5] = i("span", { class: "sr-only" }, "Close Client", -1))
74
+ ])) : r("", !0)
77
75
  ])
78
76
  ]);
79
77
  };
80
78
  }
81
79
  });
82
80
  export {
83
- H as default
81
+ J as default
84
82
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseBodyPreview.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseBodyPreview.vue"],"names":[],"mappings":"AAqEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAO1D,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB,CAAC;;AA8HF,wBAMG"}
1
+ {"version":3,"file":"ResponseBodyPreview.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseBodyPreview.vue"],"names":[],"mappings":"AAqEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAO1D,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB,CAAC;;AA+HF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ResponseBodyPreview.vue2.js";
2
2
  /* empty css */
3
3
  import e from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-ce1255fa"]]);
4
+ const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-c821a9de"]]);
5
5
  export {
6
6
  s as default
7
7
  };
@@ -8,18 +8,18 @@ const k = ["src"], w = ["src", "type"], B = ["src", "type"], E = ["data", "type"
8
8
  mode: {},
9
9
  alpha: { type: Boolean }
10
10
  },
11
- setup(p) {
12
- const u = p, r = i(!1);
11
+ setup(u) {
12
+ const p = u, r = i(!1);
13
13
  return y(
14
- () => u.src,
14
+ () => p.src,
15
15
  () => r.value = !1
16
16
  ), (e, o) => !r.value && e.src ? (s(), t("div", {
17
17
  key: 0,
18
- class: n(["flex justify-center overflow-hidden rounded-b", { "p-2 bg-preview": e.alpha }])
18
+ class: n(["flex justify-center overflow-auto rounded-b", { "p-2 bg-preview": e.alpha }])
19
19
  }, [
20
20
  e.mode === "image" ? (s(), t("img", {
21
21
  key: 0,
22
- class: n(["max-w-full", { rounded: e.alpha }]),
22
+ class: n(["h-full max-w-full", { rounded: e.alpha }]),
23
23
  src: e.src,
24
24
  onError: o[0] || (o[0] = (l) => r.value = !0)
25
25
  }, null, 42, k)) : e.mode === "video" ? (s(), t("video", {
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseEmpty.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseEmpty.vue"],"names":[],"mappings":";AA6XA,wBAMG"}
1
+ {"version":3,"file":"ResponseEmpty.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseEmpty.vue"],"names":[],"mappings":";AA4YA,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ResponseEmpty.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-886982fd"]]);
4
+ const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-bc56cd7e"]]);
5
5
  export {
6
- s as default
6
+ r as default
7
7
  };
@@ -1,31 +1,31 @@
1
- import { defineComponent as b, onMounted as R, onBeforeUnmount as C, openBlock as n, createElementBlock as l, createElementVNode as o, normalizeClass as k, unref as t, createTextVNode as c, toDisplayString as N, createCommentVNode as m, createVNode as s } from "vue";
2
- import q from "../../../assets/computer.ascii.js";
1
+ import { defineComponent as _, onMounted as R, onBeforeUnmount as C, openBlock as r, createElementBlock as l, createElementVNode as o, normalizeClass as k, unref as t, createTextVNode as c, toDisplayString as w, createCommentVNode as m, createVNode as s } from "vue";
2
+ import N from "../../../assets/computer.ascii.js";
3
3
  import x from "../../../assets/keycap.ascii.js";
4
4
  import u from "../../../components/ScalarAsciiArt.vue.js";
5
5
  import p from "../../../components/ScalarHotkey.vue.js";
6
- import { useActiveEntities as V } from "../../../store/active-entities.js";
7
- import { useRoute as K } from "vue-router";
8
- import { useWorkspace as S } from "../../../store/store.js";
9
- import { useLayout as A } from "../../../hooks/useLayout.js";
10
- const B = { class: "relative col-1 flex-center gap-6 p-2 capitalize" }, E = {
6
+ import { useActiveEntities as q } from "../../../store/active-entities.js";
7
+ import { useRoute as S } from "vue-router";
8
+ import { useWorkspace as V } from "../../../store/store.js";
9
+ import { useLayout as B } from "../../../hooks/useLayout.js";
10
+ const K = { class: "relative col-1 flex-center gap-6 p-2 capitalize" }, A = {
11
11
  key: 0,
12
12
  class: "scalar-version-number"
13
- }, w = { class: "scale-75 flex" }, P = { class: "relative" }, $ = { class: "relative -ml-12" }, j = { class: "text-c-3 right-4 mt-auto flex w-full flex-col items-end gap-2 text-sm" }, F = /* @__PURE__ */ b({
13
+ }, E = { class: "scale-75 flex" }, P = { class: "relative" }, $ = { class: "relative -ml-12" }, j = { class: "text-c-3 right-4 mt-auto flex w-full flex-col items-end gap-2 text-sm" }, F = /* @__PURE__ */ _({
14
14
  __name: "ResponseEmpty",
15
15
  setup(z) {
16
- const { activeWorkspaceRequests: d } = V(), { isReadOnly: g, events: a } = S(), v = K(), { layout: r } = A(), f = () => {
16
+ const { activeWorkspaceRequests: d } = q(), { isReadOnly: g, events: a } = V(), v = S(), { layout: n } = B(), f = () => {
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.4";
21
- return R(() => a.hotKeys.on(y)), C(() => a.hotKeys.off(y)), (i, e) => (n(), l("div", B, [
20
+ }, h = "2.2.7";
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", {
24
- "hidden opacity-0": t(d).length <= 1 && t(r) !== "modal"
24
+ "hidden opacity-0": t(d).length <= 1 && t(n) !== "modal"
25
25
  }])
26
26
  }, [
27
- t(g) ? m("", !0) : (n(), l("div", E, [
28
- c(" Scalar App V" + N(t(h)) + " Beta ", 1),
27
+ t(g) ? m("", !0) : (r(), l("div", A, [
28
+ c(" Scalar App V" + w(t(h)) + " Beta ", 1),
29
29
  e[2] || (e[2] = o("div", { class: "mt-2" }, [
30
30
  o("a", {
31
31
  href: "https://github.com/scalar/scalar/issues/2669",
@@ -33,18 +33,23 @@ const B = { class: "relative col-1 flex-center gap-6 p-2 capitalize" }, E = {
33
33
  }, " Roadmap ")
34
34
  ], -1))
35
35
  ])),
36
+ e[3] || (e[3] = o("a", {
37
+ class: "gitbook-show scalar-version-number",
38
+ href: "https://www.scalar.com",
39
+ target: "_blank"
40
+ }, " Powered By Scalar.com ", -1)),
36
41
  s(u, {
37
- art: t(q),
42
+ art: t(N),
38
43
  class: "text-c-3"
39
44
  }, null, 8, ["art"])
40
45
  ], 2),
41
- t(r) !== "modal" ? (n(), l("div", {
46
+ t(n) !== "modal" ? (r(), l("div", {
42
47
  key: 0,
43
48
  class: k(["h-[calc(100%_-_50px)] items-center justify-center hidden pb-5", {
44
49
  "!flex opacity-100": t(d).length == 1
45
50
  }])
46
51
  }, [
47
- o("div", w, [
52
+ o("div", E, [
48
53
  o("div", P, [
49
54
  s(p, {
50
55
  class: "keycap-hotkey",
@@ -56,7 +61,7 @@ const B = { class: "relative col-1 flex-center gap-6 p-2 capitalize" }, E = {
56
61
  }, null, 8, ["art"])
57
62
  ]),
58
63
  o("div", $, [
59
- e[3] || (e[3] = o("div", { class: "keycap-hotkey !right-[60px]" }, "K", -1)),
64
+ e[4] || (e[4] = o("div", { class: "keycap-hotkey !right-[60px]" }, "K", -1)),
60
65
  s(u, {
61
66
  art: t(x),
62
67
  class: "!leading-[6px] keycap-n"
@@ -65,30 +70,30 @@ const B = { class: "relative col-1 flex-center gap-6 p-2 capitalize" }, E = {
65
70
  ])
66
71
  ], 2)) : m("", !0),
67
72
  o("div", j, [
68
- t(r) !== "modal" ? (n(), l("button", {
73
+ t(n) !== "modal" ? (r(), l("button", {
69
74
  key: 0,
70
75
  class: "flex items-center gap-1.5",
71
76
  type: "button",
72
- onClick: e[0] || (e[0] = (_) => t(a).commandPalette.emit())
77
+ onClick: e[0] || (e[0] = (b) => t(a).commandPalette.emit())
73
78
  }, [
74
- e[4] || (e[4] = c(" Get Started ")),
79
+ e[5] || (e[5] = c(" Get Started ")),
75
80
  s(p, { hotkey: "k" })
76
81
  ])) : m("", !0),
77
82
  o("button", {
78
83
  class: "flex items-center gap-1.5",
79
84
  type: "button",
80
- onClick: e[1] || (e[1] = (_) => t(a).executeRequest.emit())
85
+ onClick: e[1] || (e[1] = (b) => t(a).executeRequest.emit())
81
86
  }, [
82
- e[5] || (e[5] = c(" Send Request ")),
87
+ e[6] || (e[6] = c(" Send Request ")),
83
88
  s(p, { hotkey: "↵" })
84
89
  ]),
85
- t(r) === "desktop" ? (n(), l("button", {
90
+ t(n) === "desktop" ? (r(), l("button", {
86
91
  key: 1,
87
92
  class: "flex items-center gap-1.5",
88
93
  type: "button",
89
94
  onClick: f
90
95
  }, [
91
- e[6] || (e[6] = c(" New Request ")),
96
+ e[7] || (e[7] = c(" New Request ")),
92
97
  s(p, { hotkey: "N" })
93
98
  ])) : m("", !0)
94
99
  ])
@@ -1 +1 @@
1
- {"version":3,"file":"ResponseMetaInformation.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseMetaInformation.vue"],"names":[],"mappings":"AA+EA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAQvE,KAAK,WAAW,GAAG;IAAE,QAAQ,EAAE,gBAAgB,CAAA;CAAE,CAAC;;AAyIlD,wBAOG"}
1
+ {"version":3,"file":"ResponseMetaInformation.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseMetaInformation.vue"],"names":[],"mappings":"AAsFA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAQvE,KAAK,WAAW,GAAG;IAAE,QAAQ,EAAE,gBAAgB,CAAA;CAAE,CAAC;;AAsJlD,wBAOG"}
@@ -1,52 +1,63 @@
1
- import { defineComponent as I, ref as v, computed as S, openBlock as s, createElementBlock as o, toDisplayString as n, unref as c, Fragment as f, createElementVNode as u, createTextVNode as p, createCommentVNode as y, createBlock as _, withCtx as B } from "vue";
2
- import L from "../../../components/HelpfulLink.vue.js";
3
- import { httpStatusCodes as N } from "@scalar/oas-utils/helpers";
4
- import V from "pretty-bytes";
1
+ import { defineComponent as I, ref as m, computed as _, openBlock as o, createElementBlock as r, toDisplayString as n, unref as f, Fragment as v, createElementVNode as a, createTextVNode as p, createCommentVNode as y, createBlock as b, withCtx as w, normalizeStyle as k } from "vue";
2
+ import B from "../../../components/HelpfulLink.vue.js";
3
+ import { httpStatusCodes as L } from "@scalar/oas-utils/helpers";
4
+ import N from "pretty-bytes";
5
5
  import h from "pretty-ms";
6
- import { useWorkspace as w } from "../../../store/store.js";
7
- const D = { class: "flex gap-1.5 text-c-1" }, E = { key: 0 }, M = { key: 0 }, R = { key: 1 }, $ = /* @__PURE__ */ I({
6
+ import { useWorkspace as V } from "../../../store/store.js";
7
+ const x = { class: "flex gap-1.5 text-c-1" }, z = { key: 0 }, D = { key: 0 }, E = { key: 1 }, $ = /* @__PURE__ */ I({
8
8
  __name: "ResponseMetaInformation",
9
9
  props: {
10
10
  response: {}
11
11
  },
12
- setup(k) {
13
- const g = k, { events: C } = w(), a = v(), l = v(0);
14
- C.requestStatus.on((e) => {
15
- e === "start" ? a.value = setInterval(() => l.value += 1e3, 1e3) : (clearInterval(a.value), a.value = void 0, l.value = 0);
12
+ setup(g) {
13
+ const C = g, { events: S } = V(), l = m(), u = m(0);
14
+ S.requestStatus.on((e) => {
15
+ e === "start" ? l.value = setInterval(() => u.value += 1e3, 1e3) : (clearInterval(l.value), l.value = void 0, u.value = 0);
16
16
  });
17
17
  const i = (e) => {
18
- var m, d;
18
+ var c, d;
19
19
  const t = parseInt(
20
- ((m = e.headers) == null ? void 0 : m["Content-Length"]) || ((d = e.headers) == null ? void 0 : d["content-length"]) || "0",
20
+ ((c = e.headers) == null ? void 0 : c["Content-Length"]) || ((d = e.headers) == null ? void 0 : d["content-length"]) || "0",
21
21
  10
22
22
  );
23
- return t ? V(t) : void 0;
24
- }, r = S(() => {
25
- const e = g.response.status;
23
+ return t ? N(t) : void 0;
24
+ }, s = _(() => {
25
+ const e = C.response.status;
26
26
  if (e)
27
- return N[e] ?? void 0;
27
+ return L[e] ?? void 0;
28
28
  });
29
- return (e, t) => (s(), o("div", D, [
30
- a.value && l.value ? (s(), o("span", E, n(c(h)(l.value)), 1)) : (s(), o(f, { key: 1 }, [
31
- u("span", null, [
32
- t[0] || (t[0] = u("span", { class: "sr-only" }, "Response Information, Duration:", -1)),
33
- p(" " + n(c(h)(e.response.duration)), 1)
29
+ return (e, t) => (o(), r("div", x, [
30
+ l.value && u.value ? (o(), r("span", z, n(f(h)(u.value)), 1)) : (o(), r(v, { key: 1 }, [
31
+ a("span", null, [
32
+ t[0] || (t[0] = a("span", { class: "sr-only" }, "Response Information, Duration:", -1)),
33
+ p(" " + n(f(h)(e.response.duration)), 1)
34
34
  ]),
35
- i(e.response) ? (s(), o("span", M, [
36
- t[1] || (t[1] = u("span", { class: "sr-only" }, ", Size:", -1)),
35
+ i(e.response) ? (o(), r("span", D, [
36
+ t[1] || (t[1] = a("span", { class: "sr-only" }, ", Size:", -1)),
37
37
  p(" " + n(i(e.response)), 1)
38
38
  ])) : y("", !0),
39
- r.value ? (s(), o(f, { key: 1 }, [
40
- t[2] || (t[2] = u("span", { class: "sr-only" }, ", Status:", -1)),
41
- r.value.url ? (s(), _(L, {
39
+ s.value ? (o(), r(v, { key: 1 }, [
40
+ t[2] || (t[2] = a("span", { class: "sr-only" }, ", Status:", -1)),
41
+ s.value.url ? (o(), b(B, {
42
42
  key: 0,
43
- href: r.value.url
43
+ class: "flex items-center gap-1.5",
44
+ href: s.value.url
44
45
  }, {
45
- default: B(() => [
46
- p(n(e.response.status) + " " + n(r.value.name), 1)
46
+ default: w(() => [
47
+ p(n(e.response.status) + " " + n(s.value.name) + " ", 1),
48
+ a("span", {
49
+ class: "block h-1.5 w-1.5 rounded-full",
50
+ style: k({ backgroundColor: s.value.color })
51
+ }, null, 4)
47
52
  ]),
48
53
  _: 1
49
- }, 8, ["href"])) : (s(), o("span", R, n(e.response.status) + " " + n(r.value.name), 1))
54
+ }, 8, ["href"])) : (o(), r("span", E, [
55
+ p(n(e.response.status) + " " + n(s.value.name) + " ", 1),
56
+ a("span", {
57
+ class: "block h-1.5 w-1.5 rounded-full",
58
+ style: k({ backgroundColor: s.value.color })
59
+ }, null, 4)
60
+ ]))
50
61
  ], 64)) : y("", !0)
51
62
  ], 64))
52
63
  ]));
@@ -1 +1 @@
1
- {"version":3,"file":"WorkspaceDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/components/WorkspaceDropdown.vue"],"names":[],"mappings":";AA8yBA,wBAMG"}
1
+ {"version":3,"file":"WorkspaceDropdown.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/components/WorkspaceDropdown.vue"],"names":[],"mappings":";AA0yBA,wBAMG"}
@@ -52,7 +52,7 @@ const J = { class: "flex items-center text-sm w-[inherit]" }, K = { class: "font
52
52
  l("span", X, z(p.name), 1),
53
53
  s(e(S), {
54
54
  placement: "right-start",
55
- teleport: ".scalar-client"
55
+ teleport: ""
56
56
  }, {
57
57
  items: n(() => [
58
58
  s(e(u), {
@@ -152,9 +152,8 @@ const J = { class: "flex items-center text-sm w-[inherit]" }, K = { class: "font
152
152
  default: n(() => [
153
153
  l("div", Z, [
154
154
  s(e(c), {
155
- class: "h-2.5",
156
155
  icon: "Add",
157
- thickness: "3"
156
+ size: "sm"
158
157
  })
159
158
  ]),
160
159
  t[8] || (t[8] = l("span", null, "Create Workspace", -1))
@@ -172,9 +171,8 @@ const J = { class: "flex items-center text-sm w-[inherit]" }, K = { class: "font
172
171
  l("div", K, [
173
172
  l("h2", Q, z(e(f).name), 1),
174
173
  s(e(c), {
175
- class: "size-3",
176
174
  icon: "ChevronDown",
177
- thickness: "3"
175
+ size: "md"
178
176
  })
179
177
  ])
180
178
  ]),
@@ -1 +1 @@
1
- {"version":3,"file":"live-sync.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/libs/live-sync.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAelE,OAAO,EACL,KAAK,IAAI,EACT,KAAK,SAAS,EAEf,MAAM,6BAA6B,CAAA;AAEpC,OAAkB,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAA;AACtD,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,UAAU,EAAK,MAAM,KAAK,CAAA;AAExD;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB,SACvB,UAAU,EAAE,eACN,MAAM,EAAE,KACnB,UAAU,EAqFZ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