@scalar/api-client 2.3.19 → 2.3.21

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 (52) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  3. package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -2
  4. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +138 -125
  5. package/dist/hooks/useClientConfig.d.ts +3 -3
  6. package/dist/hooks/useClientConfig.d.ts.map +1 -1
  7. package/dist/layouts/App/create-api-client-app.d.ts +10 -10
  8. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  9. package/dist/layouts/Modal/create-api-client-modal.d.ts +20 -20
  10. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  11. package/dist/layouts/Web/create-api-client-web.d.ts +10 -10
  12. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  13. package/dist/libs/create-client.d.ts +10 -10
  14. package/dist/libs/create-client.d.ts.map +1 -1
  15. package/dist/store/active-entities.d.ts +1 -1
  16. package/dist/store/active-entities.d.ts.map +1 -1
  17. package/dist/store/store.d.ts +10 -10
  18. package/dist/store/store.d.ts.map +1 -1
  19. package/dist/store/workspace.d.ts +10 -10
  20. package/dist/store/workspace.d.ts.map +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/views/Collection/CollectionAuthentication.vue.d.ts.map +1 -1
  23. package/dist/views/Collection/CollectionAuthentication.vue.js +2 -2
  24. package/dist/views/Collection/CollectionAuthentication.vue2.js +22 -19
  25. package/dist/views/Collection/CollectionSettings.vue.d.ts.map +1 -1
  26. package/dist/views/Collection/CollectionSettings.vue.js +1 -1
  27. package/dist/views/Collection/CollectionSettings.vue2.js +1 -1
  28. package/dist/views/Collection/components/MarkdownInput.vue.d.ts.map +1 -1
  29. package/dist/views/Collection/components/MarkdownInput.vue.js +2 -2
  30. package/dist/views/Collection/components/MarkdownInput.vue2.js +11 -11
  31. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  32. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +2 -2
  33. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +29 -30
  34. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
  35. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +3 -3
  36. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +33 -32
  37. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  38. package/dist/views/Request/RequestSection/RequestBody.vue.js +1 -1
  39. package/dist/views/Request/RequestSection/RequestBody.vue2.js +129 -126
  40. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  41. package/dist/views/Request/RequestSidebarItem.vue.js +3 -3
  42. package/dist/views/Request/RequestSidebarItem.vue2.js +235 -241
  43. package/dist/views/Request/ResponseSection/RequestHeaders.vue.d.ts.map +1 -1
  44. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +12 -12
  45. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
  46. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +1 -1
  47. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  48. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts.map +1 -1
  49. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +9 -9
  50. package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
  51. package/dist/views/Settings/SettingsGeneral.vue.js +2 -0
  52. package/package.json +12 -12
package/CHANGELOG.md CHANGED
@@ -1,5 +1,44 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.3.21
4
+
5
+ ### Patch Changes
6
+
7
+ - c5047ee: fix: hotfix to revert the external reference commit
8
+ - Updated dependencies [c5047ee]
9
+ - @scalar/openapi-parser@0.10.16
10
+ - @scalar/oas-utils@0.2.132
11
+ - @scalar/import@0.3.15
12
+ - @scalar/postman-to-openapi@0.2.5
13
+
14
+ ## 2.3.20
15
+
16
+ ### Patch Changes
17
+
18
+ - e3ed7a2: fix: updates duplicated border and alignment style"
19
+ - 71d06d8: feat: mask api key value in authentication section
20
+ - e30339c: fix: updates collection style
21
+ - feaa314: feat(themes): add laserwave theme
22
+ - 03198df: fix: updates request body vendor specific json type support
23
+ - ba8e37e: fix: updates arrow key handler function
24
+ - f4e1402: fix: increases request sidebar collection click area
25
+ - e30339c: fix: updates request auth layout in request auth to display options in collection level
26
+ - 4abe4f8: feat: external $ref’s (absolute and relative URLs)
27
+ - Updated dependencies [4abe4f8]
28
+ - Updated dependencies [feaa314]
29
+ - Updated dependencies [feaa314]
30
+ - Updated dependencies [4abe4f8]
31
+ - @scalar/openapi-parser@0.10.15
32
+ - @scalar/themes@0.10.0
33
+ - @scalar/types@0.1.8
34
+ - @scalar/oas-utils@0.2.131
35
+ - @scalar/import@0.3.14
36
+ - @scalar/components@0.13.48
37
+ - @scalar/use-codemirror@0.11.93
38
+ - @scalar/use-hooks@0.1.41
39
+ - @scalar/snippetz@0.2.19
40
+ - @scalar/postman-to-openapi@0.2.4
41
+
3
42
  ## 2.3.19
4
43
 
5
44
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AAqcA;;;;GAIG;;AACH,wBA8gBI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;mBA9iB9B,CAlRqC;qBAkRrC,CAjRY;;;;;;;mBAiRZ,CAlRqC;qBAkRrC,CAjRY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BA6pB0B,CAAC;;;;;;;;;;;;;;;+BAMf,CAAA;4BACnB,CAAC;2BACoB,CAAC;8BAC3B,CAAA;0BAEG,CAAC;2BAA0B,CAAC;yBAG7B,CAAC;4BAKQ,CAAC;6BACI,CAAC;+BAA8B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BApBV,CAAC;;;;;;;;;;;;;;;+BAMf,CAAA;4BACnB,CAAC;2BACoB,CAAC;8BAC3B,CAAA;0BAEG,CAAC;2BAA0B,CAAC;yBAG7B,CAAC;4BAKQ,CAAC;6BACI,CAAC;+BAA8B,CAAC;;;;;;;;;;;;;;;;;;;CAuJtC,CAAA;AAEV,yCAAyC;AACzC,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,iBAAiB,CAAA;AAEzD,MAAM,MAAM,mBAAmB,GAAG;IAChC,8DAA8D;IAC9D,WAAW,CAAC,EAAE,YAAY,CAAA;IAC1B,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC/B,CACA"}
1
+ {"version":3,"file":"TheCommandPalette.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/TheCommandPalette.vue"],"names":[],"mappings":"AA0eA;;;;GAIG;;AACH,wBAmjBI;AAEJ,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;mBAnlB9B,CAvTqC;qBAuTrC,CAtTY;;;;;;;mBAsTZ,CAvTqC;qBAuTrC,CAtTY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BA0rBU,CAAC;;;;;;;;;;;;;;;+BAYP,CAAT;4BACY,CAAC;2BAAsC,CAAC;8BACvC,CAApB;0BAAsC,CAAA;2BACpB,CAAL;yBACK,CAAA;4BAGG,CAAC;6BAAgD,CAAC;+BAA8B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAnBhF,CAAC;;;;;;;;;;;;;;;+BAYP,CAAT;4BACY,CAAC;2BAAsC,CAAC;8BACvC,CAApB;0BAAsC,CAAA;2BACpB,CAAL;yBACK,CAAA;4BAGG,CAAC;6BAAgD,CAAC;+BAA8B,CAAC;;;;;;;;;;;;;;;;;;;CAqM5F,CAAA;AAEV,yCAAyC;AACzC,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,iBAAiB,CAAA;AAEzD,MAAM,MAAM,mBAAmB,GAAG;IAChC,8DAA8D;IAC9D,WAAW,CAAC,EAAE,YAAY,CAAA;IAC1B,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC/B,CACA"}
@@ -2,8 +2,8 @@ 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 r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0a0ca919"]]);
5
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-85f3b768"]]);
6
6
  export {
7
7
  s as PaletteComponents,
8
- r as default
8
+ a as default
9
9
  };
@@ -1,43 +1,43 @@
1
- import { defineComponent as Q, ref as f, computed as B, watch as j, onMounted as J, onBeforeUnmount as X, openBlock as a, createBlock as M, unref as m, withCtx as g, createElementVNode as p, createVNode as C, createTextVNode as N, createElementBlock as i, withKeys as P, withModifiers as I, Fragment as R, renderList as T, withDirectives as Y, toDisplayString as U, vShow as Z, normalizeClass as ee, createCommentVNode as oe, resolveDynamicComponent as te, mergeProps as ne, nextTick as A } from "vue";
2
- import { Dialog as ae, DialogPanel as le, DialogTitle as se } from "@headlessui/vue";
3
- import { useModal as re, ScalarIcon as D } from "@scalar/components";
4
- import { useRouter as me } from "vue-router";
5
- import { ROUTES as ie } from "../../constants.js";
6
- import { importCurlCommand as ce } from "../../libs/importers/curl.js";
7
- import { PathId as ue } from "../../routes.js";
8
- import { useActiveEntities as de } from "../../store/active-entities.js";
9
- import fe from "./CommandPaletteCollection.vue.js";
10
- import pe from "./CommandPaletteExample.vue.js";
11
- import ve from "./CommandPaletteImport.vue.js";
12
- import Ce from "./CommandPaletteImportCurl.vue.js";
13
- import he from "./CommandPaletteServer.vue.js";
14
- import xe from "./CommandPaletteTag.vue.js";
15
- import ke from "./CommandPaletteWorkspace.vue.js";
16
- import { useWorkspace as be } from "../../store/store.js";
17
- const _e = {
1
+ import { defineComponent as oe, ref as f, computed as U, watch as te, onMounted as ne, onBeforeUnmount as ae, openBlock as l, createBlock as W, unref as c, withCtx as A, createElementVNode as v, createVNode as k, createTextVNode as V, createElementBlock as u, withKeys as S, withModifiers as T, Fragment as D, renderList as O, withDirectives as le, toDisplayString as F, vShow as se, normalizeClass as re, createCommentVNode as me, resolveDynamicComponent as ie, mergeProps as ce, nextTick as g } from "vue";
2
+ import { Dialog as ue, DialogPanel as de, DialogTitle as pe } from "@headlessui/vue";
3
+ import { useModal as fe, ScalarIcon as L } from "@scalar/components";
4
+ import { useRouter as ve } from "vue-router";
5
+ import { ROUTES as Ce } from "../../constants.js";
6
+ import { importCurlCommand as he } from "../../libs/importers/curl.js";
7
+ import { PathId as xe } from "../../routes.js";
8
+ import { useActiveEntities as ke } from "../../store/active-entities.js";
9
+ import ye from "./CommandPaletteCollection.vue.js";
10
+ import _e from "./CommandPaletteExample.vue.js";
11
+ import be from "./CommandPaletteImport.vue.js";
12
+ import ge from "./CommandPaletteImportCurl.vue.js";
13
+ import we from "./CommandPaletteServer.vue.js";
14
+ import Pe from "./CommandPaletteTag.vue.js";
15
+ import Ie from "./CommandPaletteWorkspace.vue.js";
16
+ import { useWorkspace as Re } from "../../store/store.js";
17
+ const Ae = {
18
18
  key: 0,
19
19
  class: "custom-scroll max-h-[50dvh] min-h-0 flex-1 rounded-lg p-1.5"
20
- }, ye = { class: "bg-b-2 focus-within:bg-b-1 focus-within:border-b-3 sticky top-0 flex items-center rounded-md border border-transparent pl-2 shadow-[0_-8px_0_8px_var(--scalar-background-1),0_0_8px_8px_var(--scalar-background-1)]" }, we = { for: "commandmenu" }, ge = ["value", "onKeydown"], Pe = ["onClick"], Ie = {
20
+ }, Se = { class: "bg-b-2 focus-within:bg-b-1 focus-within:border-b-3 sticky top-0 flex items-center rounded-md border border-transparent pl-2 shadow-[0_-8px_0_8px_var(--scalar-background-1),0_0_8px_8px_var(--scalar-background-1)]" }, Te = { for: "commandmenu" }, De = ["value", "onKeydown"], Le = ["onClick"], Ee = {
21
21
  key: 0,
22
22
  class: "text-c-3 p-2 pt-3 text-center text-sm"
23
- }, Re = {
23
+ }, Be = {
24
24
  key: 1,
25
25
  class: "flex-1 p-1.5"
26
- }, Ae = {
26
+ }, He = {
27
27
  name: "TheCommandPalette"
28
- }, De = {
29
- "Import from OpenAPI/Swagger/Postman/cURL": ve,
28
+ }, Ke = {
29
+ "Import from OpenAPI/Swagger/Postman/cURL": be,
30
30
  "Create Request": "",
31
- "Create Workspace": ke,
32
- "Add Tag": xe,
33
- "Add Server": he,
34
- "Create Collection": fe,
35
- "Add Example": pe,
36
- "Import from cURL": Ce
37
- }, Ge = /* @__PURE__ */ Q({
38
- ...Ae,
39
- setup(Le) {
40
- const v = re(), k = me(), { activeWorkspace: h, activeWorkspaceCollections: W, activeCollection: V } = de(), { events: c, requestMutators: H } = be(), L = [
31
+ "Create Workspace": Ie,
32
+ "Add Tag": Pe,
33
+ "Add Server": we,
34
+ "Create Collection": ye,
35
+ "Add Example": _e,
36
+ "Import from cURL": ge
37
+ }, eo = /* @__PURE__ */ oe({
38
+ ...He,
39
+ setup($e) {
40
+ const C = fe(), w = ve(), { activeWorkspace: y, activeWorkspaceCollections: G, activeCollection: Q } = ke(), { events: d, requestMutators: j } = Re(), E = [
41
41
  {
42
42
  label: "",
43
43
  commands: [
@@ -88,148 +88,156 @@ const _e = {
88
88
  },
89
89
  {
90
90
  label: "Pages",
91
- commands: ie.map((o) => {
91
+ commands: Ce.map((o) => {
92
92
  var e;
93
93
  return {
94
94
  name: o.displayName,
95
95
  icon: o.icon,
96
- path: k.resolve({
96
+ path: w.resolve({
97
97
  ...o.to,
98
98
  params: {
99
- [ue.Workspace]: ((e = h == null ? void 0 : h.value) == null ? void 0 : e.uid) ?? "default"
99
+ [xe.Workspace]: ((e = y == null ? void 0 : y.value) == null ? void 0 : e.uid) ?? "default"
100
100
  }
101
101
  }).href
102
102
  };
103
103
  })
104
104
  }
105
- ], b = f(), l = f(""), s = f(null), u = f(-1), S = f([]), x = B(
106
- () => L.reduce((o, e) => {
105
+ ], P = f(), s = f(""), r = f(null), m = f(-1), B = f([]), h = U(
106
+ () => E.reduce((o, e) => {
107
107
  const t = e.commands.filter(
108
- (n) => n.name.toLowerCase().includes(l.value.toLowerCase())
108
+ (n) => n.name.toLowerCase().includes(s.value.toLowerCase())
109
109
  );
110
110
  return [...o, ...t];
111
111
  }, [])
112
- ), d = () => {
113
- v.hide(), l.value = "", s.value = null, u.value = -1;
114
- }, O = (o) => {
115
- l.value !== "" && (o == null || o.preventDefault()), s.value = null, A(() => {
112
+ ), p = () => {
113
+ C.hide(), s.value = "", r.value = null, m.value = -1;
114
+ }, J = (o) => {
115
+ s.value !== "" && (o == null || o.preventDefault()), r.value = null, g(() => {
116
116
  var e;
117
117
  return (e = _.value) == null ? void 0 : e.focus();
118
118
  });
119
- }, E = (o) => {
119
+ }, H = (o) => {
120
120
  var e;
121
121
  if ("path" in o)
122
- k.push(o.path), d();
122
+ w.push(o.path), p();
123
123
  else if (o.name === "Create Request") {
124
- const t = W.value.find(
124
+ const t = G.value.find(
125
125
  (n) => {
126
- var r;
127
- return ((r = n.info) == null ? void 0 : r.title) === "Drafts";
126
+ var a;
127
+ return ((a = n.info) == null ? void 0 : a.title) === "Drafts";
128
128
  }
129
129
  );
130
130
  if (t) {
131
- const n = H.add({}, t.uid);
132
- n && (k.push({
131
+ const n = j.add({}, t.uid);
132
+ n && (w.push({
133
133
  name: "request",
134
134
  params: {
135
- workspace: (e = h.value) == null ? void 0 : e.uid,
135
+ workspace: (e = y.value) == null ? void 0 : e.uid,
136
136
  request: n.uid
137
137
  }
138
- }), d(), A(() => {
139
- c.hotKeys.emit({
138
+ }), p(), g(() => {
139
+ d.hotKeys.emit({
140
140
  focusAddressBar: new KeyboardEvent("keydown", { key: "l" })
141
141
  });
142
142
  }));
143
143
  } else
144
- d();
144
+ p();
145
145
  } else
146
- s.value = o.name;
146
+ r.value = o.name;
147
147
  }, _ = f(), K = ({
148
148
  commandName: o,
149
149
  metaData: e
150
150
  } = {}) => {
151
- s.value = o ?? null, b.value = e, v.show(), A(() => {
151
+ r.value = o ?? null, P.value = e, C.show(), g(() => {
152
152
  var t;
153
153
  return (t = _.value) == null ? void 0 : t.focus();
154
154
  });
155
155
  };
156
- j(l, (o) => {
157
- o && x.value.length > 0 && (u.value = 0);
156
+ te(s, (o) => {
157
+ o && h.value.length > 0 && (m.value = 0);
158
158
  });
159
159
  const $ = (o, e) => {
160
- var r;
161
- if (!v.open) return;
160
+ if (!C.open) return;
162
161
  e.preventDefault();
163
- const t = o === "up" ? -1 : 1, n = x.value.length;
164
- u.value = (u.value + t + n) % n, (r = S.value[u.value]) == null || r.scrollIntoView({
165
- behavior: "smooth",
166
- block: "nearest"
162
+ const t = o === "up" ? -1 : 1, n = h.value.length;
163
+ m.value = (m.value + t + n) % n, g(() => {
164
+ var z, N;
165
+ const a = (z = _.value) == null ? void 0 : z.closest(".custom-scroll");
166
+ if (!a) return;
167
+ if (m.value === 0) {
168
+ a.scrollTop = 0;
169
+ return;
170
+ }
171
+ const i = B.value[m.value];
172
+ if (!i) return;
173
+ const x = (((N = a.querySelector(".sticky")) == null ? void 0 : N.clientHeight) || 0) + 16, b = 6, R = i.offsetTop, M = R + i.clientHeight, Z = a.scrollTop + x, ee = a.scrollTop + a.clientHeight - b;
174
+ R < Z ? a.scrollTop = R - x : M > ee && (a.scrollTop = M - a.clientHeight + b);
167
175
  });
168
- }, y = B(
169
- () => x.value[u.value]
170
- ), F = (o) => {
171
- !y.value || s.value || (o.preventDefault(), o.stopPropagation(), E(y.value));
176
+ }, I = U(
177
+ () => h.value[m.value]
178
+ ), X = (o) => {
179
+ !I.value || r.value || (o.preventDefault(), o.stopPropagation(), H(I.value));
172
180
  }, q = (o) => {
173
- v.open && o != null && o.closeModal && d();
174
- }, G = (o) => {
181
+ C.open && o != null && o.closeModal && p();
182
+ }, Y = (o) => {
175
183
  var e;
176
184
  if (o.trim().toLowerCase().startsWith("curl")) {
177
- c.commandPalette.emit({
185
+ d.commandPalette.emit({
178
186
  commandName: "Import from cURL",
179
187
  metaData: {
180
- parsedCurl: ce(o),
181
- collectionUid: (e = V.value) == null ? void 0 : e.uid
188
+ parsedCurl: he(o),
189
+ collectionUid: (e = Q.value) == null ? void 0 : e.uid
182
190
  }
183
191
  });
184
192
  return;
185
193
  }
186
- l.value = o;
194
+ s.value = o;
187
195
  };
188
- return J(() => {
189
- c.commandPalette.on(K), c.hotKeys.on(q);
190
- }), X(() => {
191
- c.commandPalette.off(K), c.hotKeys.off(q);
192
- }), (o, e) => (a(), M(m(ae), {
193
- open: m(v).open,
194
- onClose: e[5] || (e[5] = (t) => d())
196
+ return ne(() => {
197
+ d.commandPalette.on(K), d.hotKeys.on(q);
198
+ }), ae(() => {
199
+ d.commandPalette.off(K), d.hotKeys.off(q);
200
+ }), (o, e) => (l(), W(c(ue), {
201
+ open: c(C).open,
202
+ onClose: e[5] || (e[5] = (t) => p())
195
203
  }, {
196
- default: g(() => [
197
- e[7] || (e[7] = p("div", { class: "commandmenu-overlay z-overlay" }, null, -1)),
198
- C(m(le), { class: "commandmenu z-overlay flex flex-col" }, {
199
- default: g(() => [
200
- C(m(se), { class: "sr-only" }, {
201
- default: g(() => e[6] || (e[6] = [
202
- N("API Client Command Menu")
204
+ default: A(() => [
205
+ e[7] || (e[7] = v("div", { class: "commandmenu-overlay z-overlay" }, null, -1)),
206
+ k(c(de), { class: "commandmenu z-overlay flex flex-col" }, {
207
+ default: A(() => [
208
+ k(c(pe), { class: "sr-only" }, {
209
+ default: A(() => e[6] || (e[6] = [
210
+ V("API Client Command Menu")
203
211
  ])),
204
212
  _: 1
205
213
  }),
206
- s.value ? (a(), i("div", Re, [
207
- p("button", {
214
+ r.value ? (l(), u("div", Be, [
215
+ v("button", {
208
216
  class: "hover:bg-b-3 text-c-3 active:text-c-1 z-1 my-1.25 p-0.75 absolute mr-1.5 rounded",
209
217
  type: "button",
210
- onClick: e[3] || (e[3] = (t) => s.value = null)
218
+ onClick: e[3] || (e[3] = (t) => r.value = null)
211
219
  }, [
212
- C(m(D), {
220
+ k(c(L), {
213
221
  icon: "ChevronLeft",
214
222
  size: "md",
215
223
  thickness: "1.5"
216
224
  })
217
225
  ]),
218
- (a(), M(te(De[s.value]), ne(b.value ? { metaData: b.value } : {}, {
219
- onBack: e[4] || (e[4] = (t) => O(t)),
220
- onClose: d
226
+ (l(), W(ie(Ke[r.value]), ce(P.value ? { metaData: P.value } : {}, {
227
+ onBack: e[4] || (e[4] = (t) => J(t)),
228
+ onClose: p
221
229
  }), null, 16))
222
- ])) : (a(), i("div", _e, [
223
- p("div", ye, [
224
- p("label", we, [
225
- C(m(D), {
230
+ ])) : (l(), u("div", Ae, [
231
+ v("div", Se, [
232
+ v("label", Te, [
233
+ k(c(L), {
226
234
  class: "text-c-2 mr-2.5",
227
235
  icon: "Search",
228
236
  size: "md",
229
237
  thickness: "1.5"
230
238
  })
231
239
  ]),
232
- p("input", {
240
+ v("input", {
233
241
  id: "commandmenu",
234
242
  ref_key: "commandInputRef",
235
243
  ref: _,
@@ -238,52 +246,57 @@ const _e = {
238
246
  class: "w-full rounded border-none bg-none py-1.5 text-sm focus:outline-none",
239
247
  placeholder: "Search commands...",
240
248
  type: "text",
241
- value: l.value,
242
- onInput: e[0] || (e[0] = (t) => G(t.target.value)),
249
+ value: s.value,
250
+ onInput: e[0] || (e[0] = (t) => Y(t.target.value)),
243
251
  onKeydown: [
244
- e[1] || (e[1] = P(I((t) => $("down", t), ["stop"]), ["down"])),
245
- P(I(F, ["stop"]), ["enter"]),
246
- e[2] || (e[2] = P(I((t) => $("up", t), ["stop"]), ["up"]))
252
+ e[1] || (e[1] = S(T((t) => $("down", t), ["stop"]), ["down"])),
253
+ S(T(X, ["stop"]), ["enter"]),
254
+ e[2] || (e[2] = S(T((t) => $("up", t), ["stop"]), ["up"]))
247
255
  ]
248
- }, null, 40, ge)
256
+ }, null, 40, De)
249
257
  ]),
250
- (a(), i(R, null, T(L, (t) => (a(), i(R, {
258
+ (l(), u(D, null, O(E, (t) => (l(), u(D, {
251
259
  key: t.label
252
260
  }, [
253
- Y(p("div", { class: "text-c-3 mb-1 mt-2 px-2 text-xs font-medium" }, U(t.label), 513), [
261
+ le(v("div", { class: "text-c-3 mb-1 mt-2 px-2 text-xs font-medium" }, F(t.label), 513), [
254
262
  [
255
- Z,
263
+ se,
256
264
  t.commands.filter(
257
- (n) => n.name.toLowerCase().includes(l.value.toLowerCase())
265
+ (n) => n.name.toLowerCase().includes(s.value.toLowerCase())
258
266
  ).length > 0
259
267
  ]
260
268
  ]),
261
- (a(!0), i(R, null, T(t.commands.filter(
262
- (n) => n.name.toLowerCase().includes(l.value.toLowerCase())
263
- ), (n, r) => {
264
- var z;
265
- return a(), i("div", {
269
+ (l(!0), u(D, null, O(t.commands.filter(
270
+ (n) => n.name.toLowerCase().includes(s.value.toLowerCase())
271
+ ), (n) => {
272
+ var a;
273
+ return l(), u("div", {
266
274
  key: n.name,
267
275
  ref_for: !0,
268
- ref: (w) => {
269
- w && (S.value[r] = w);
276
+ ref: (i) => {
277
+ if (i) {
278
+ const x = h.value.findIndex(
279
+ (b) => b.name === n.name
280
+ );
281
+ x !== -1 && (B.value[x] = i);
282
+ }
270
283
  },
271
- class: ee(["commandmenu-item hover:bg-b-2 flex cursor-pointer items-center rounded px-2 py-1.5 text-sm", {
272
- "bg-b-2": n.name === ((z = y.value) == null ? void 0 : z.name)
284
+ class: re(["commandmenu-item hover:bg-b-2 flex cursor-pointer items-center rounded px-2 py-1.5 text-sm", {
285
+ "bg-b-2": n.name === ((a = I.value) == null ? void 0 : a.name)
273
286
  }]),
274
- onClick: (w) => E(n)
287
+ onClick: (i) => H(n)
275
288
  }, [
276
- C(m(D), {
289
+ k(c(L), {
277
290
  class: "text-c-2 mr-2.5",
278
291
  icon: n.icon,
279
292
  size: "md",
280
293
  thickness: "1.5"
281
294
  }, null, 8, ["icon"]),
282
- N(" " + U(n.name), 1)
283
- ], 10, Pe);
295
+ V(" " + F(n.name), 1)
296
+ ], 10, Le);
284
297
  }), 128))
285
298
  ], 64))), 64)),
286
- x.value.length ? oe("", !0) : (a(), i("div", Ie, " No commands found "))
299
+ h.value.length ? me("", !0) : (l(), u("div", Ee, " No commands found "))
287
300
  ]))
288
301
  ]),
289
302
  _: 1
@@ -294,6 +307,6 @@ const _e = {
294
307
  }
295
308
  });
296
309
  export {
297
- De as PaletteComponents,
298
- Ge as default
310
+ Ke as PaletteComponents,
311
+ eo as default
299
312
  };
@@ -5,7 +5,7 @@ export declare const CLIENT_CONFIGURATION_SYMBOL: InjectionKey<Ref<ApiClientConf
5
5
  export declare const useClientConfig: () => Ref<{
6
6
  hideClientButton: boolean;
7
7
  showSidebar: boolean;
8
- theme: "alternate" | "default" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "none";
8
+ theme: "alternate" | "default" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none";
9
9
  url?: string | undefined;
10
10
  content?: string | Record<string, any> | ((...args: unknown[]) => Record<string, any>) | null | undefined;
11
11
  title?: string | undefined;
@@ -26,7 +26,7 @@ export declare const useClientConfig: () => Ref<{
26
26
  }, {
27
27
  hideClientButton: boolean;
28
28
  showSidebar: boolean;
29
- theme: "alternate" | "default" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "none";
29
+ theme: "alternate" | "default" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none";
30
30
  url?: string | undefined;
31
31
  content?: string | Record<string, any> | ((...args: unknown[]) => Record<string, any>) | null | undefined;
32
32
  title?: string | undefined;
@@ -47,7 +47,7 @@ export declare const useClientConfig: () => Ref<{
47
47
  } | {
48
48
  hideClientButton: boolean;
49
49
  showSidebar: boolean;
50
- theme: "alternate" | "default" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "none";
50
+ theme: "alternate" | "default" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none";
51
51
  url?: string | undefined;
52
52
  content?: string | Record<string, any> | ((...args: unknown[]) => Record<string, any>) | null | undefined;
53
53
  title?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"useClientConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useClientConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AACvG,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,GAAG,EAAe,MAAM,KAAK,CAAA;AAE9D,eAAO,MAAM,2BAA2B,EAAe,YAAY,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC,CAAA;AAEhG,0DAA0D;AAC1D,eAAO,MAAM,eAAe;;;;;+CAC+9O,GAAG;;;;;mDAA8N,GAAG;;;;;;;;;;sCAAgwB,GAAI;;;;;;+CAAx+B,GAAG;;;;WAAoJ,CAAC;eAAqC,CAAC,mCAAmC,GAAG;aAA0E,CAAC;YAAkC,CAAC;;;;;;;;sCAAkpB,GAAI;;;;;;+CAAx+B,GAAG;;;;;mDAA8N,GAAG;;;;;;;;;;sCAAgwB,GAAI;EAD92Q,CAAA"}
1
+ {"version":3,"file":"useClientConfig.d.ts","sourceRoot":"","sources":["../../src/hooks/useClientConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,KAAK,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AACvG,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,GAAG,EAAe,MAAM,KAAK,CAAA;AAE9D,eAAO,MAAM,2BAA2B,EAAe,YAAY,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC,CAAA;AAEhG,0DAA0D;AAC1D,eAAO,MAAM,eAAe;;;;;+CAC0/O,GAAG;;;;;mDAA8N,GAAG;;;;;;;;;;sCAAgwB,GAAI;;;;;;+CAAx+B,GAAG;;;;WAAoJ,CAAC;eAAqC,CAAC,mCAAmC,GAAG;aAA0E,CAAC;YAAkC,CAAC;;;;;;;;sCAAkpB,GAAI;;;;;;+CAAx+B,GAAG;;;;;mDAA8N,GAAG;;;;;;;;;;sCAAgwB,GAAI;EADz4Q,CAAA"}
@@ -29,7 +29,7 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
29
29
  collections: (string & import("zod").BRAND<"collection">)[];
30
30
  environments: Record<string, string>;
31
31
  activeEnvironmentId: string;
32
- themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "none";
32
+ themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none";
33
33
  selectedHttpClient: {
34
34
  targetKey: string;
35
35
  clientKey: string;
@@ -3535,7 +3535,7 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
3535
3535
  collections: (string & import("zod").BRAND<"collection">)[];
3536
3536
  environments: Record<string, string>;
3537
3537
  activeEnvironmentId: string;
3538
- themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "none";
3538
+ themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none";
3539
3539
  selectedHttpClient: {
3540
3540
  targetKey: string;
3541
3541
  clientKey: string;
@@ -3557,7 +3557,7 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
3557
3557
  collections: (string & import("zod").BRAND<"collection">)[];
3558
3558
  environments: Record<string, string>;
3559
3559
  activeEnvironmentId: string;
3560
- themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "none";
3560
+ themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none";
3561
3561
  selectedHttpClient: {
3562
3562
  targetKey: string;
3563
3563
  clientKey: string;
@@ -3580,7 +3580,7 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
3580
3580
  collections: (string & import("zod").BRAND<"collection">)[];
3581
3581
  environments: Record<string, string>;
3582
3582
  activeEnvironmentId: string;
3583
- themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "none";
3583
+ themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none";
3584
3584
  selectedHttpClient: {
3585
3585
  targetKey: string;
3586
3586
  clientKey: string;
@@ -3602,7 +3602,7 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
3602
3602
  collections: (string & import("zod").BRAND<"collection">)[];
3603
3603
  environments: Record<string, string>;
3604
3604
  activeEnvironmentId: string;
3605
- themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "none";
3605
+ themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none";
3606
3606
  selectedHttpClient: {
3607
3607
  targetKey: string;
3608
3608
  clientKey: string;
@@ -3623,7 +3623,7 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
3623
3623
  collections: (string & import("zod").BRAND<"collection">)[];
3624
3624
  environments: Record<string, string>;
3625
3625
  activeEnvironmentId: string;
3626
- themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "none";
3626
+ themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none";
3627
3627
  selectedHttpClient: {
3628
3628
  targetKey: string;
3629
3629
  clientKey: string;
@@ -3644,7 +3644,7 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
3644
3644
  collections: (string & import("zod").BRAND<"collection">)[];
3645
3645
  environments: Record<string, string>;
3646
3646
  activeEnvironmentId: string;
3647
- themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "none";
3647
+ themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none";
3648
3648
  selectedHttpClient: {
3649
3649
  targetKey: string;
3650
3650
  clientKey: string;
@@ -3666,7 +3666,7 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
3666
3666
  collections: (string & import("zod").BRAND<"collection">)[];
3667
3667
  environments: Record<string, string>;
3668
3668
  activeEnvironmentId: string;
3669
- themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "none";
3669
+ themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none";
3670
3670
  selectedHttpClient: {
3671
3671
  targetKey: string;
3672
3672
  clientKey: string;
@@ -3687,7 +3687,7 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
3687
3687
  collections: (string & import("zod").BRAND<"collection">)[];
3688
3688
  environments: Record<string, string>;
3689
3689
  activeEnvironmentId: string;
3690
- themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "none";
3690
+ themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none";
3691
3691
  selectedHttpClient: {
3692
3692
  targetKey: string;
3693
3693
  clientKey: string;
@@ -3708,7 +3708,7 @@ export declare const createApiClientApp: (el: HTMLElement | null, configuration?
3708
3708
  collections: (string & import("zod").BRAND<"collection">)[];
3709
3709
  environments: Record<string, string>;
3710
3710
  activeEnvironmentId: string;
3711
- themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "none";
3711
+ themeId: "default" | "alternate" | "moon" | "purple" | "solarized" | "bluePlanet" | "deepSpace" | "saturn" | "kepler" | "elysiajs" | "fastify" | "mars" | "laserwave" | "none";
3712
3712
  selectedHttpClient: {
3713
3713
  targetKey: string;
3714
3714
  clientKey: string;