@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.
- package/CHANGELOG.md +34 -0
- package/dist/components/CommandPalette/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +132 -120
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue.js +2 -2
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +138 -125
- package/dist/components/ImportCollection/utils/import-collection.d.ts.map +1 -1
- package/dist/components/ImportCollection/utils/import-collection.js +17 -14
- package/dist/hooks/useClientConfig.d.ts +3 -3
- package/dist/hooks/useClientConfig.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.d.ts +16 -19
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/App/create-api-client-app.js +10 -8
- package/dist/layouts/Modal/create-api-client-modal.d.ts +32 -38
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +16 -19
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +16 -19
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/store/active-entities.d.ts +1 -1
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/import-spec.d.ts +1 -1
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/import-spec.js +7 -6
- package/dist/store/store.d.ts +16 -19
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/workspace.d.ts +10 -10
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/views/Collection/CollectionAuthentication.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionAuthentication.vue.js +2 -2
- package/dist/views/Collection/CollectionAuthentication.vue2.js +22 -19
- package/dist/views/Collection/CollectionSettings.vue.d.ts.map +1 -1
- package/dist/views/Collection/CollectionSettings.vue.js +1 -1
- package/dist/views/Collection/CollectionSettings.vue2.js +1 -1
- package/dist/views/Collection/components/MarkdownInput.vue.d.ts.map +1 -1
- package/dist/views/Collection/components/MarkdownInput.vue.js +2 -2
- package/dist/views/Collection/components/MarkdownInput.vue2.js +11 -11
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +29 -30
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue.js +3 -3
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +33 -32
- package/dist/views/Request/RequestSection/RequestBody.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +129 -126
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebarItem.vue.js +3 -3
- package/dist/views/Request/RequestSidebarItem.vue2.js +235 -241
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +12 -12
- package/dist/views/Request/ResponseSection/ResponseBody.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +9 -9
- package/dist/views/Request/hooks/useOpenApiWatcher.js +34 -34
- package/dist/views/Settings/SettingsGeneral.vue.d.ts.map +1 -1
- package/dist/views/Settings/SettingsGeneral.vue.js +2 -0
- 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":";;;;;;;
|
|
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
|
|
2
|
-
import { useLoadingState as
|
|
3
|
-
import { useToasts as
|
|
4
|
-
import { useRouter as
|
|
5
|
-
import { importCurlCommand as
|
|
6
|
-
import { useActiveEntities as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { isPostmanCollection as
|
|
11
|
-
import { getOpenApiDocumentDetails as
|
|
12
|
-
import { isUrl as
|
|
13
|
-
import { useFileDialog as
|
|
14
|
-
import { PathId as
|
|
15
|
-
import { useWorkspace as
|
|
16
|
-
const
|
|
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
|
-
},
|
|
19
|
+
}, xe = {
|
|
20
20
|
key: 1,
|
|
21
21
|
class: "text-pretty"
|
|
22
|
-
},
|
|
22
|
+
}, Te = /* @__PURE__ */ K({
|
|
23
23
|
__name: "CommandPaletteImport",
|
|
24
24
|
emits: ["close", "back"],
|
|
25
|
-
setup(
|
|
26
|
-
const
|
|
27
|
-
() =>
|
|
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
|
|
29
|
+
function h(t) {
|
|
30
30
|
var e;
|
|
31
|
-
t &&
|
|
31
|
+
t && W.push({
|
|
32
32
|
name: "collection",
|
|
33
33
|
params: {
|
|
34
|
-
[
|
|
35
|
-
[
|
|
34
|
+
[$.Workspace]: (e = n.value) == null ? void 0 : e.uid,
|
|
35
|
+
[$.Collection]: t.uid
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
|
-
const
|
|
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
|
|
44
|
-
|
|
45
|
-
var c,
|
|
46
|
-
const
|
|
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 (
|
|
49
|
-
const
|
|
50
|
-
await
|
|
51
|
-
((
|
|
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
|
-
|
|
56
|
+
h(a == null ? void 0 : a.collection);
|
|
54
57
|
} else {
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
((
|
|
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
|
-
|
|
65
|
+
h(a == null ? void 0 : a.collection);
|
|
60
66
|
}
|
|
61
|
-
|
|
62
|
-
} catch (
|
|
63
|
-
console.error(
|
|
64
|
-
const
|
|
65
|
-
|
|
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
|
-
},
|
|
73
|
+
}, i.readAsText(e);
|
|
68
74
|
}
|
|
69
75
|
},
|
|
70
76
|
multiple: !1,
|
|
71
77
|
accept: ".json,.yaml,.yml"
|
|
72
78
|
});
|
|
73
|
-
|
|
74
|
-
t || (
|
|
75
|
-
}),
|
|
76
|
-
|
|
79
|
+
T(U, (t) => {
|
|
80
|
+
t || (x.value = !1);
|
|
81
|
+
}), T(o, (t) => {
|
|
82
|
+
_(t) || (x.value = !1);
|
|
77
83
|
});
|
|
78
|
-
async function
|
|
79
|
-
var t, e,
|
|
80
|
-
if (!(!
|
|
81
|
-
|
|
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 (
|
|
84
|
-
const [
|
|
85
|
-
|
|
86
|
-
((t =
|
|
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 =
|
|
89
|
-
watchMode:
|
|
94
|
+
proxyUrl: (e = n.value) == null ? void 0 : e.proxyUrl,
|
|
95
|
+
watchMode: x.value
|
|
90
96
|
}
|
|
91
97
|
);
|
|
92
|
-
if (
|
|
93
|
-
|
|
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
|
-
),
|
|
103
|
+
), d.invalidate(2e3, !0);
|
|
98
104
|
return;
|
|
99
105
|
}
|
|
100
|
-
} else if (
|
|
101
|
-
if (
|
|
102
|
-
const
|
|
103
|
-
await
|
|
104
|
-
((
|
|
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
|
-
|
|
115
|
+
h(l == null ? void 0 : l.collection), p("Successfully converted Postman collection", "info");
|
|
107
116
|
} else {
|
|
108
|
-
const
|
|
109
|
-
|
|
110
|
-
((
|
|
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
|
-
|
|
124
|
+
h(l == null ? void 0 : l.collection);
|
|
113
125
|
}
|
|
114
126
|
else {
|
|
115
|
-
|
|
127
|
+
p("Import failed: Invalid URL or OpenAPI document", "error"), d.invalidate(2e3, !0);
|
|
116
128
|
return;
|
|
117
129
|
}
|
|
118
|
-
|
|
119
|
-
} catch (
|
|
120
|
-
console.error("[importCollection]",
|
|
121
|
-
const c = (
|
|
122
|
-
|
|
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
|
|
138
|
+
const G = (t) => {
|
|
127
139
|
var e;
|
|
128
140
|
if (t.trim().toLowerCase().startsWith("curl")) {
|
|
129
|
-
|
|
141
|
+
E.commandPalette.emit({
|
|
130
142
|
commandName: "Import from cURL",
|
|
131
143
|
metaData: {
|
|
132
|
-
parsedCurl:
|
|
133
|
-
collectionUid: (e =
|
|
144
|
+
parsedCurl: ae(t),
|
|
145
|
+
collectionUid: (e = j.value) == null ? void 0 : e.uid
|
|
134
146
|
}
|
|
135
147
|
});
|
|
136
148
|
return;
|
|
137
149
|
}
|
|
138
|
-
|
|
150
|
+
o.value = t;
|
|
139
151
|
};
|
|
140
|
-
return (t, e) => (
|
|
141
|
-
disabled: !
|
|
142
|
-
loading:
|
|
143
|
-
onSubmit:
|
|
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
|
-
|
|
147
|
-
|
|
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:
|
|
162
|
+
onClick: u(Y)
|
|
151
163
|
}, {
|
|
152
164
|
default: v(() => [
|
|
153
165
|
e[5] || (e[5] = f(" JSON, or YAML File ")),
|
|
154
|
-
|
|
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
|
-
|
|
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
|
-
|
|
170
|
-
modelValue:
|
|
171
|
-
"onUpdate:modelValue": e[2] || (e[2] = (
|
|
172
|
-
disabled: !
|
|
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
|
-
|
|
177
|
-
|
|
178
|
-
|
|
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
|
-
|
|
200
|
+
U.value ? (r(), m(g, { key: 0 }, [
|
|
189
201
|
f(" from URL ")
|
|
190
|
-
], 64)) :
|
|
191
|
-
|
|
192
|
-
f(' "' +
|
|
193
|
-
], 64)) : (
|
|
194
|
-
f(
|
|
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)) : (
|
|
208
|
+
], 64)) : (r(), m(g, { key: 2 }, [
|
|
197
209
|
f(" Collection ")
|
|
198
210
|
], 64))
|
|
199
211
|
]),
|
|
200
212
|
default: v(() => [
|
|
201
|
-
!
|
|
213
|
+
!s.value || u(_)(o.value) ? (r(), A(ie, {
|
|
202
214
|
key: 0,
|
|
203
|
-
modelValue:
|
|
215
|
+
modelValue: o.value,
|
|
204
216
|
placeholder: "OpenAPI/Swagger/Postman URL or cURL",
|
|
205
|
-
onOnDelete: e[0] || (e[0] = (
|
|
206
|
-
"onUpdate:modelValue":
|
|
207
|
-
}, null, 8, ["modelValue"])) : (
|
|
208
|
-
|
|
209
|
-
e[4] || (e[4] =
|
|
210
|
-
|
|
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] = (
|
|
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
|
-
|
|
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:
|
|
236
|
+
content: o.value,
|
|
225
237
|
copy: !1,
|
|
226
|
-
lang:
|
|
227
|
-
}, null, 8, ["content", "lang"])) :
|
|
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
|
-
|
|
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":"
|
|
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
|
|
5
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-85f3b768"]]);
|
|
6
6
|
export {
|
|
7
7
|
s as PaletteComponents,
|
|
8
|
-
|
|
8
|
+
a as default
|
|
9
9
|
};
|