@scalar/api-client 2.0.44 → 2.0.46

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 (113) hide show
  1. package/CHANGELOG.md +23 -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 +77 -69
  5. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
  6. package/dist/components/AddressBar/AddressBarHistory.vue.js +24 -25
  7. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  8. package/dist/components/CodeInput/CodeInput.vue.js +1 -1
  9. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +23 -23
  10. package/dist/components/CommandPalette/CommandPaletteRequest.vue.js +6 -6
  11. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  12. package/dist/components/CommandPalette/TheCommandPalette.vue.js +1 -1
  13. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +1 -1
  14. package/dist/components/ContextBar.vue.d.ts.map +1 -1
  15. package/dist/components/ContextBar.vue.js +5 -23
  16. package/dist/components/ContextBar.vue2.js +25 -2
  17. package/dist/components/DarkModeToggle/DarkModeIconToggle.vue.js +1 -1
  18. package/dist/components/Form/Form.vue.d.ts +12 -3
  19. package/dist/components/Form/Form.vue.d.ts.map +1 -1
  20. package/dist/components/Form/Form.vue.js +24 -24
  21. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  22. package/dist/components/HttpMethod/HttpMethod.vue.js +5 -64
  23. package/dist/components/HttpMethod/HttpMethod.vue2.js +61 -2
  24. package/dist/components/Search/SearchModal.vue2.js +22 -22
  25. package/dist/components/SideNav/SideHelp.vue.js +1 -1
  26. package/dist/components/SideNav/SideNavLink.vue.js +2 -2
  27. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  28. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  29. package/dist/components/Sidebar/SidebarButton.vue.js +1 -1
  30. package/dist/components/Sidebar/SidebarListElement.vue.d.ts.map +1 -1
  31. package/dist/components/Sidebar/SidebarListElement.vue.js +2 -2
  32. package/dist/components/Sidebar/SidebarListElement.vue2.js +21 -21
  33. package/dist/components/Sidebar/SidebarListElementActions.vue.d.ts.map +1 -1
  34. package/dist/components/Sidebar/SidebarListElementActions.vue.js +19 -18
  35. package/dist/components/Sidebar/SidebarToggle.vue.js +1 -1
  36. package/dist/components/SubpageHeader.vue.d.ts.map +1 -1
  37. package/dist/components/SubpageHeader.vue.js +3 -3
  38. package/dist/components/SubpageHeader.vue2.js +8 -8
  39. package/dist/components/TopNav/TopNav.vue.js +2 -2
  40. package/dist/components/TopNav/TopNav.vue2.js +2 -2
  41. package/dist/components/TopNav/TopNavItem.vue.d.ts.map +1 -1
  42. package/dist/components/TopNav/TopNavItem.vue.js +2 -2
  43. package/dist/components/ViewLayout/ViewLayout.vue.d.ts.map +1 -1
  44. package/dist/components/ViewLayout/ViewLayout.vue.js +6 -6
  45. package/dist/components/ViewLayout/ViewLayoutContent.vue.js +1 -1
  46. package/dist/components/ViewLayout/ViewLayoutSection.vue.js +1 -1
  47. package/dist/errors.d.ts +5 -0
  48. package/dist/errors.d.ts.map +1 -0
  49. package/dist/errors.js +7 -0
  50. package/dist/layouts/App/ApiClientApp.vue.d.ts.map +1 -1
  51. package/dist/layouts/App/ApiClientApp.vue.js +46 -43
  52. package/dist/layouts/App/create-api-client-app.d.ts +158 -81
  53. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  54. package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
  55. package/dist/layouts/Modal/ApiClientModal.vue.js +1 -1
  56. package/dist/layouts/Modal/ApiClientModal.vue2.js +24 -20
  57. package/dist/layouts/Modal/create-api-client-modal.d.ts +316 -162
  58. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  59. package/dist/libs/create-client.d.ts +159 -83
  60. package/dist/libs/create-client.d.ts.map +1 -1
  61. package/dist/libs/create-client.js +18 -19
  62. package/dist/libs/event-busses/command-palette.d.ts.map +1 -0
  63. package/dist/libs/{eventBusses/executeRequestBus.d.ts → event-busses/execute-requestBus.d.ts} +1 -1
  64. package/dist/libs/event-busses/execute-requestBus.d.ts.map +1 -0
  65. package/dist/libs/event-busses/hot-key.d.ts +34 -0
  66. package/dist/libs/event-busses/hot-key.d.ts.map +1 -0
  67. package/dist/libs/event-busses/hot-key.js +25 -0
  68. package/dist/libs/event-busses/index.d.ts +5 -0
  69. package/dist/libs/event-busses/index.d.ts.map +1 -0
  70. package/dist/libs/event-busses/index.js +12 -0
  71. package/dist/libs/event-busses/request-status-bus.d.ts +5 -0
  72. package/dist/libs/event-busses/request-status-bus.d.ts.map +1 -0
  73. package/dist/libs/event-busses/request-status-bus.js +5 -0
  74. package/dist/libs/index.d.ts +1 -1
  75. package/dist/libs/index.d.ts.map +1 -1
  76. package/dist/libs/index.js +18 -10
  77. package/dist/libs/sendRequest.d.ts +2 -0
  78. package/dist/libs/sendRequest.d.ts.map +1 -1
  79. package/dist/libs/sendRequest.js +46 -37
  80. package/dist/store/workspace.d.ts +316 -162
  81. package/dist/store/workspace.d.ts.map +1 -1
  82. package/dist/style.css +1 -1
  83. package/dist/views/Cookies/CookieForm.vue.d.ts.map +1 -1
  84. package/dist/views/Cookies/CookieForm.vue.js +34 -17
  85. package/dist/views/Cookies/Cookies.vue2.js +9 -9
  86. package/dist/views/Environment/Environment.vue2.js +24 -24
  87. package/dist/views/Request/Request.vue.d.ts.map +1 -1
  88. package/dist/views/Request/Request.vue.js +1 -1
  89. package/dist/views/Request/Request.vue2.js +170 -166
  90. package/dist/views/Request/RequestSection/RequestAuth.vue.d.ts.map +1 -1
  91. package/dist/views/Request/RequestSection/RequestAuth.vue.js +2 -2
  92. package/dist/views/Request/RequestSection/RequestAuth.vue2.js +115 -126
  93. package/dist/views/Request/RequestSection/RequestPathParams.vue.d.ts.map +1 -1
  94. package/dist/views/Request/RequestSection/RequestPathParams.vue.js +63 -42
  95. package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
  96. package/dist/views/Request/RequestSection/RequestSection.vue.js +69 -51
  97. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  98. package/dist/views/Request/RequestSidebarItem.vue2.js +32 -32
  99. package/dist/views/Request/RequestSidebarItemMenu.vue.js +4 -4
  100. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +19 -19
  101. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  102. package/dist/views/Request/ResponseSection/ResponseSection.vue.js +18 -18
  103. package/dist/views/Request/components/WorkspaceDropdown.vue.d.ts.map +1 -1
  104. package/dist/views/Request/components/WorkspaceDropdown.vue.js +10 -10
  105. package/package.json +9 -9
  106. package/dist/libs/eventBusses/command-palette.d.ts.map +0 -1
  107. package/dist/libs/eventBusses/executeRequestBus.d.ts.map +0 -1
  108. package/dist/libs/eventBusses/index.d.ts +0 -2
  109. package/dist/libs/eventBusses/index.d.ts.map +0 -1
  110. package/dist/libs/eventBusses/index.js +0 -4
  111. /package/dist/libs/{eventBusses → event-busses}/command-palette.d.ts +0 -0
  112. /package/dist/libs/{eventBusses → event-busses}/command-palette.js +0 -0
  113. /package/dist/libs/{eventBusses/executeRequestBus.js → event-busses/execute-requestBus.js} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.0.46
4
+
5
+ ### Patch Changes
6
+
7
+ - 2f6180a: fix: improve address bar styles
8
+ - Updated dependencies [17e06de]
9
+ - @scalar/oas-utils@0.2.27
10
+
11
+ ## 2.0.45
12
+
13
+ ### Patch Changes
14
+
15
+ - ee80ee5: feat: allow renaming requests, cookies, environments
16
+ - f3fec79: fix: adds delete sidebar list element close event
17
+ - 2301345: fix: authentication select
18
+ - 57f5691: feat: set path variables from url
19
+ - faf3ed9: fix: style updates to client app
20
+ - a1c73a0: feat(api-client): improve client request loading and feedback
21
+ - Updated dependencies [faf3ed9]
22
+ - @scalar/themes@0.9.21
23
+ - @scalar/components@0.12.28
24
+ - @scalar/oas-utils@0.2.26
25
+
3
26
  ## 2.0.44
4
27
 
5
28
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBar.vue"],"names":[],"mappings":";AAulBA,wBAKG"}
1
+ {"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBar.vue"],"names":[],"mappings":";AAirBA,wBAKG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./AddressBar.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-556303b4"]]);
4
+ const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-372103f0"]]);
5
5
  export {
6
- m as default
6
+ f as default
7
7
  };
@@ -1,121 +1,129 @@
1
- import { defineComponent as q, ref as c, watch as V, unref as l, openBlock as B, createElementBlock as I, createElementVNode as o, createVNode as s, withCtx as _, normalizeClass as b, normalizeStyle as R, createCommentVNode as z, pushScopeId as M, popScopeId as U } from "vue";
2
- import $ from "../CodeInput/CodeInput.vue.js";
3
- import { useWorkspace as O } from "../../store/workspace.js";
4
- import { Listbox as H } from "@headlessui/vue";
5
- import { ScalarButton as N, ScalarIcon as T } from "@scalar/components";
6
- import { REQUEST_METHODS as L } from "@scalar/oas-utils/helpers";
7
- import { isMacOS as A } from "@scalar/use-tooltip";
8
- import { useMagicKeys as D, whenever as K } from "@vueuse/core";
9
- import Q from "../HttpMethod/HttpMethod.vue.js";
10
- import W from "./AddressBarHistory.vue.js";
11
- import { executeRequestBus as m } from "../../libs/eventBusses/executeRequestBus.js";
12
- const f = (n) => (M("data-v-556303b4"), n = n(), U(), n), j = {
1
+ import { defineComponent as M, ref as d, watch as U, unref as l, openBlock as L, createElementBlock as H, createElementVNode as o, createVNode as n, withCtx as _, normalizeClass as w, normalizeStyle as O, createCommentVNode as $, pushScopeId as N, popScopeId as T } from "vue";
2
+ import A from "../CodeInput/CodeInput.vue.js";
3
+ import { useWorkspace as D } from "../../store/workspace.js";
4
+ import { Listbox as K } from "@headlessui/vue";
5
+ import { ScalarButton as Q, ScalarIcon as W } from "@scalar/components";
6
+ import { REQUEST_METHODS as j } from "@scalar/oas-utils/helpers";
7
+ import { isMacOS as F } from "@scalar/use-tooltip";
8
+ import { useMagicKeys as G, whenever as J } from "@vueuse/core";
9
+ import P from "../HttpMethod/HttpMethod.vue.js";
10
+ import X from "./AddressBarHistory.vue.js";
11
+ import { executeRequestBus as m } from "../../libs/event-busses/execute-requestBus.js";
12
+ import { requestStatusBus as Y } from "../../libs/event-busses/request-status-bus.js";
13
+ const v = (c) => (N("data-v-372103f0"), c = c(), T(), c), Z = {
13
14
  key: 0,
14
15
  class: "order-last lg:order-none lg:w-auto w-full"
15
- }, F = { class: "m-auto flex basis-1/2 flex-row items-center" }, G = { class: "pointer-events-none absolute left-0 top-0 z-10 block h-full w-full overflow-hidden" }, J = { class: "flex gap-1" }, P = { class: "scroll-timeline-x scroll-timeline-x-hidden relative flex w-full" }, X = /* @__PURE__ */ f(() => /* @__PURE__ */ o("div", { class: "fade-left" }, null, -1)), Y = /* @__PURE__ */ f(() => /* @__PURE__ */ o("div", { class: "fade-right" }, null, -1)), Z = /* @__PURE__ */ f(() => /* @__PURE__ */ o("span", { class: "text-xxs relative z-10 lg:flex hidden" }, "Send", -1)), ce = /* @__PURE__ */ q({
16
+ }, ee = { class: "m-auto flex basis-1/2 flex-row items-center" }, te = { class: "pointer-events-none absolute left-0 top-0 z-10 block h-full w-full overflow-hidden" }, le = { class: "flex gap-1" }, oe = { class: "codemirror-bg-switcher scroll-timeline-x scroll-timeline-x-hidden relative flex w-full" }, ae = /* @__PURE__ */ v(() => /* @__PURE__ */ o("div", { class: "fade-left" }, null, -1)), re = /* @__PURE__ */ v(() => /* @__PURE__ */ o("div", { class: "fade-right" }, null, -1)), se = /* @__PURE__ */ v(() => /* @__PURE__ */ o("span", { class: "text-xxs relative z-10 lg:flex hidden" }, "Send", -1)), _e = /* @__PURE__ */ M({
16
17
  __name: "AddressBar",
17
- setup(n) {
18
+ setup(c) {
18
19
  const {
19
20
  activeRequest: t,
20
- activeExample: i,
21
+ activeExample: f,
21
22
  isReadOnly: p,
22
- requestMutators: v,
23
- requestExampleMutators: g,
24
- requestsHistory: w
25
- } = O(), x = c(w.value[0]), h = D();
26
- K(
27
- A() ? h.meta_enter : h.ctrl_enter,
23
+ requestMutators: h,
24
+ requestExampleMutators: S,
25
+ requestsHistory: k
26
+ } = D(), x = d(k.value[0]), b = G();
27
+ J(
28
+ F() ? b.meta_enter : b.ctrl_enter,
28
29
  () => m.emit()
29
30
  );
30
- const k = (e) => {
31
- !t.value || t.value.path === e || v.edit(t.value.uid, "path", e);
31
+ const E = (e) => {
32
+ !t.value || t.value.path === e || h.edit(t.value.uid, "path", e);
32
33
  };
33
- V(
34
+ U(
34
35
  () => {
35
36
  var e;
36
37
  return (e = t.value) == null ? void 0 : e.path;
37
38
  },
38
39
  (e) => {
39
- t.value && k(e);
40
+ t.value && E(e);
40
41
  }
41
42
  );
42
- const d = c(100), u = c(!1);
43
- m.on(() => {
44
- if (u.value) return;
45
- u.value = !0;
46
- const e = setInterval(() => {
47
- d.value -= 5, d.value <= 0 && (clearInterval(e), d.value = 100, u.value = !1);
48
- }, 20);
43
+ const a = d(100), g = d(0), r = d(!1), i = d();
44
+ function y() {
45
+ r.value ? a.value -= (a.value - 15) / 60 : a.value -= g.value / 20, a.value <= 0 && (clearInterval(i.value), i.value = void 0, a.value = 100, r.value = !1);
46
+ }
47
+ function C() {
48
+ r.value || (r.value = !0, i.value = setInterval(y, 20));
49
+ }
50
+ function q() {
51
+ g.value = a.value, r.value = !1;
52
+ }
53
+ function B() {
54
+ clearInterval(i.value), i.value = void 0, a.value = 100, r.value = !1;
55
+ }
56
+ Y.on((e) => {
57
+ e === "start" && C(), e === "stop" && q(), e === "abort" && B();
49
58
  });
50
- function E(e) {
51
- t.value && v.edit(t.value.uid, "method", e);
59
+ function I(e) {
60
+ t.value && h.edit(t.value.uid, "method", e);
52
61
  }
53
- function S() {
62
+ function V() {
54
63
  if (!t.value) return;
55
64
  const { method: e } = t.value;
56
- return L[e].backgroundColor;
65
+ return j[e].backgroundColor;
57
66
  }
58
- const y = (e) => {
59
- i.value && g.edit(i.value.uid, "url", e);
67
+ const R = (e) => {
68
+ f.value && S.edit(f.value.uid, "url", e);
60
69
  };
61
- return (e, r) => l(t) && l(i) ? (B(), I("div", j, [
62
- o("div", F, [
63
- s(l(H), {
70
+ return (e, s) => l(t) && l(f) ? (L(), H("div", Z, [
71
+ o("div", ee, [
72
+ n(l(K), {
64
73
  modelValue: x.value,
65
- "onUpdate:modelValue": r[2] || (r[2] = (a) => x.value = a)
74
+ "onUpdate:modelValue": s[2] || (s[2] = (u) => x.value = u)
66
75
  }, {
67
- default: _(({ open: a }) => [
76
+ default: _(({ open: u }) => [
68
77
  o("div", {
69
- class: b([
70
- "text-xxs bg-b-1 relative flex w-full lg:min-w-[720px] lg:max-w-[720px] order-last lg:order-none flex-1 flex-row items-stretch rounded border p-[3px]",
71
- { "rounded-b-none": a },
72
- { "border-transparent": a }
78
+ class: w([
79
+ "addressbar-bg-states text-xxs relative flex w-full lg:min-w-[720px] lg:max-w-[720px] order-last lg:order-none flex-1 flex-row items-stretch rounded-lg border-1/2 p-[3px]",
80
+ { "rounded-b-none": u },
81
+ { "border-transparent": u }
73
82
  ])
74
83
  }, [
75
- o("div", G, [
84
+ o("div", te, [
76
85
  o("div", {
77
- class: b(["bg-mix-transparent bg-mix-amount-95 absolute left-0 top-0 h-full w-full", S()]),
78
- style: R({ transform: `translate3d(-${d.value}%,0,0)` })
86
+ class: w(["bg-mix-transparent bg-mix-amount-90 absolute left-0 top-0 h-full w-full", V()]),
87
+ style: O({ transform: `translate3d(-${a.value}%,0,0)` })
79
88
  }, null, 6)
80
89
  ]),
81
- o("div", J, [
82
- s(Q, {
83
- class: "font-code text-xxs font-medium",
90
+ o("div", le, [
91
+ n(P, {
84
92
  isEditable: !l(p),
85
93
  isSquare: "",
86
94
  method: l(t).method,
87
- onChange: E
95
+ onChange: I
88
96
  }, null, 8, ["isEditable", "method"])
89
97
  ]),
90
- o("div", P, [
91
- X,
92
- s($, {
98
+ o("div", oe, [
99
+ ae,
100
+ n(A, {
93
101
  disableCloseBrackets: "",
94
102
  disabled: l(p),
95
103
  disableEnter: "",
96
104
  disableTabIndent: "",
97
105
  emitOnBlur: !1,
98
- modelValue: l(i).url,
106
+ modelValue: l(f).url,
99
107
  placeholder: "Enter URL to get started",
100
108
  server: "",
101
- onSubmit: r[0] || (r[0] = (C) => l(m).emit()),
102
- "onUpdate:modelValue": y
109
+ onSubmit: s[0] || (s[0] = (z) => l(m).emit()),
110
+ "onUpdate:modelValue": R
103
111
  }, null, 8, ["disabled", "modelValue"]),
104
- Y
112
+ re
105
113
  ]),
106
- s(W, { open: a }, null, 8, ["open"]),
107
- s(l(N), {
114
+ n(X, { open: u }, null, 8, ["open"]),
115
+ n(l(Q), {
108
116
  class: "relative h-auto shrink-0 gap-1 overflow-hidden pl-2 pr-2.5 py-1 z-[1] font-bold",
109
- disabled: u.value,
110
- onClick: r[1] || (r[1] = (C) => l(m).emit())
117
+ disabled: r.value,
118
+ onClick: s[1] || (s[1] = (z) => l(m).emit())
111
119
  }, {
112
120
  default: _(() => [
113
- s(l(T), {
121
+ n(l(W), {
114
122
  class: "relative z-10 shrink-0 fill-current",
115
123
  icon: "Play",
116
124
  size: "xs"
117
125
  }),
118
- Z
126
+ se
119
127
  ]),
120
128
  _: 1
121
129
  }, 8, ["disabled"])
@@ -124,9 +132,9 @@ const f = (n) => (M("data-v-556303b4"), n = n(), U(), n), j = {
124
132
  _: 1
125
133
  }, 8, ["modelValue"])
126
134
  ])
127
- ])) : z("", !0);
135
+ ])) : $("", !0);
128
136
  }
129
137
  });
130
138
  export {
131
- ce as default
139
+ _e as default
132
140
  };
@@ -1 +1 @@
1
- {"version":3,"file":"AddressBarHistory.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBarHistory.vue"],"names":[],"mappings":";UA2GQ,OAAO;;UAAP,OAAO;;AAkOf,wBAMG;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":"AddressBarHistory.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBarHistory.vue"],"names":[],"mappings":";UA0GQ,OAAO;;UAAP,OAAO;;AAmOf,wBAMG;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,19 +1,19 @@
1
- import { defineComponent as C, computed as w, openBlock as n, createElementBlock as m, Fragment as d, unref as t, createBlock as i, withCtx as p, createVNode as f, createCommentVNode as b, createElementVNode as r, normalizeClass as h, renderList as U, toDisplayString as l } from "vue";
1
+ import { defineComponent as C, computed as w, openBlock as n, createElementBlock as d, Fragment as m, unref as t, createBlock as i, withCtx as p, createVNode as f, createCommentVNode as h, createElementVNode as r, normalizeClass as b, renderList as U, toDisplayString as l } from "vue";
2
2
  import { formatMs as L } from "../../libs/formatters.js";
3
3
  import { useWorkspace as q } from "../../store/workspace.js";
4
- import { ListboxButton as B, ListboxOptions as y, ListboxOption as S } from "@headlessui/vue";
5
- import { ScalarIcon as P } from "@scalar/components";
6
- import { httpStatusCodes as R } from "@scalar/oas-utils/helpers";
7
- import { useRouter as z } from "vue-router";
8
- import E from "../HttpMethod/HttpMethod.vue.js";
9
- import { getStatusCodeColor as H } from "./httpStatusCodeColors.js";
10
- const N = { class: "min-w-0" }, V = { class: "min-w-0 truncate text-c-1" }, J = /* @__PURE__ */ C({
4
+ import { ListboxButton as y, ListboxOptions as B, ListboxOption as S } from "@headlessui/vue";
5
+ import { ScalarIcon as H } from "@scalar/components";
6
+ import { httpStatusCodes as P } from "@scalar/oas-utils/helpers";
7
+ import { useRouter as R } from "vue-router";
8
+ import z from "../HttpMethod/HttpMethod.vue.js";
9
+ import { getStatusCodeColor as E } from "./httpStatusCodeColors.js";
10
+ const M = { class: "min-w-0" }, N = { class: "min-w-0 truncate text-c-1" }, J = /* @__PURE__ */ C({
11
11
  __name: "AddressBarHistory",
12
12
  props: {
13
13
  open: { type: Boolean }
14
14
  },
15
- setup($) {
16
- const { activeRequest: u, requestExampleMutators: x } = q(), g = z(), v = w(() => u.value.history.slice().reverse());
15
+ setup(V) {
16
+ const { activeRequest: u, requestExampleMutators: x } = q(), g = R(), v = w(() => u.value.history.slice().reverse());
17
17
  function _(o) {
18
18
  const c = new URL(o), s = new URLSearchParams(c.search).get("scalar_url");
19
19
  return s ? new URL(s).href : c.href;
@@ -21,30 +21,29 @@ const N = { class: "min-w-0" }, V = { class: "min-w-0 truncate text-c-1" }, J =
21
21
  function k(o) {
22
22
  u.value.uid !== o.request.requestUid && g.push(`/request/${o.request.requestUid}`), x.set({ ...o.request });
23
23
  }
24
- return (o, c) => (n(), m(d, null, [
25
- t(u).history.length ? (n(), i(t(B), {
24
+ return (o, c) => (n(), d(m, null, [
25
+ t(u).history.length ? (n(), i(t(y), {
26
26
  key: 0,
27
- class: "hover:bg-b-2 mr-1 rounded p-1.5"
27
+ class: "adressbar-history-button mr-1 rounded p-1.5 text-c-3 focus:text-c-1"
28
28
  }, {
29
29
  default: p(() => [
30
- f(t(P), {
31
- class: "text-c-3",
30
+ f(t(H), {
32
31
  icon: "History",
33
32
  size: "sm",
34
33
  thickness: "2.25"
35
34
  })
36
35
  ]),
37
36
  _: 1
38
- })) : b("", !0),
37
+ })) : h("", !0),
39
38
  r("div", {
40
- class: h([
39
+ class: b([
41
40
  "absolute left-0 top-[33px] w-full rounded before:pointer-events-none before:absolute before:left-0 before:top-[-33px] before:h-[calc(100%+33px)] before:w-full before:rounded z-50",
42
41
  { "before:shadow-lg": o.open }
43
42
  ])
44
43
  }, [
45
- f(t(y), { class: "bg-b-1 custom-scroll bg-mix-transparent bg-mix-amount-30 max-h-[300px] rounded-b p-[3px] pt-0 backdrop-blur grid grid-cols-[44px,1fr,repeat(3,auto)] items-center" }, {
44
+ f(t(B), { class: "bg-b-1 custom-scroll bg-mix-transparent bg-mix-amount-30 max-h-[300px] rounded-b p-[3px] pt-0 backdrop-blur grid grid-cols-[44px,1fr,repeat(3,auto)] items-center" }, {
46
45
  default: p(() => [
47
- (n(!0), m(d, null, U(v.value, (e, s) => (n(), i(t(S), {
46
+ (n(!0), d(m, null, U(v.value, (e, s) => (n(), i(t(S), {
48
47
  key: s,
49
48
  class: "contents font-code text-sm *:rounded-none first:*:rounded-l last:*:rounded-r *:h-8 *:hover:bg-b-2 *:flex *:items-center *:cursor-pointer *:px-1.5 text-c-2 font-medium",
50
49
  value: s,
@@ -53,19 +52,19 @@ const N = { class: "min-w-0" }, V = { class: "min-w-0 truncate text-c-1" }, J =
53
52
  default: p(() => {
54
53
  var a;
55
54
  return [
56
- e.response.config.method ? (n(), i(E, {
55
+ e.response.config.method ? (n(), i(z, {
57
56
  key: 0,
58
57
  class: "text-[11px]",
59
58
  method: e.response.config.method
60
- }, null, 8, ["method"])) : b("", !0),
61
- r("div", N, [
62
- r("div", V, l(_(e.response.config.url)), 1)
59
+ }, null, 8, ["method"])) : h("", !0),
60
+ r("div", M, [
61
+ r("div", N, l(_(e.response.config.url)), 1)
63
62
  ]),
64
63
  r("div", null, l(t(L)(e.response.duration)), 1),
65
64
  r("div", {
66
- class: h([t(H)(e.response.status).color])
65
+ class: b([t(E)(e.response.status).color])
67
66
  }, l(e.response.status), 3),
68
- r("div", null, l((a = t(R)[e.response.status]) == null ? void 0 : a.name), 1)
67
+ r("div", null, l((a = t(P)[e.response.status]) == null ? void 0 : a.name), 1)
69
68
  ];
70
69
  }),
71
70
  _: 2
@@ -1 +1 @@
1
- {"version":3,"file":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/CodeInput.vue"],"names":[],"mappings":"AAAA,OAuTO,EAGL,KAAK,kBAAkB,EAExB,MAAM,wBAAwB,CAAA;;kBAeb,OAAO;gBACT,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;WACR,MAAM;eACF,OAAO;oBACF,OAAO;kBACT,OAAO;;;;;;;;;;;;;;kBAlBP,OAAO;gBACT,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;WACR,MAAM;eACF,OAAO;oBACF,OAAO;kBACT,OAAO;;;;;;;;;;;;;;iBAAP,OAAO;iBAlBP,OAAO;gBAGR,OAAO;sBAGD,OAAO;kBAMX,OAAO;0BACC,OAAO;cAGnB,OAAO;mBACF,OAAO;;qBAgRG,GAAG;kBACN,GAAG;;AArS9B,wBAwUC;AAMD,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,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":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/CodeInput.vue"],"names":[],"mappings":"AAAA,OA0TO,EAGL,KAAK,kBAAkB,EAExB,MAAM,wBAAwB,CAAA;;kBAeb,OAAO;gBACT,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;WACR,MAAM;eACF,OAAO;oBACF,OAAO;kBACT,OAAO;;;;;;;;;;;;;;kBAlBP,OAAO;gBACT,MAAM,GAAG,MAAM;YACnB,OAAO;iBACF,OAAO;kBACN,OAAO;WACd,OAAO;uBACK,OAAO;eACf,kBAAkB;wBACT,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;wBACnB,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;kBACzB,MAAM;eACT,OAAO;mBACH,OAAO;2BACC,OAAO;WACvB,MAAM,EAAE;WACR,MAAM;eACF,OAAO;oBACF,OAAO;kBACT,OAAO;;;;;;;;;;;;;;iBAAP,OAAO;iBAlBP,OAAO;gBAGR,OAAO;sBAGD,OAAO;kBAMX,OAAO;0BACC,OAAO;cAGnB,OAAO;mBACF,OAAO;;qBAgRG,GAAG;kBACN,GAAG;;AArS9B,wBAwUC;AAMD,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GACvC,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AAEN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACpC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AAEN,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"}
@@ -2,7 +2,7 @@ import o from "./CodeInput.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../../_virtual/_plugin-vue_export-helper.js";
5
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1124186d"]]);
5
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-caf4efcd"]]);
6
6
  export {
7
7
  a as default
8
8
  };
@@ -1,34 +1,34 @@
1
- import { defineComponent as B, ref as u, onMounted as x, openBlock as m, createElementBlock as h, createElementVNode as l, withDirectives as I, withKeys as M, withModifiers as R, vModelText as V, createVNode as a, unref as s, withCtx as n, Fragment as q, renderList as K, createBlock as W, createTextVNode as d, toDisplayString as v } from "vue";
1
+ import { defineComponent as $, ref as i, onMounted as f, openBlock as m, createElementBlock as h, createElementVNode as l, withDirectives as B, withKeys as I, withModifiers as R, vModelText as V, createVNode as a, unref as s, withCtx as n, Fragment as q, renderList as K, createBlock as W, createTextVNode as d, toDisplayString as v } from "vue";
2
2
  import _ from "../HttpMethod/HttpMethod.vue.js";
3
3
  import { useWorkspace as j } from "../../store/workspace.js";
4
4
  import { ScalarDropdown as z, ScalarDropdownItem as T, ScalarButton as w, ScalarIcon as F } from "@scalar/components";
5
- import { useRouter as L } from "vue-router";
6
- const P = { class: "flex w-full flex-col gap-3" }, U = { class: "gap-3 rounded bg-b-2 focus-within:bg-b-1 focus-within:shadow-border min-h-20 relative" }, A = /* @__PURE__ */ l("label", {
5
+ import { useRouter as H } from "vue-router";
6
+ const L = { class: "flex w-full flex-col gap-3" }, P = { class: "gap-3 rounded bg-b-2 focus-within:bg-b-1 focus-within:shadow-border min-h-20 relative" }, U = /* @__PURE__ */ l("label", {
7
7
  class: "absolute w-full h-full opacity-0 cursor-text",
8
8
  for: "examplename"
9
- }, null, -1), G = ["onKeydown"], H = { class: "flex gap-2" }, J = { class: "flex flex-1 max-h-8" }, O = { class: "flex items-center gap-2" }, Q = { class: "max-h-40 custom-scroll" }, oe = /* @__PURE__ */ B({
9
+ }, null, -1), A = ["onKeydown"], G = { class: "flex gap-2" }, J = { class: "flex flex-1 max-h-8" }, O = { class: "flex items-center gap-2" }, Q = { class: "max-h-40 custom-scroll" }, oe = /* @__PURE__ */ $({
10
10
  __name: "CommandPaletteExample",
11
11
  props: {
12
12
  metaData: {}
13
13
  },
14
14
  emits: ["close"],
15
15
  setup(b, { emit: k }) {
16
- const y = b, g = k, { push: C } = L(), {
16
+ const y = b, g = k, { push: C } = H(), {
17
17
  activeRequest: D,
18
18
  activeWorkspace: E,
19
19
  activeWorkspaceRequests: S,
20
20
  requests: N,
21
- requestExampleMutators: $
22
- } = j(), c = u(""), o = u(
21
+ requestExampleMutators: M
22
+ } = j(), c = i(""), o = i(
23
23
  // Ensure we pre-select the correct request
24
24
  N[y.metaData ?? ""] ?? D.value
25
- ), p = (e) => o.value = e, i = u(null);
26
- x(() => {
25
+ ), p = (e) => o.value = e, u = i(null);
26
+ f(() => {
27
27
  var e;
28
- return (e = i.value) == null ? void 0 : e.focus();
28
+ return (e = u.value) == null ? void 0 : e.focus();
29
29
  });
30
- const f = () => {
31
- const e = $.add(
30
+ const x = () => {
31
+ const e = M.add(
32
32
  o.value,
33
33
  c.value
34
34
  );
@@ -36,26 +36,26 @@ const P = { class: "flex w-full flex-col gap-3" }, U = { class: "gap-3 rounded b
36
36
  `/workspace/${E.value.uid}/request/${o.value.uid}/examples/${e.uid}`
37
37
  ), g("close"));
38
38
  };
39
- return x(() => {
39
+ return f(() => {
40
40
  var e;
41
- (e = i.value) == null || e.focus();
42
- }), (e, r) => (m(), h("div", P, [
43
- l("div", U, [
44
- A,
45
- I(l("input", {
41
+ (e = u.value) == null || e.focus();
42
+ }), (e, r) => (m(), h("div", L, [
43
+ l("div", P, [
44
+ U,
45
+ B(l("input", {
46
46
  id: "examplename",
47
47
  ref_key: "exampleInput",
48
- ref: i,
48
+ ref: u,
49
49
  "onUpdate:modelValue": r[0] || (r[0] = (t) => c.value = t),
50
50
  class: "border-transparent outline-none w-full pl-8 text-sm min-h-8 py-1.5",
51
51
  label: "Example Name",
52
52
  placeholder: "Example Name",
53
- onKeydown: M(R(f, ["prevent"]), ["enter"])
54
- }, null, 40, G), [
53
+ onKeydown: I(R(x, ["prevent"]), ["enter"])
54
+ }, null, 40, A), [
55
55
  [V, c.value]
56
56
  ])
57
57
  ]),
58
- l("div", H, [
58
+ l("div", G, [
59
59
  l("div", J, [
60
60
  a(s(z), {
61
61
  placement: "bottom",
@@ -105,7 +105,7 @@ const P = { class: "flex w-full flex-col gap-3" }, U = { class: "gap-3 rounded b
105
105
  ]),
106
106
  a(s(w), {
107
107
  class: "max-h-8 text-xs p-0 px-3",
108
- onClick: f
108
+ onClick: x
109
109
  }, {
110
110
  default: n(() => [
111
111
  d(" Create Example ")
@@ -1,4 +1,4 @@
1
- import { defineComponent as K, ref as d, computed as v, onMounted as T, openBlock as k, createElementBlock as W, createElementVNode as u, withDirectives as $, withKeys as G, withModifiers as L, vModelText as O, createVNode as o, unref as s, withCtx as r, normalizeClass as M, toDisplayString as S, createBlock as P, createCommentVNode as A, createTextVNode as H } from "vue";
1
+ import { defineComponent as K, ref as d, computed as v, onMounted as T, openBlock as k, createElementBlock as W, createElementVNode as u, withDirectives as $, withKeys as G, withModifiers as H, vModelText as L, createVNode as o, unref as s, withCtx as r, normalizeClass as M, toDisplayString as S, createBlock as O, createCommentVNode as P, createTextVNode as A } from "vue";
2
2
  import J from "../HttpMethod/HttpMethod.vue.js";
3
3
  import { useWorkspace as Q } from "../../store/workspace.js";
4
4
  import { ScalarListbox as U, ScalarButton as p, ScalarIcon as N } from "@scalar/components";
@@ -92,9 +92,9 @@ const Y = { class: "flex w-full flex-col gap-3" }, Z = { class: "gap-3 rounded b
92
92
  "data-lpignore": "true",
93
93
  label: "Request Name",
94
94
  placeholder: "Request Name",
95
- onKeydown: G(L(w, ["prevent"]), ["enter"])
95
+ onKeydown: G(H(w, ["prevent"]), ["enter"])
96
96
  }, null, 40, te), [
97
- [O, i.value]
97
+ [L, i.value]
98
98
  ])
99
99
  ]),
100
100
  u("div", le, [
@@ -130,7 +130,7 @@ const Y = { class: "flex w-full flex-col gap-3" }, Z = { class: "gap-3 rounded b
130
130
  ]),
131
131
  _: 1
132
132
  }, 8, ["modelValue", "options"]),
133
- m.value.length ? (k(), P(s(U), {
133
+ m.value.length ? (k(), O(s(U), {
134
134
  key: 0,
135
135
  modelValue: a.value,
136
136
  "onUpdate:modelValue": t[2] || (t[2] = (l) => a.value = l),
@@ -155,14 +155,14 @@ const Y = { class: "flex w-full flex-col gap-3" }, Z = { class: "gap-3 rounded b
155
155
  })
156
156
  ]),
157
157
  _: 1
158
- }, 8, ["modelValue", "options"])) : A("", !0)
158
+ }, 8, ["modelValue", "options"])) : P("", !0)
159
159
  ]),
160
160
  o(s(p), {
161
161
  class: "max-h-8 text-xs p-0 px-3",
162
162
  onClick: w
163
163
  }, {
164
164
  default: r(() => [
165
- H(" Create Request ")
165
+ A(" Create Request ")
166
166
  ]),
167
167
  _: 1
168
168
  })
@@ -1 +1 @@
1
- {"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AAyYA;;;;GAIG;;AACH,wBAuaI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOpB,CAAA;AAEV,yCAAyC;AACzC,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,iBAAiB,CACxD"}
1
+ {"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AAmYA;;;;GAIG;;AACH,wBAuaI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOpB,CAAA;AAEV,yCAAyC;AACzC,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,iBAAiB,CACxD"}
@@ -2,7 +2,7 @@ import o from "./TheCommandPalette.vue2.js";
2
2
  import { PaletteComponents as s } from "./TheCommandPalette.vue2.js";
3
3
  /* empty css */
4
4
  import t from "../../_virtual/_plugin-vue_export-helper.js";
5
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-531483de"]]);
5
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3e82dc40"]]);
6
6
  export {
7
7
  s as PaletteComponents,
8
8
  a as default
@@ -3,7 +3,6 @@ import { useModal as Q, ScalarIcon as g } from "@scalar/components";
3
3
  import { useMagicKeys as j, whenever as b } from "@vueuse/core";
4
4
  import { useRouter as J } from "vue-router";
5
5
  import { isMacOS as X } from "@scalar/use-tooltip";
6
- import { commandPaletteBus as M } from "../../libs/eventBusses/command-palette.js";
7
6
  import { useWorkspace as Y } from "../../store/workspace.js";
8
7
  import Z from "./CommandPaletteCollection.vue.js";
9
8
  import ee from "./CommandPaletteExample.vue.js";
@@ -11,6 +10,7 @@ import oe from "./CommandPaletteFolder.vue.js";
11
10
  import te from "./CommandPaletteImport.vue.js";
12
11
  import ne from "./CommandPaletteRequest.vue.js";
13
12
  import ae from "./CommandPaletteWorkspace.vue.js";
13
+ import { commandPaletteBus as M } from "../../libs/event-busses/command-palette.js";
14
14
  const le = { class: "commandmenu" }, re = { class: "bg-b-2 flex items-center rounded mb-2 pl-2 focus-within:bg-b-1 focus-within:shadow-border" }, se = { for: "commandmenu" }, me = ["onClick"], ce = {
15
15
  key: 0,
16
16
  class: "text-c-3 text-center text-sm p-2 pt-3"
@@ -1 +1 @@
1
- {"version":3,"file":"ContextBar.vue.d.ts","sourceRoot":"","sources":["../../src/components/ContextBar.vue"],"names":[],"mappings":";cAkCY,MAAM,EAAE;mBACH,MAAM;;;;cADX,MAAM,EAAE;mBACH,MAAM;;;;AAsFvB,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":"ContextBar.vue.d.ts","sourceRoot":"","sources":["../../src/components/ContextBar.vue"],"names":[],"mappings":";cA8CY,MAAM,EAAE;mBACH,MAAM;;;;cADX,MAAM,EAAE;mBACH,MAAM;;;;AA8FvB,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,25 +1,7 @@
1
- import { defineComponent as r, openBlock as n, createElementBlock as o, Fragment as i, renderList as s, normalizeClass as c, toDisplayString as a } from "vue";
2
- const p = { class: "request-section-content request-section-content-filter bg-b-2 text-c-3 bg-b-1 sticky top-0 z-10 mb-2.5 hidden xl:flex justify-center rounded p-[2.25px] text-xs gap-0.5" }, l = ["isActive", "onClick"], v = /* @__PURE__ */ r({
3
- __name: "ContextBar",
4
- props: {
5
- sections: {},
6
- activeSection: {}
7
- },
8
- emits: ["setActiveSection"],
9
- setup(d) {
10
- return (t, b) => (n(), o("div", p, [
11
- (n(!0), o(i, null, s(t.sections, (e) => (n(), o("button", {
12
- key: e,
13
- class: c(["hover:bg-b-3 w-full rounded px-1 py-1 text-center font-medium", [
14
- t.activeSection === e ? "bg-b-1 text-c-1 dark:bg-b-3 border pointer-events-none" : "border border-transparent"
15
- ]]),
16
- isActive: t.activeSection === e,
17
- type: "button",
18
- onClick: (u) => t.$emit("setActiveSection", e)
19
- }, a(e), 11, l))), 128))
20
- ]));
21
- }
22
- });
1
+ import o from "./ContextBar.vue2.js";
2
+ /* empty css */
3
+ import t from "../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3656da18"]]);
23
5
  export {
24
- v as default
6
+ p as default
25
7
  };
@@ -1,4 +1,27 @@
1
- import f from "./ContextBar.vue.js";
1
+ import { defineComponent as i, openBlock as n, createElementBlock as o, createElementVNode as s, Fragment as c, renderList as r, normalizeClass as a, toDisplayString as l } from "vue";
2
+ const p = { class: "fade-request-section-content sticky top-0 z-10 pointer-events-none" }, d = { class: "request-section-content request-section-content-filter bg-b-1 border-1/2 text-c-3 bg-b-1 mb-2.5 hidden xl:flex justify-center rounded p-[2.25px] text-xs gap-0.5 pointer-events-auto" }, u = ["isActive", "onClick"], _ = /* @__PURE__ */ i({
3
+ __name: "ContextBar",
4
+ props: {
5
+ sections: {},
6
+ activeSection: {}
7
+ },
8
+ emits: ["setActiveSection"],
9
+ setup(m) {
10
+ return (t, v) => (n(), o("div", p, [
11
+ s("div", d, [
12
+ (n(!0), o(c, null, r(t.sections, (e) => (n(), o("button", {
13
+ key: e,
14
+ class: a(["hover:bg-b-2 w-full rounded px-1 py-1 text-center font-medium", [
15
+ t.activeSection === e ? "bg-b-2 text-c-1 pointer-events-none" : ""
16
+ ]]),
17
+ isActive: t.activeSection === e,
18
+ type: "button",
19
+ onClick: (b) => t.$emit("setActiveSection", e)
20
+ }, l(e), 11, u))), 128))
21
+ ])
22
+ ]));
23
+ }
24
+ });
2
25
  export {
3
- f as default
26
+ _ as default
4
27
  };
@@ -7,7 +7,7 @@ const w = /* @__PURE__ */ c({
7
7
  setup(g) {
8
8
  const { toggleDarkMode: t, isDark: a } = f();
9
9
  return (k, o) => (l(), s("button", {
10
- class: "min-w-[37px] max-w-[42px] hover:bg-b-2 flex items-center justify-center rounded-lg p-[7px] text-c-3 focus:text-c-1 w-full aspect-square scalar-app-nav-padding",
10
+ class: "min-w-[37px] max-w-[42px] hover:bg-b-3 flex items-center justify-center rounded-lg p-[7px] text-c-3 focus:text-c-1 w-full aspect-square scalar-app-nav-padding",
11
11
  type: "button",
12
12
  onClick: o[0] || (o[0] = //@ts-ignore
13
13
  (...n) => e(t) && e(t)(...n))