@scalar/api-client 2.1.4 → 2.1.6

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 (63) hide show
  1. package/CHANGELOG.md +30 -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 +25 -25
  5. package/dist/components/AddressBar/AddressBarHistory.vue.d.ts.map +1 -1
  6. package/dist/components/AddressBar/AddressBarHistory.vue.js +5 -87
  7. package/dist/components/AddressBar/AddressBarHistory.vue2.js +87 -2
  8. package/dist/components/CodeInput/CodeInput.vue.d.ts.map +1 -1
  9. package/dist/components/CodeInput/CodeInput.vue.js +2 -2
  10. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts +6 -2
  11. package/dist/components/CommandPalette/CommandPaletteExample.vue.d.ts.map +1 -1
  12. package/dist/components/CommandPalette/CommandPaletteExample.vue.js +38 -37
  13. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts +6 -2
  14. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  15. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  16. package/dist/components/HttpMethod/HttpMethod.vue.js +1 -1
  17. package/dist/components/HttpMethod/HttpMethod.vue2.js +5 -5
  18. package/dist/hooks/useFileDialog.d.ts +1 -1
  19. package/dist/layouts/App/create-api-client-app.d.ts +2 -313
  20. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  21. package/dist/layouts/Modal/ApiClientModal.vue.d.ts.map +1 -1
  22. package/dist/layouts/Modal/ApiClientModal.vue.js +2 -2
  23. package/dist/layouts/Modal/create-api-client-modal.d.ts +25 -647
  24. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  25. package/dist/libs/create-client.d.ts +14 -325
  26. package/dist/libs/create-client.d.ts.map +1 -1
  27. package/dist/libs/errors.d.ts +1 -1
  28. package/dist/libs/errors.js +1 -1
  29. package/dist/libs/local-storage.d.ts.map +1 -1
  30. package/dist/libs/local-storage.js +40 -24
  31. package/dist/store/collections.d.ts +0 -63
  32. package/dist/store/collections.d.ts.map +1 -1
  33. package/dist/store/cookies.d.ts +0 -13
  34. package/dist/store/cookies.d.ts.map +1 -1
  35. package/dist/store/environment.d.ts +0 -7
  36. package/dist/store/environment.d.ts.map +1 -1
  37. package/dist/store/request-example.d.ts +2 -102
  38. package/dist/store/request-example.d.ts.map +1 -1
  39. package/dist/store/requests.d.ts +0 -32
  40. package/dist/store/requests.d.ts.map +1 -1
  41. package/dist/store/security-schemes.d.ts +0 -55
  42. package/dist/store/security-schemes.d.ts.map +1 -1
  43. package/dist/store/servers.d.ts +0 -8
  44. package/dist/store/servers.d.ts.map +1 -1
  45. package/dist/store/store.d.ts +25 -647
  46. package/dist/store/store.d.ts.map +1 -1
  47. package/dist/store/tags.d.ts +0 -14
  48. package/dist/store/tags.d.ts.map +1 -1
  49. package/dist/store/workspace.d.ts +0 -19
  50. package/dist/store/workspace.d.ts.map +1 -1
  51. package/dist/style.css +1 -1
  52. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  53. package/dist/views/Request/RequestSection/RequestBody.vue.js +49 -47
  54. package/dist/views/Request/RequestSidebar.vue.d.ts.map +1 -1
  55. package/dist/views/Request/RequestSidebar.vue.js +2 -2
  56. package/dist/views/Request/RequestSidebar.vue2.js +47 -49
  57. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  58. package/dist/views/Request/RequestSidebarItem.vue.js +2 -2
  59. package/dist/views/Request/RequestSidebarItem.vue2.js +50 -50
  60. package/dist/views/Request/RequestSidebarItemMenu.vue.d.ts.map +1 -1
  61. package/dist/views/Request/RequestSidebarItemMenu.vue.js +2 -2
  62. package/dist/views/Request/RequestSidebarItemMenu.vue2.js +20 -20
  63. package/package.json +8 -8
package/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.1.6
4
+
5
+ ### Patch Changes
6
+
7
+ - ca00556: fix: sidebar example and delete modal
8
+ - 2b8ce6c: feat: adds safe-parsing to the end of the migration
9
+ - 3c098f9: fix: teleports http methods dropdown
10
+ - 7beeef3: fix: modal dark mode bg
11
+ - d22523e: fix: add empty row on route change
12
+ - 40850bb: fix: enables sidebar item toggle on readonly
13
+ - c92cfa0: fix: code input content height
14
+ - cdb8f55: fix: address bar style and error typo
15
+ - Updated dependencies [2b8ce6c]
16
+ - Updated dependencies [9aa4562]
17
+ - Updated dependencies [7beeef3]
18
+ - @scalar/object-utils@1.1.9
19
+ - @scalar/oas-utils@0.2.47
20
+ - @scalar/components@0.12.47
21
+ - @scalar/themes@0.9.31
22
+ - @scalar/use-codemirror@0.11.13
23
+ - @scalar/types@0.0.10
24
+
25
+ ## 2.1.5
26
+
27
+ ### Patch Changes
28
+
29
+ - Updated dependencies [2b75354]
30
+ - Updated dependencies [437d54d]
31
+ - @scalar/oas-utils@0.2.46
32
+
3
33
  ## 2.1.4
4
34
 
5
35
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBar.vue"],"names":[],"mappings":";AA6uBA,wBAKG"}
1
+ {"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBar.vue"],"names":[],"mappings":";AAiuBA,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 e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-44c3e67a"]]);
4
+ const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-1a9f572a"]]);
5
5
  export {
6
- e as default
6
+ f as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as H, ref as i, watch as L, onMounted as O, onBeforeUnmount as K, unref as l, openBlock as N, createElementBlock as T, createElementVNode as o, createVNode as s, withCtx as w, normalizeClass as B, normalizeStyle as $, createCommentVNode as A, pushScopeId as D, popScopeId as P } from "vue";
1
+ import { defineComponent as U, ref as i, watch as L, onMounted as O, onBeforeUnmount as A, unref as l, openBlock as K, createElementBlock as N, createElementVNode as o, createVNode as s, withCtx as w, normalizeClass as B, normalizeStyle as T, createCommentVNode as $, pushScopeId as D, popScopeId as P } from "vue";
2
2
  import Q from "../CodeInput/CodeInput.vue.js";
3
3
  import { Listbox as W } from "@headlessui/vue";
4
4
  import { ScalarButton as j, ScalarIcon as F } from "@scalar/components";
@@ -11,18 +11,18 @@ import te from "./AddressBarServer.vue.js";
11
11
  import { executeRequestBus as k } from "../../libs/event-busses/execute-request-bus.js";
12
12
  import { useWorkspace as le } from "../../store/store.js";
13
13
  import { requestStatusBus as oe } from "../../libs/event-busses/request-status-bus.js";
14
- import { hotKeyBus as S } from "../../libs/event-busses/hot-keys-bus.js";
15
- const m = (c) => (D("data-v-44c3e67a"), c = c(), P(), c), ae = {
14
+ import { hotKeyBus as y } from "../../libs/event-busses/hot-keys-bus.js";
15
+ const v = (d) => (D("data-v-1a9f572a"), d = d(), P(), d), ae = {
16
16
  key: 0,
17
17
  class: "order-last lg:order-none lg:w-auto w-full"
18
- }, re = { class: "m-auto flex flex-row items-center" }, se = { class: "pointer-events-none absolute left-0 top-0 z-10 block h-full w-full overflow-hidden" }, ne = { class: "flex gap-1" }, ie = { class: "codemirror-bg-switcher scroll-timeline-x scroll-timeline-x-hidden relative flex w-full" }, ue = /* @__PURE__ */ m(() => /* @__PURE__ */ o("div", { class: "fade-left" }, null, -1)), de = /* @__PURE__ */ m(() => /* @__PURE__ */ o("div", { class: "fade-right" }, null, -1)), ce = /* @__PURE__ */ m(() => /* @__PURE__ */ o("span", { class: "text-xxs relative z-10 lg:flex hidden" }, "Send", -1)), qe = /* @__PURE__ */ H({
18
+ }, re = { class: "m-auto flex flex-row items-center" }, se = { class: "pointer-events-none absolute left-0 top-0 z-10 block h-full w-full overflow-hidden" }, ne = { class: "flex gap-1" }, ie = { class: "codemirror-bg-switcher scroll-timeline-x scroll-timeline-x-hidden relative flex w-full" }, ue = /* @__PURE__ */ v(() => /* @__PURE__ */ o("div", { class: "fade-left" }, null, -1)), de = /* @__PURE__ */ v(() => /* @__PURE__ */ o("div", { class: "fade-right" }, null, -1)), fe = /* @__PURE__ */ v(() => /* @__PURE__ */ o("span", { class: "text-xxs relative z-10 lg:flex hidden" }, "Send", -1)), qe = /* @__PURE__ */ U({
19
19
  __name: "AddressBar",
20
- setup(c) {
20
+ setup(d) {
21
21
  const {
22
22
  activeRequest: t,
23
- activeExample: y,
24
- isReadOnly: v,
25
- requestMutators: f,
23
+ activeExample: S,
24
+ isReadOnly: m,
25
+ requestMutators: c,
26
26
  requestHistory: q
27
27
  } = le(), p = i(q[0]), h = i(null), _ = X();
28
28
  Y(
@@ -30,7 +30,7 @@ const m = (c) => (D("data-v-44c3e67a"), c = c(), P(), c), ae = {
30
30
  () => k.emit()
31
31
  );
32
32
  const C = (e) => {
33
- !t.value || t.value.path === e || f.edit(t.value.uid, "path", e);
33
+ !t.value || t.value.path === e || c.edit(t.value.uid, "path", e);
34
34
  };
35
35
  L(
36
36
  () => {
@@ -58,7 +58,7 @@ const m = (c) => (D("data-v-44c3e67a"), c = c(), P(), c), ae = {
58
58
  e === "start" && R(), e === "stop" && I(), e === "abort" && V();
59
59
  });
60
60
  function z(e) {
61
- t.value && f.edit(t.value.uid, "method", e);
61
+ t.value && c.edit(t.value.uid, "method", e);
62
62
  }
63
63
  function M() {
64
64
  if (!t.value) return;
@@ -68,38 +68,38 @@ const m = (c) => (D("data-v-44c3e67a"), c = c(), P(), c), ae = {
68
68
  function b() {
69
69
  r.value || (r.value = !0, k.emit());
70
70
  }
71
- function U(e) {
72
- t.value && f.edit(t.value.uid, "path", e);
71
+ function H(e) {
72
+ t.value && c.edit(t.value.uid, "path", e);
73
73
  }
74
74
  function g(e) {
75
75
  var u;
76
76
  e.focusAddressBar && ((u = h.value) == null || u.focus());
77
77
  }
78
- return O(() => S.on(g)), K(() => S.off(g)), (e, u) => l(t) && l(y) ? (N(), T("div", ae, [
78
+ return O(() => y.on(g)), A(() => y.off(g)), (e, u) => l(t) && l(S) ? (K(), N("div", ae, [
79
79
  o("div", re, [
80
80
  s(l(W), {
81
81
  modelValue: p.value,
82
- "onUpdate:modelValue": u[0] || (u[0] = (d) => p.value = d)
82
+ "onUpdate:modelValue": u[0] || (u[0] = (f) => p.value = f)
83
83
  }, {
84
- default: w(({ open: d }) => [
84
+ default: w(({ open: f }) => [
85
85
  o("div", {
86
86
  class: B([
87
- "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]",
88
- { "rounded-b-none": d },
89
- { "border-transparent": d }
87
+ "addressbar-bg-states text-xxs relative flex w-full lg:min-w-[720px] lg:max-w-[720px] order-last overflow-hidden lg:order-none flex-1 flex-row items-stretch rounded-lg border-1/2 p-[3px]",
88
+ { "border-transparent overflow-visible rounded-b-none": f }
90
89
  ])
91
90
  }, [
92
91
  o("div", se, [
93
92
  o("div", {
94
93
  class: B(["bg-mix-transparent bg-mix-amount-90 absolute left-0 top-0 h-full w-full", M()]),
95
- style: $({ transform: `translate3d(-${a.value}%,0,0)` })
94
+ style: T({ transform: `translate3d(-${a.value}%,0,0)` })
96
95
  }, null, 6)
97
96
  ]),
98
97
  o("div", ne, [
99
98
  s(Z, {
100
- isEditable: !l(v),
99
+ isEditable: !l(m),
101
100
  isSquare: "",
102
101
  method: l(t).method,
102
+ teleport: ".scalar-client",
103
103
  onChange: z
104
104
  }, null, 8, ["isEditable", "method"])
105
105
  ]),
@@ -110,7 +110,7 @@ const m = (c) => (D("data-v-44c3e67a"), c = c(), P(), c), ae = {
110
110
  ref_key: "addressBarRef",
111
111
  ref: h,
112
112
  disableCloseBrackets: "",
113
- disabled: l(v),
113
+ disabled: l(m),
114
114
  disableEnter: "",
115
115
  disableTabIndent: "",
116
116
  emitOnBlur: !1,
@@ -118,11 +118,11 @@ const m = (c) => (D("data-v-44c3e67a"), c = c(), P(), c), ae = {
118
118
  placeholder: "Enter URL to get started",
119
119
  server: "",
120
120
  onSubmit: b,
121
- "onUpdate:modelValue": U
121
+ "onUpdate:modelValue": H
122
122
  }, null, 8, ["disabled", "modelValue"]),
123
123
  de
124
124
  ]),
125
- s(ee, { open: d }, null, 8, ["open"]),
125
+ s(ee, { open: f }, null, 8, ["open"]),
126
126
  s(l(j), {
127
127
  class: "relative h-auto shrink-0 gap-1 overflow-hidden pl-2 pr-2.5 py-1 z-[1] font-bold",
128
128
  disabled: r.value,
@@ -134,7 +134,7 @@ const m = (c) => (D("data-v-44c3e67a"), c = c(), P(), c), ae = {
134
134
  icon: "Play",
135
135
  size: "xs"
136
136
  }),
137
- ce
137
+ fe
138
138
  ]),
139
139
  _: 1
140
140
  }, 8, ["disabled"])
@@ -143,7 +143,7 @@ const m = (c) => (D("data-v-44c3e67a"), c = c(), P(), c), ae = {
143
143
  _: 1
144
144
  }, 8, ["modelValue"])
145
145
  ])
146
- ])) : A("", !0);
146
+ ])) : $("", !0);
147
147
  }
148
148
  });
149
149
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"AddressBarHistory.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AddressBar/AddressBarHistory.vue"],"names":[],"mappings":";UAyHQ,OAAO;;UAAP,OAAO;;AA4Of,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":";UAiIQ,OAAO;;UAAP,OAAO;;AA6Of,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,89 +1,7 @@
1
- import { defineComponent as q, computed as w, openBlock as u, createElementBlock as b, Fragment as x, createBlock as i, unref as o, withCtx as p, createVNode as h, createCommentVNode as v, createElementVNode as r, normalizeClass as k, renderList as B, toDisplayString as a } from "vue";
2
- import { formatMs as H } from "../../libs/formatters.js";
3
- import { ListboxButton as y, ListboxOptions as L, ListboxOption as S } from "@headlessui/vue";
4
- import { ScalarIcon as z } from "@scalar/components";
5
- import { httpStatusCodes as E } from "@scalar/oas-utils/helpers";
6
- import { useRouter as M } from "vue-router";
7
- import N from "../HttpMethod/HttpMethod.vue.js";
8
- import { getStatusCodeColor as U } from "./httpStatusCodeColors.js";
9
- import { useWorkspace as V } from "../../store/store.js";
10
- const $ = { class: "min-w-0" }, I = { class: "min-w-0 truncate text-c-1" }, P = /* @__PURE__ */ q({
11
- __name: "AddressBarHistory",
12
- props: {
13
- open: { type: Boolean }
14
- },
15
- setup(O) {
16
- const { activeRequest: c, requestHistory: _, requestExampleMutators: g } = V(), d = M(), m = w(
17
- () => _.filter((t) => {
18
- var s;
19
- return t.request.requestUid === ((s = c.value) == null ? void 0 : s.uid);
20
- }).slice().reverse()
21
- );
22
- function C(t) {
23
- var n;
24
- const s = d.currentRoute.value.params.workspace;
25
- ((n = c.value) == null ? void 0 : n.uid) !== t.request.requestUid && d.push(
26
- `/workspace/${s}/request/${t.request.requestUid}`
27
- ), g.set({ ...t.request });
28
- }
29
- return (t, s) => {
30
- var n;
31
- return u(), b(x, null, [
32
- (n = m.value) != null && n.length ? (u(), i(o(y), {
33
- key: 0,
34
- class: "adressbar-history-button mr-1 rounded p-1.5 text-c-3 focus:text-c-1"
35
- }, {
36
- default: p(() => [
37
- h(o(z), {
38
- icon: "History",
39
- size: "sm",
40
- thickness: "2.25"
41
- })
42
- ]),
43
- _: 1
44
- })) : v("", !0),
45
- r("div", {
46
- class: k([
47
- "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",
48
- { "before:shadow-lg": t.open }
49
- ])
50
- }, [
51
- h(o(L), { 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" }, {
52
- default: p(() => [
53
- (u(!0), b(x, null, B(m.value, (e, f) => (u(), i(o(S), {
54
- key: f,
55
- 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",
56
- value: f,
57
- onClick: (l) => C(e)
58
- }, {
59
- default: p(() => {
60
- var l;
61
- return [
62
- e.response.method ? (u(), i(N, {
63
- key: 0,
64
- class: "text-[11px]",
65
- method: e.response.method
66
- }, null, 8, ["method"])) : v("", !0),
67
- r("div", $, [
68
- r("div", I, a(e.response.path), 1)
69
- ]),
70
- r("div", null, a(o(H)(e.response.duration)), 1),
71
- r("div", {
72
- class: k([o(U)(e.response.status).color])
73
- }, a(e.response.status), 3),
74
- r("div", null, a((l = o(E)[e.response.status]) == null ? void 0 : l.name), 1)
75
- ];
76
- }),
77
- _: 2
78
- }, 1032, ["value", "onClick"]))), 128))
79
- ]),
80
- _: 1
81
- })
82
- ], 2)
83
- ], 64);
84
- };
85
- }
86
- });
1
+ import o from "./AddressBarHistory.vue2.js";
2
+ /* empty css */
3
+ import r from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const d = /* @__PURE__ */ r(o, [["__scopeId", "data-v-38e0296d"]]);
87
5
  export {
88
- P as default
6
+ d as default
89
7
  };
@@ -1,4 +1,89 @@
1
- import f from "./AddressBarHistory.vue.js";
1
+ import { defineComponent as C, computed as q, openBlock as u, createElementBlock as b, Fragment as h, createBlock as i, unref as o, withCtx as c, createVNode as x, createCommentVNode as v, createElementVNode as r, normalizeClass as g, renderList as B, toDisplayString as l } from "vue";
2
+ import { formatMs as H } from "../../libs/formatters.js";
3
+ import { ListboxButton as y, ListboxOptions as L, ListboxOption as S } from "@headlessui/vue";
4
+ import { ScalarIcon as z } from "@scalar/components";
5
+ import { httpStatusCodes as E } from "@scalar/oas-utils/helpers";
6
+ import { useRouter as M } from "vue-router";
7
+ import N from "../HttpMethod/HttpMethod.vue.js";
8
+ import { getStatusCodeColor as U } from "./httpStatusCodeColors.js";
9
+ import { useWorkspace as V } from "../../store/store.js";
10
+ const $ = { class: "min-w-0" }, I = { class: "min-w-0 truncate text-c-1" }, P = /* @__PURE__ */ C({
11
+ __name: "AddressBarHistory",
12
+ props: {
13
+ open: { type: Boolean }
14
+ },
15
+ setup(O) {
16
+ const { activeRequest: d, requestHistory: k, requestExampleMutators: _ } = V(), p = M(), m = q(
17
+ () => k.filter((t) => {
18
+ var s;
19
+ return t.request.requestUid === ((s = d.value) == null ? void 0 : s.uid);
20
+ }).slice().reverse()
21
+ );
22
+ function w(t) {
23
+ var n;
24
+ const s = p.currentRoute.value.params.workspace;
25
+ ((n = d.value) == null ? void 0 : n.uid) !== t.request.requestUid && p.push(
26
+ `/workspace/${s}/request/${t.request.requestUid}`
27
+ ), _.set({ ...t.request });
28
+ }
29
+ return (t, s) => {
30
+ var n;
31
+ return u(), b(h, null, [
32
+ (n = m.value) != null && n.length ? (u(), i(o(y), {
33
+ key: 0,
34
+ class: "addressbar-history-button mr-1 rounded-lg p-1.5 text-c-3 focus:text-c-1"
35
+ }, {
36
+ default: c(() => [
37
+ x(o(z), {
38
+ icon: "History",
39
+ size: "sm",
40
+ thickness: "2.25"
41
+ })
42
+ ]),
43
+ _: 1
44
+ })) : v("", !0),
45
+ r("div", {
46
+ class: g([
47
+ "absolute bg-white left-0 top-8 w-full rounded-lg before:pointer-events-none before:absolute before:left-0 before:-top-8 before:h-[calc(100%+32px)] before:w-full before:rounded-lg z-50",
48
+ { "before:shadow-lg": t.open }
49
+ ])
50
+ }, [
51
+ x(o(L), { class: "bg-b-1 border-t custom-scroll max-h-[300px] rounded-b-lg p-[3px] grid grid-cols-[44px,1fr,repeat(3,auto)] items-center" }, {
52
+ default: c(() => [
53
+ (u(!0), b(h, null, B(m.value, (e, f) => (u(), i(o(S), {
54
+ key: f,
55
+ 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",
56
+ value: f,
57
+ onClick: (a) => w(e)
58
+ }, {
59
+ default: c(() => {
60
+ var a;
61
+ return [
62
+ e.response.method ? (u(), i(N, {
63
+ key: 0,
64
+ class: "text-[11px]",
65
+ method: e.response.method
66
+ }, null, 8, ["method"])) : v("", !0),
67
+ r("div", $, [
68
+ r("div", I, l(e.response.path), 1)
69
+ ]),
70
+ r("div", null, l(o(H)(e.response.duration)), 1),
71
+ r("div", {
72
+ class: g([o(U)(e.response.status).color])
73
+ }, l(e.response.status), 3),
74
+ r("div", null, l((a = o(E)[e.response.status]) == null ? void 0 : a.name), 1)
75
+ ];
76
+ }),
77
+ _: 2
78
+ }, 1032, ["value", "onClick"]))), 128))
79
+ ]),
80
+ _: 1
81
+ })
82
+ ], 2)
83
+ ], 64);
84
+ };
85
+ }
86
+ });
2
87
  export {
3
- f as default
88
+ P as default
4
89
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CodeInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CodeInput/CodeInput.vue"],"names":[],"mappings":"AAAA,OAoVO,EAGL,KAAK,kBAAkB,EAGxB,MAAM,wBAAwB,CAAA;;kBAcb,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;;;;;;;;;;;;;;;kBAjBT,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;;;;;;;;;;;;;iBAjBT,OAAO;gBAGR,OAAO;sBAGD,OAAO;kBAMX,OAAO;0BACC,OAAO;cAGnB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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-44609195"]]);
5
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4fa80db6"]]);
6
6
  export {
7
- a as default
7
+ f as default
8
8
  };
@@ -1,11 +1,15 @@
1
1
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
2
2
  /** The request uid to pre-select */
3
- metaData?: string;
3
+ metaData?: {
4
+ itemUid: string;
5
+ };
4
6
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
7
  close: () => void;
6
8
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
7
9
  /** The request uid to pre-select */
8
- metaData?: string;
10
+ metaData?: {
11
+ itemUid: string;
12
+ };
9
13
  }>>> & {
10
14
  onClose?: (() => any) | undefined;
11
15
  }, {}, {}>;
@@ -1 +1 @@
1
- {"version":3,"file":"CommandPaletteExample.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteExample.vue"],"names":[],"mappings":";IA+HE,oCAAoC;eACzB,MAAM;;;;IADjB,oCAAoC;eACzB,MAAM;;;;AA6QnB,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":"CommandPaletteExample.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteExample.vue"],"names":[],"mappings":";IA+HE,oCAAoC;eACzB;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE;;;;IAD9B,oCAAoC;eACzB;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE;;;;AA6QhC,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,59 +1,60 @@
1
- import { defineComponent as y, ref as p, openBlock as u, createBlock as d, withCtx as a, createVNode as l, unref as e, createElementVNode as f, createElementBlock as D, Fragment as N, renderList as V, createTextVNode as c, toDisplayString as v } from "vue";
2
- import x from "../HttpMethod/HttpMethod.vue.js";
3
- import { ScalarDropdown as B, ScalarDropdownItem as R, ScalarButton as W, ScalarIcon as j } from "@scalar/components";
4
- import { useToasts as z } from "@scalar/use-toasts";
5
- import { useRouter as I } from "vue-router";
6
- import M from "./CommandActionForm.vue.js";
7
- import P from "./CommandActionInput.vue.js";
8
- import { useWorkspace as T } from "../../store/store.js";
9
- const F = { class: "flex items-center gap-2" }, H = { class: "max-h-40 custom-scroll" }, Y = /* @__PURE__ */ y({
1
+ import { defineComponent as D, ref as d, openBlock as u, createBlock as f, withCtx as a, createVNode as l, unref as e, createElementVNode as v, createElementBlock as N, Fragment as V, renderList as B, createTextVNode as c, toDisplayString as x } from "vue";
2
+ import h from "../HttpMethod/HttpMethod.vue.js";
3
+ import { ScalarDropdown as R, ScalarDropdownItem as W, ScalarButton as j, ScalarIcon as z } from "@scalar/components";
4
+ import { useToasts as I } from "@scalar/use-toasts";
5
+ import { useRouter as M } from "vue-router";
6
+ import P from "./CommandActionForm.vue.js";
7
+ import T from "./CommandActionInput.vue.js";
8
+ import { useWorkspace as U } from "../../store/store.js";
9
+ const F = { class: "flex items-center gap-2" }, H = { class: "max-h-40 custom-scroll" }, Z = /* @__PURE__ */ D({
10
10
  __name: "CommandPaletteExample",
11
11
  props: {
12
12
  metaData: {}
13
13
  },
14
14
  emits: ["close"],
15
- setup(h, { emit: _ }) {
16
- const b = h, k = _, { push: w } = I(), {
17
- activeRequest: C,
18
- activeWorkspace: S,
19
- activeWorkspaceRequests: E,
15
+ setup(_, { emit: b }) {
16
+ var p;
17
+ const k = _, w = b, { push: C } = M(), {
18
+ activeRequest: S,
19
+ activeWorkspace: E,
20
+ activeWorkspaceRequests: $,
20
21
  requests: m,
21
- requestExampleMutators: $
22
- } = T(), { toast: g } = z(), s = p(""), o = p(
22
+ requestExampleMutators: g
23
+ } = U(), { toast: q } = I(), s = d(""), o = d(
23
24
  // Ensure we pre-select the correct request
24
- m[b.metaData ?? ""] ?? C.value
25
- ), i = (r) => o.value = r, q = () => {
25
+ m[((p = k.metaData) == null ? void 0 : p.itemUid) ?? ""] ?? S.value
26
+ ), i = (r) => o.value = r, y = () => {
26
27
  if (!s.value) {
27
- g("Please enter a name before creating an example.", "error");
28
+ q("Please enter a name before creating an example.", "error");
28
29
  return;
29
30
  }
30
- const r = $.add(
31
+ const r = g.add(
31
32
  o.value,
32
33
  s.value
33
34
  );
34
- r && (w(
35
- `/workspace/${S.value.uid}/request/${o.value.uid}/examples/${r.uid}`
36
- ), k("close"));
35
+ r && (C(
36
+ `/workspace/${E.value.uid}/request/${o.value.uid}/examples/${r.uid}`
37
+ ), w("close"));
37
38
  };
38
- return (r, n) => (u(), d(M, {
39
+ return (r, n) => (u(), f(P, {
39
40
  disabled: !s.value.trim(),
40
- onSubmit: q
41
+ onSubmit: y
41
42
  }, {
42
43
  options: a(() => [
43
- l(e(B), {
44
+ l(e(R), {
44
45
  placement: "bottom",
45
46
  resize: ""
46
47
  }, {
47
48
  items: a(() => [
48
- f("div", H, [
49
- (u(!0), D(N, null, V(e(E), (t) => (u(), d(e(R), {
49
+ v("div", H, [
50
+ (u(!0), N(V, null, B(e($), (t) => (u(), f(e(W), {
50
51
  key: t,
51
52
  class: "flex h-7 w-full items-center justify-between px-1 pr-[26px]",
52
53
  onClick: (L) => i(e(m)[t])
53
54
  }, {
54
55
  default: a(() => [
55
- c(v(e(m)[t].summary) + " ", 1),
56
- l(x, {
56
+ c(x(e(m)[t].summary) + " ", 1),
57
+ l(h, {
57
58
  method: e(m)[t].method
58
59
  }, null, 8, ["method"])
59
60
  ]),
@@ -62,18 +63,18 @@ const F = { class: "flex items-center gap-2" }, H = { class: "max-h-40 custom-sc
62
63
  ])
63
64
  ]),
64
65
  default: a(() => [
65
- l(e(W), {
66
+ l(e(j), {
66
67
  class: "justify-between p-2 max-h-8 w-full gap-1 text-xs hover:bg-b-2",
67
68
  variant: "outlined",
68
69
  onClick: n[1] || (n[1] = (t) => i(o.value))
69
70
  }, {
70
71
  default: a(() => [
71
- c(v(o.value.summary) + " ", 1),
72
- f("div", F, [
73
- l(x, {
72
+ c(x(o.value.summary) + " ", 1),
73
+ v("div", F, [
74
+ l(h, {
74
75
  method: o.value.method
75
76
  }, null, 8, ["method"]),
76
- l(e(j), {
77
+ l(e(z), {
77
78
  class: "text-c-3",
78
79
  icon: "ChevronDown",
79
80
  size: "xs"
@@ -90,7 +91,7 @@ const F = { class: "flex items-center gap-2" }, H = { class: "max-h-40 custom-sc
90
91
  c("Create Example")
91
92
  ]),
92
93
  default: a(() => [
93
- l(P, {
94
+ l(T, {
94
95
  modelValue: s.value,
95
96
  "onUpdate:modelValue": n[0] || (n[0] = (t) => s.value = t),
96
97
  label: "Example Name",
@@ -102,5 +103,5 @@ const F = { class: "flex items-center gap-2" }, H = { class: "max-h-40 custom-sc
102
103
  }
103
104
  });
104
105
  export {
105
- Y as default
106
+ Z as default
106
107
  };
@@ -52,13 +52,17 @@ export declare const PaletteComponents: {
52
52
  }, {}, {}>;
53
53
  readonly 'Add Example': import("vue").DefineComponent<{
54
54
  metaData: {
55
- type: import("vue").PropType<string>;
55
+ type: import("vue").PropType<{
56
+ itemUid: string;
57
+ }>;
56
58
  };
57
59
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
58
60
  close: () => void;
59
61
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
60
62
  metaData: {
61
- type: import("vue").PropType<string>;
63
+ type: import("vue").PropType<{
64
+ itemUid: string;
65
+ }>;
62
66
  };
63
67
  }>> & {
64
68
  onClose?: (() => any) | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AAiXA;;;;GAIG;;AACH,wBAkZI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQpB,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":"AAiXA;;;;GAIG;;AACH,wBAkZI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQpB,CAAA;AAEV,yCAAyC;AACzC,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,iBAAiB,CACxD"}
@@ -1 +1 @@
1
- {"version":3,"file":"HttpMethod.vue.d.ts","sourceRoot":"","sources":["../../../src/components/HttpMethod/HttpMethod.vue"],"names":[],"mappings":";eAmGe,OAAO;YACV,MAAM;iBACD,OAAO;;;;;;;;eAFT,OAAO;YACV,MAAM;iBACD,OAAO;;;;;;;;cAFT,OAAO;gBAEL,OAAO;;AAiIxB,wBAOG;AAOH,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,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C,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AAExD,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 "./HttpMethod.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-1a4c22a1"]]);
4
+ const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-a2902675"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as g, computed as a, openBlock as c, createBlock as y, unref as t, withCtx as q, createElementVNode as s, normalizeClass as l, toDisplayString as p, createElementBlock as w } from "vue";
2
- import { ScalarListbox as k } from "@scalar/components";
3
- import { getHttpMethodInfo as m, REQUEST_METHODS as x } from "@scalar/oas-utils/helpers";
2
+ import { ScalarListbox as x } from "@scalar/components";
3
+ import { getHttpMethodInfo as m, REQUEST_METHODS as k } from "@scalar/oas-utils/helpers";
4
4
  import { cva as B, cx as f } from "cva";
5
5
  const L = /* @__PURE__ */ g({
6
6
  __name: "HttpMethod",
@@ -11,7 +11,7 @@ const L = /* @__PURE__ */ g({
11
11
  },
12
12
  emits: ["change"],
13
13
  setup(b, { emit: h }) {
14
- const r = b, v = h, o = a(() => m(r.method)), i = Object.entries(x).map(([e]) => ({
14
+ const r = b, v = h, o = a(() => m(r.method)), i = Object.entries(k).map(([e]) => ({
15
15
  id: e,
16
16
  label: e.charAt(0) + e.toLowerCase().slice(1),
17
17
  color: m(e).color
@@ -31,11 +31,11 @@ const L = /* @__PURE__ */ g({
31
31
  }
32
32
  }
33
33
  }), E = a(() => o.value.short);
34
- return (e, u) => e.isEditable ? (c(), y(t(k), {
34
+ return (e, u) => e.isEditable ? (c(), y(t(x), {
35
35
  key: 0,
36
36
  modelValue: n.value,
37
37
  "onUpdate:modelValue": u[0] || (u[0] = (S) => n.value = S),
38
- class: "mt-1 font-code uppercase",
38
+ class: "mt-1 font-code text-sm uppercase",
39
39
  options: t(i)
40
40
  }, {
41
41
  default: q(() => [