@scalar/api-client 2.3.18 → 2.3.20

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 +34 -0
  2. package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
  3. package/dist/components/CommandPalette/CommandPaletteImport.vue.js +132 -120
  4. package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
  5. package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -2
  6. package/dist/components/CommandPalette/TheCommandPalette.vue2.js +138 -125
  7. package/dist/components/ImportCollection/utils/import-collection.d.ts.map +1 -1
  8. package/dist/components/ImportCollection/utils/import-collection.js +17 -14
  9. package/dist/hooks/useClientConfig.d.ts +3 -3
  10. package/dist/hooks/useClientConfig.d.ts.map +1 -1
  11. package/dist/layouts/App/create-api-client-app.d.ts +16 -19
  12. package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
  13. package/dist/layouts/App/create-api-client-app.js +10 -8
  14. package/dist/layouts/Modal/create-api-client-modal.d.ts +32 -38
  15. package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
  16. package/dist/layouts/Web/create-api-client-web.d.ts +16 -19
  17. package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
  18. package/dist/libs/create-client.d.ts +16 -19
  19. package/dist/libs/create-client.d.ts.map +1 -1
  20. package/dist/store/active-entities.d.ts +1 -1
  21. package/dist/store/active-entities.d.ts.map +1 -1
  22. package/dist/store/import-spec.d.ts +1 -1
  23. package/dist/store/import-spec.d.ts.map +1 -1
  24. package/dist/store/import-spec.js +7 -6
  25. package/dist/store/store.d.ts +16 -19
  26. package/dist/store/store.d.ts.map +1 -1
  27. package/dist/store/workspace.d.ts +10 -10
  28. package/dist/store/workspace.d.ts.map +1 -1
  29. package/dist/style.css +1 -1
  30. package/dist/views/Collection/CollectionAuthentication.vue.d.ts.map +1 -1
  31. package/dist/views/Collection/CollectionAuthentication.vue.js +2 -2
  32. package/dist/views/Collection/CollectionAuthentication.vue2.js +22 -19
  33. package/dist/views/Collection/CollectionSettings.vue.d.ts.map +1 -1
  34. package/dist/views/Collection/CollectionSettings.vue.js +1 -1
  35. package/dist/views/Collection/CollectionSettings.vue2.js +1 -1
  36. package/dist/views/Collection/components/MarkdownInput.vue.d.ts.map +1 -1
  37. package/dist/views/Collection/components/MarkdownInput.vue.js +2 -2
  38. package/dist/views/Collection/components/MarkdownInput.vue2.js +11 -11
  39. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
  40. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +2 -2
  41. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +29 -30
  42. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
  43. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +3 -3
  44. package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +33 -32
  45. package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
  46. package/dist/views/Request/RequestSection/RequestBody.vue.js +1 -1
  47. package/dist/views/Request/RequestSection/RequestBody.vue2.js +129 -126
  48. package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +2 -2
  49. package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +1 -1
  50. package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
  51. package/dist/views/Request/RequestSidebarItem.vue.js +3 -3
  52. package/dist/views/Request/RequestSidebarItem.vue2.js +235 -241
  53. package/dist/views/Request/ResponseSection/RequestHeaders.vue.d.ts.map +1 -1
  54. package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +12 -12
  55. package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
  56. package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +1 -1
  57. package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
  58. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts.map +1 -1
  59. package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +9 -9
  60. package/dist/views/Request/hooks/useOpenApiWatcher.js +34 -34
  61. package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
  62. package/dist/views/Settings/SettingsGeneral.vue.js +2 -0
  63. package/package.json +11 -11
package/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # @scalar/api-client
2
2
 
3
+ ## 2.3.20
4
+
5
+ ### Patch Changes
6
+
7
+ - e3ed7a2: fix: updates duplicated border and alignment style"
8
+ - 71d06d8: feat: mask api key value in authentication section
9
+ - e30339c: fix: updates collection style
10
+ - feaa314: feat(themes): add laserwave theme
11
+ - 03198df: fix: updates request body vendor specific json type support
12
+ - ba8e37e: fix: updates arrow key handler function
13
+ - f4e1402: fix: increases request sidebar collection click area
14
+ - e30339c: fix: updates request auth layout in request auth to display options in collection level
15
+ - 4abe4f8: feat: external $ref’s (absolute and relative URLs)
16
+ - Updated dependencies [4abe4f8]
17
+ - Updated dependencies [feaa314]
18
+ - Updated dependencies [feaa314]
19
+ - Updated dependencies [4abe4f8]
20
+ - @scalar/openapi-parser@0.10.15
21
+ - @scalar/themes@0.10.0
22
+ - @scalar/types@0.1.8
23
+ - @scalar/oas-utils@0.2.131
24
+ - @scalar/import@0.3.14
25
+ - @scalar/components@0.13.48
26
+ - @scalar/use-codemirror@0.11.93
27
+ - @scalar/use-hooks@0.1.41
28
+ - @scalar/snippetz@0.2.19
29
+ - @scalar/postman-to-openapi@0.2.4
30
+
31
+ ## 2.3.19
32
+
33
+ ### Patch Changes
34
+
35
+ - 44413b1: fix: make code snippet default closed
36
+
3
37
  ## 2.3.18
4
38
 
5
39
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"CommandPaletteImport.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteImport.vue"],"names":[],"mappings":";;;;;;;AA+wBA,wBAOG"}
1
+ {"version":3,"file":"CommandPaletteImport.vue.d.ts","sourceRoot":"","sources":["../../../src/components/CommandPalette/CommandPaletteImport.vue"],"names":[],"mappings":";;;;;;;AAuyBA,wBAOG"}
@@ -1,157 +1,169 @@
1
- import { defineComponent as G, ref as R, computed as k, watch as D, openBlock as n, createBlock as _, unref as s, withCtx as v, createElementVNode as w, createVNode as C, createTextVNode as f, createElementBlock as u, Fragment as g, toDisplayString as V, createCommentVNode as H } from "vue";
2
- import { useLoadingState as K, ScalarButton as T, ScalarIcon as Q, ScalarTooltip as X, ScalarCodeBlock as Z } from "@scalar/components";
3
- import { useToasts as ee } from "@scalar/use-toasts";
4
- import { useRouter as te } from "vue-router";
5
- import { importCurlCommand as oe } from "../../libs/importers/curl.js";
6
- import { useActiveEntities as ae } from "../../store/active-entities.js";
7
- import le from "./CommandActionForm.vue.js";
8
- import ne from "./CommandActionInput.vue.js";
9
- import re from "./WatchModeToggle.vue.js";
10
- import { isPostmanCollection as S, getPostmanDocumentDetails as ie, convertPostmanToOpenApi as F } from "../../libs/postman.js";
11
- import { getOpenApiDocumentDetails as se } from "../../libs/getOpenApiDocumentDetails.js";
12
- import { isUrl as U } from "../../libs/isUrl.js";
13
- import { useFileDialog as ce } from "../../hooks/useFileDialog.js";
14
- import { PathId as M } from "../../routes.js";
15
- import { useWorkspace as ue } from "../../store/store.js";
16
- const me = { class: "flex justify-between" }, de = { class: "flex w-full flex-row items-center justify-between gap-3" }, pe = { class: "w-content bg-b-1 text-xxs text-c-1 pointer-events-none z-10 grid max-w-[320px] gap-1.5 rounded p-2 leading-5 shadow-lg" }, ve = { class: "text-c-2 flex items-center" }, fe = {
1
+ import { defineComponent as K, ref as V, computed as P, watch as T, openBlock as r, createBlock as A, unref as u, withCtx as v, createElementVNode as C, createVNode as b, createTextVNode as f, createElementBlock as m, Fragment as g, toDisplayString as F, createCommentVNode as Q } from "vue";
2
+ import { useLoadingState as X, ScalarButton as M, ScalarIcon as Z, ScalarTooltip as ee, ScalarCodeBlock as te } from "@scalar/components";
3
+ import { useToasts as oe } from "@scalar/use-toasts";
4
+ import { useRouter as le } from "vue-router";
5
+ import { importCurlCommand as ae } from "../../libs/importers/curl.js";
6
+ import { useActiveEntities as ne } from "../../store/active-entities.js";
7
+ import re from "./CommandActionForm.vue.js";
8
+ import ie from "./CommandActionInput.vue.js";
9
+ import se from "./WatchModeToggle.vue.js";
10
+ import { isPostmanCollection as L, getPostmanDocumentDetails as ue, convertPostmanToOpenApi as N } from "../../libs/postman.js";
11
+ import { getOpenApiDocumentDetails as ce } from "../../libs/getOpenApiDocumentDetails.js";
12
+ import { isUrl as _ } from "../../libs/isUrl.js";
13
+ import { useFileDialog as me } from "../../hooks/useFileDialog.js";
14
+ import { PathId as $ } from "../../routes.js";
15
+ import { useWorkspace as pe } from "../../store/store.js";
16
+ const de = { class: "flex justify-between" }, ve = { class: "flex w-full flex-row items-center justify-between gap-3" }, fe = { class: "w-content bg-b-1 text-xxs text-c-1 pointer-events-none z-10 grid max-w-[320px] gap-1.5 rounded p-2 leading-5 shadow-lg" }, ye = { class: "text-c-2 flex items-center" }, ge = {
17
17
  key: 0,
18
18
  class: "text-pretty"
19
- }, ge = {
19
+ }, xe = {
20
20
  key: 1,
21
21
  class: "text-pretty"
22
- }, De = /* @__PURE__ */ G({
22
+ }, Te = /* @__PURE__ */ K({
23
23
  __name: "CommandPaletteImport",
24
24
  emits: ["close", "back"],
25
- setup(ye, { emit: N }) {
26
- const P = N, $ = te(), { activeWorkspace: m, activeCollection: B } = ae(), { importSpecFile: b, importSpecFromUrl: W, events: j } = ue(), { toast: d } = ee(), p = K(), a = R(""), y = R(!0), i = k(() => S(a.value) ? ie(a.value) : se(a.value)), A = k(
27
- () => i.value ? i.value.type : "json"
25
+ setup(he, { emit: B }) {
26
+ const S = B, W = le(), { activeWorkspace: n, activeCollection: j } = ne(), { importSpecFile: I, importSpecFromUrl: z, events: E } = pe(), { toast: p } = oe(), d = X(), o = V(""), x = V(!0), s = P(() => L(o.value) ? ue(o.value) : ce(o.value)), O = P(
27
+ () => s.value ? s.value.type : "json"
28
28
  );
29
- function x(t) {
29
+ function h(t) {
30
30
  var e;
31
- t && $.push({
31
+ t && W.push({
32
32
  name: "collection",
33
33
  params: {
34
- [M.Workspace]: (e = m.value) == null ? void 0 : e.uid,
35
- [M.Collection]: t.uid
34
+ [$.Workspace]: (e = n.value) == null ? void 0 : e.uid,
35
+ [$.Collection]: t.uid
36
36
  }
37
37
  });
38
38
  }
39
- const h = k(() => U(a.value)), z = k(() => !!i.value), { open: E } = ce({
39
+ const U = P(() => _(o.value)), J = P(() => !!s.value), { open: Y } = me({
40
40
  onChange: async (t) => {
41
41
  const e = t == null ? void 0 : t[0];
42
42
  if (e) {
43
- const r = new FileReader();
44
- r.onload = async (I) => {
45
- var c, L, O;
46
- const o = (c = I.target) == null ? void 0 : c.result;
43
+ const i = new FileReader();
44
+ i.onload = async (k) => {
45
+ var w, l, c, R, D;
46
+ const y = (w = k.target) == null ? void 0 : w.result;
47
47
  try {
48
- if (S(o)) {
49
- const l = await b(
50
- await F(o),
51
- ((L = m.value) == null ? void 0 : L.uid) ?? ""
48
+ if (L(y)) {
49
+ const a = await I(
50
+ await N(y),
51
+ ((l = n.value) == null ? void 0 : l.uid) ?? "",
52
+ {
53
+ proxyUrl: (c = n.value) == null ? void 0 : c.proxyUrl
54
+ }
52
55
  );
53
- x(l == null ? void 0 : l.collection);
56
+ h(a == null ? void 0 : a.collection);
54
57
  } else {
55
- const l = await b(
56
- o,
57
- ((O = m.value) == null ? void 0 : O.uid) ?? ""
58
+ const a = await I(
59
+ y,
60
+ ((R = n.value) == null ? void 0 : R.uid) ?? "",
61
+ {
62
+ proxyUrl: (D = n.value) == null ? void 0 : D.proxyUrl
63
+ }
58
64
  );
59
- x(l == null ? void 0 : l.collection);
65
+ h(a == null ? void 0 : a.collection);
60
66
  }
61
- d("Import successful", "info"), P("close");
62
- } catch (l) {
63
- console.error(l);
64
- const q = (l == null ? void 0 : l.message) || "Unknown error";
65
- d(`Import failed: ${q}`, "error");
67
+ p("Import successful", "info"), S("close");
68
+ } catch (a) {
69
+ console.error(a);
70
+ const H = (a == null ? void 0 : a.message) || "Unknown error";
71
+ p(`Import failed: ${H}`, "error");
66
72
  }
67
- }, r.readAsText(e);
73
+ }, i.readAsText(e);
68
74
  }
69
75
  },
70
76
  multiple: !1,
71
77
  accept: ".json,.yaml,.yml"
72
78
  });
73
- D(h, (t) => {
74
- t || (y.value = !1);
75
- }), D(a, (t) => {
76
- U(t) || (y.value = !1);
79
+ T(U, (t) => {
80
+ t || (x.value = !1);
81
+ }), T(o, (t) => {
82
+ _(t) || (x.value = !1);
77
83
  });
78
- async function J() {
79
- var t, e, r, I;
80
- if (!(!a.value || p.isLoading)) {
81
- p.startLoading();
84
+ async function q() {
85
+ var t, e, i, k, y, w;
86
+ if (!(!o.value || d.isLoading)) {
87
+ d.startLoading();
82
88
  try {
83
- if (h.value) {
84
- const [o, c] = await W(
85
- a.value,
86
- ((t = m.value) == null ? void 0 : t.uid) ?? "",
89
+ if (U.value) {
90
+ const [l, c] = await z(
91
+ o.value,
92
+ ((t = n.value) == null ? void 0 : t.uid) ?? "",
87
93
  {
88
- proxyUrl: (e = m.value) == null ? void 0 : e.proxyUrl,
89
- watchMode: y.value
94
+ proxyUrl: (e = n.value) == null ? void 0 : e.proxyUrl,
95
+ watchMode: x.value
90
96
  }
91
97
  );
92
- if (x(c == null ? void 0 : c.collection), o) {
93
- d(
98
+ if (h(c == null ? void 0 : c.collection), l) {
99
+ p(
94
100
  "There was a possible CORS error while importing your spec, please make sure this server is allowed in the CORS policy of your OpenAPI document.",
95
101
  "error",
96
102
  { timeout: 5e3 }
97
- ), p.invalidate(2e3, !0);
103
+ ), d.invalidate(2e3, !0);
98
104
  return;
99
105
  }
100
- } else if (z.value)
101
- if (S(a.value)) {
102
- const o = await b(
103
- await F(a.value),
104
- ((r = m.value) == null ? void 0 : r.uid) ?? ""
106
+ } else if (J.value)
107
+ if (L(o.value)) {
108
+ const l = await I(
109
+ await N(o.value),
110
+ ((i = n.value) == null ? void 0 : i.uid) ?? "",
111
+ {
112
+ proxyUrl: (k = n.value) == null ? void 0 : k.proxyUrl
113
+ }
105
114
  );
106
- x(o == null ? void 0 : o.collection), d("Successfully converted Postman collection", "info");
115
+ h(l == null ? void 0 : l.collection), p("Successfully converted Postman collection", "info");
107
116
  } else {
108
- const o = await b(
109
- a.value,
110
- ((I = m.value) == null ? void 0 : I.uid) ?? ""
117
+ const l = await I(
118
+ o.value,
119
+ ((y = n.value) == null ? void 0 : y.uid) ?? "",
120
+ {
121
+ proxyUrl: (w = n.value) == null ? void 0 : w.proxyUrl
122
+ }
111
123
  );
112
- x(o == null ? void 0 : o.collection);
124
+ h(l == null ? void 0 : l.collection);
113
125
  }
114
126
  else {
115
- d("Import failed: Invalid URL or OpenAPI document", "error"), p.invalidate(2e3, !0);
127
+ p("Import failed: Invalid URL or OpenAPI document", "error"), d.invalidate(2e3, !0);
116
128
  return;
117
129
  }
118
- p.clear(), P("close"), d("Import successful", "info");
119
- } catch (o) {
120
- console.error("[importCollection]", o);
121
- const c = (o == null ? void 0 : o.message) || "Unknown error";
122
- p.invalidate(2e3, !0), d(`Import failed: ${c}`, "error");
130
+ d.clear(), S("close"), p("Import successful", "info");
131
+ } catch (l) {
132
+ console.error("[importCollection]", l);
133
+ const c = (l == null ? void 0 : l.message) || "Unknown error";
134
+ d.invalidate(2e3, !0), p(`Import failed: ${c}`, "error");
123
135
  }
124
136
  }
125
137
  }
126
- const Y = (t) => {
138
+ const G = (t) => {
127
139
  var e;
128
140
  if (t.trim().toLowerCase().startsWith("curl")) {
129
- j.commandPalette.emit({
141
+ E.commandPalette.emit({
130
142
  commandName: "Import from cURL",
131
143
  metaData: {
132
- parsedCurl: oe(t),
133
- collectionUid: (e = B.value) == null ? void 0 : e.uid
144
+ parsedCurl: ae(t),
145
+ collectionUid: (e = j.value) == null ? void 0 : e.uid
134
146
  }
135
147
  });
136
148
  return;
137
149
  }
138
- a.value = t;
150
+ o.value = t;
139
151
  };
140
- return (t, e) => (n(), _(le, {
141
- disabled: !a.value.trim(),
142
- loading: s(p),
143
- onSubmit: J
152
+ return (t, e) => (r(), A(re, {
153
+ disabled: !o.value.trim(),
154
+ loading: u(d),
155
+ onSubmit: q
144
156
  }, {
145
157
  options: v(() => [
146
- w("div", de, [
147
- C(s(T), {
158
+ C("div", ve, [
159
+ b(u(M), {
148
160
  class: "hover:bg-b-2 relative max-h-8 gap-1.5 p-2 text-xs",
149
161
  variant: "outlined",
150
- onClick: s(E)
162
+ onClick: u(Y)
151
163
  }, {
152
164
  default: v(() => [
153
165
  e[5] || (e[5] = f(" JSON, or YAML File ")),
154
- C(s(Q), {
166
+ b(u(Z), {
155
167
  class: "text-c-3",
156
168
  icon: "Upload",
157
169
  size: "md"
@@ -159,23 +171,23 @@ const me = { class: "flex justify-between" }, de = { class: "flex w-full flex-ro
159
171
  ]),
160
172
  _: 1
161
173
  }, 8, ["onClick"]),
162
- C(s(X), {
174
+ b(u(ee), {
163
175
  as: "div",
164
176
  class: "z-[10001]",
165
177
  side: "bottom",
166
178
  sideOffset: 5
167
179
  }, {
168
180
  trigger: v(() => [
169
- C(re, {
170
- modelValue: y.value,
171
- "onUpdate:modelValue": e[2] || (e[2] = (r) => y.value = r),
172
- disabled: !h.value
181
+ b(se, {
182
+ modelValue: x.value,
183
+ "onUpdate:modelValue": e[2] || (e[2] = (i) => x.value = i),
184
+ disabled: !U.value
173
185
  }, null, 8, ["modelValue", "disabled"])
174
186
  ]),
175
187
  content: v(() => [
176
- w("div", pe, [
177
- w("div", ve, [
178
- h.value ? (n(), u("span", fe, " Automatically updates the API client when the OpenAPI URL content changes, ensuring your client remains up-to-date. ")) : (n(), u("span", ge, " Watch Mode is only available for URL imports. It automatically updates the API client when the OpenAPI URL content changes. "))
188
+ C("div", fe, [
189
+ C("div", ye, [
190
+ U.value ? (r(), m("span", ge, " Automatically updates the API client when the OpenAPI URL content changes, ensuring your client remains up-to-date. ")) : (r(), m("span", xe, " Watch Mode is only available for URL imports. It automatically updates the API client when the OpenAPI URL content changes. "))
179
191
  ])
180
192
  ])
181
193
  ]),
@@ -185,32 +197,32 @@ const me = { class: "flex justify-between" }, de = { class: "flex w-full flex-ro
185
197
  ]),
186
198
  submit: v(() => [
187
199
  e[6] || (e[6] = f(" Import ")),
188
- h.value ? (n(), u(g, { key: 0 }, [
200
+ U.value ? (r(), m(g, { key: 0 }, [
189
201
  f(" from URL ")
190
- ], 64)) : i.value && A.value ? (n(), u(g, { key: 1 }, [
191
- i.value.title ? (n(), u(g, { key: 0 }, [
192
- f(' "' + V(i.value.title) + '" ', 1)
193
- ], 64)) : (n(), u(g, { key: 1 }, [
194
- f(V(i.value.version), 1)
202
+ ], 64)) : s.value && O.value ? (r(), m(g, { key: 1 }, [
203
+ s.value.title ? (r(), m(g, { key: 0 }, [
204
+ f(' "' + F(s.value.title) + '" ', 1)
205
+ ], 64)) : (r(), m(g, { key: 1 }, [
206
+ f(F(s.value.version), 1)
195
207
  ], 64))
196
- ], 64)) : (n(), u(g, { key: 2 }, [
208
+ ], 64)) : (r(), m(g, { key: 2 }, [
197
209
  f(" Collection ")
198
210
  ], 64))
199
211
  ]),
200
212
  default: v(() => [
201
- !i.value || s(U)(a.value) ? (n(), _(ne, {
213
+ !s.value || u(_)(o.value) ? (r(), A(ie, {
202
214
  key: 0,
203
- modelValue: a.value,
215
+ modelValue: o.value,
204
216
  placeholder: "OpenAPI/Swagger/Postman URL or cURL",
205
- onOnDelete: e[0] || (e[0] = (r) => P("back", r)),
206
- "onUpdate:modelValue": Y
207
- }, null, 8, ["modelValue"])) : (n(), u(g, { key: 1 }, [
208
- w("div", me, [
209
- e[4] || (e[4] = w("div", { class: "text-c-2 min-h-8 py-2 pl-8 text-xs" }, "Preview", -1)),
210
- C(s(T), {
217
+ onOnDelete: e[0] || (e[0] = (i) => S("back", i)),
218
+ "onUpdate:modelValue": G
219
+ }, null, 8, ["modelValue"])) : (r(), m(g, { key: 1 }, [
220
+ C("div", de, [
221
+ e[4] || (e[4] = C("div", { class: "text-c-2 min-h-8 py-2 pl-8 text-xs" }, "Preview", -1)),
222
+ b(u(M), {
211
223
  class: "hover:bg-b-2 relative ml-auto max-h-8 gap-1.5 p-2 text-xs",
212
224
  variant: "ghost",
213
- onClick: e[1] || (e[1] = (r) => a.value = "")
225
+ onClick: e[1] || (e[1] = (i) => o.value = "")
214
226
  }, {
215
227
  default: v(() => e[3] || (e[3] = [
216
228
  f(" Clear ")
@@ -218,13 +230,13 @@ const me = { class: "flex justify-between" }, de = { class: "flex w-full flex-ro
218
230
  _: 1
219
231
  })
220
232
  ]),
221
- i.value && !s(U)(a.value) ? (n(), _(s(Z), {
233
+ s.value && !u(_)(o.value) ? (r(), A(u(te), {
222
234
  key: 0,
223
235
  class: "bg-b-2 mt-1 max-h-[40dvh] rounded border [--scalar-small:--scalar-font-size-4]",
224
- content: a.value,
236
+ content: o.value,
225
237
  copy: !1,
226
- lang: A.value
227
- }, null, 8, ["content", "lang"])) : H("", !0)
238
+ lang: O.value
239
+ }, null, 8, ["content", "lang"])) : Q("", !0)
228
240
  ], 64))
229
241
  ]),
230
242
  _: 1
@@ -232,5 +244,5 @@ const me = { class: "flex justify-between" }, de = { class: "flex w-full flex-ro
232
244
  }
233
245
  });
234
246
  export {
235
- De as default
247
+ Te as default
236
248
  };
@@ -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
  };