@scalar/api-client 2.24.0 → 2.26.0
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 +61 -0
- package/dist/components/DataTable/DataTableCheckbox.vue.d.ts.map +1 -1
- package/dist/components/DataTable/DataTableCheckbox.vue.js +8 -8
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-body.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-body.js +28 -19
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.js +1 -1
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue2.js +1 -1
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.js +18 -18
- package/dist/v2/blocks/request-block/helpers/get-default-headers.js +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.d.ts.map +1 -1
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue.js +2 -2
- package/dist/v2/blocks/response-block/components/ResponseBodyRaw.vue2.js +19 -19
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +26 -26
- package/dist/v2/components/callout/Callout.vue.d.ts +17 -0
- package/dist/v2/components/callout/Callout.vue.d.ts.map +1 -0
- package/dist/v2/components/callout/Callout.vue.js +7 -0
- package/dist/v2/components/callout/Callout.vue2.js +43 -0
- package/dist/v2/components/data-table/DataTableCheckbox.vue.d.ts.map +1 -1
- package/dist/v2/components/data-table/DataTableCheckbox.vue.js +8 -8
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts +2 -2
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.js +40 -41
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts +2 -2
- package/dist/v2/components/sidebar/SidebarMenu.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/SidebarMenu.vue.js +6 -6
- package/dist/v2/features/app/App.vue.d.ts +6 -3
- package/dist/v2/features/app/App.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.js +87 -86
- package/dist/v2/features/app/app-events.d.ts +1 -1
- package/dist/v2/features/app/app-events.d.ts.map +1 -1
- package/dist/v2/features/app/app-events.js +10 -10
- package/dist/v2/features/app/app-state.d.ts +77 -96
- package/dist/v2/features/app/app-state.d.ts.map +1 -1
- package/dist/v2/features/app/app-state.js +339 -322
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts +2 -2
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue.js +3 -3
- package/dist/v2/features/app/components/DesktopTabs.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/DesktopTabs.vue.js +1 -1
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts +2 -2
- package/dist/v2/features/app/helpers/create-api-client-app.d.ts.map +1 -1
- package/dist/v2/features/app/helpers/create-api-client-app.js +9 -9
- package/dist/v2/features/app/helpers/filter-workspaces.d.ts +49 -0
- package/dist/v2/features/app/helpers/filter-workspaces.d.ts.map +1 -0
- package/dist/v2/features/app/helpers/filter-workspaces.js +5 -0
- package/dist/v2/features/app/helpers/get-route-param.d.ts +7 -0
- package/dist/v2/features/app/helpers/get-route-param.d.ts.map +1 -0
- package/dist/v2/features/app/helpers/get-route-param.js +9 -0
- package/dist/v2/features/app/helpers/group-workspaces.d.ts +24 -0
- package/dist/v2/features/app/helpers/group-workspaces.d.ts.map +1 -0
- package/dist/v2/features/app/helpers/group-workspaces.js +23 -0
- package/dist/v2/features/app/index.d.ts +1 -1
- package/dist/v2/features/app/index.d.ts.map +1 -1
- package/dist/v2/features/app/index.js +12 -12
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue.js +72 -65
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts +29 -2
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.d.ts.map +1 -1
- package/dist/v2/features/command-palette/components/CommandPaletteImport.vue.js +110 -106
- package/dist/v2/features/command-palette/helpers/load-document-from-source.d.ts +5 -1
- package/dist/v2/features/command-palette/helpers/load-document-from-source.d.ts.map +1 -1
- package/dist/v2/features/command-palette/helpers/load-document-from-source.js +41 -23
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts +41 -8
- package/dist/v2/features/command-palette/hooks/use-command-palette-state.d.ts.map +1 -1
- package/dist/v2/features/command-palette/index.d.ts +1 -2
- package/dist/v2/features/command-palette/index.d.ts.map +1 -1
- package/dist/v2/features/command-palette/index.js +4 -6
- package/dist/v2/features/operation/Operation.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +24 -23
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +10 -10
- package/dist/v2/features/app/components/WebTopNav.vue.d.ts +0 -41
- package/dist/v2/features/app/components/WebTopNav.vue.d.ts.map +0 -1
- package/dist/v2/features/app/components/WebTopNav.vue.js +0 -27
- package/dist/v2/features/app/components/WebTopNav.vue2.js +0 -4
|
@@ -1,124 +1,128 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useLoadingState as
|
|
3
|
-
import { isLocalUrl as
|
|
4
|
-
import { useToasts as
|
|
5
|
-
import { createWorkspaceStore as
|
|
6
|
-
import { useRouter as
|
|
7
|
-
import { getOpenApiDocumentDetails as
|
|
8
|
-
import { getPostmanDocumentDetails as
|
|
9
|
-
import { importDocumentToWorkspace as
|
|
10
|
-
import { isPostmanCollection as
|
|
11
|
-
import { loadDocumentFromSource as
|
|
12
|
-
import { isUrl as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import { useFileDialog as
|
|
17
|
-
const
|
|
1
|
+
import { defineComponent as O, ref as D, computed as f, watch as $, createBlock as b, openBlock as a, unref as s, withCtx as u, createElementBlock as c, Fragment as m, createElementVNode as h, createCommentVNode as j, createVNode as v, createTextVNode as i, toDisplayString as I, renderSlot as M } from "vue";
|
|
2
|
+
import { useLoadingState as _, ScalarButton as P, ScalarCodeBlock as z, ScalarIcon as J, ScalarTooltip as Y } from "@scalar/components";
|
|
3
|
+
import { isLocalUrl as q } from "@scalar/helpers/url/is-local-url";
|
|
4
|
+
import { useToasts as G } from "@scalar/use-toasts";
|
|
5
|
+
import { createWorkspaceStore as H } from "@scalar/workspace-store/client";
|
|
6
|
+
import { useRouter as K } from "vue-router";
|
|
7
|
+
import { getOpenApiDocumentDetails as Q } from "../helpers/get-openapi-document-details.js";
|
|
8
|
+
import { getPostmanDocumentDetails as X } from "../helpers/get-postman-document-details.js";
|
|
9
|
+
import { importDocumentToWorkspace as Z } from "../helpers/import-document-to-workspace.js";
|
|
10
|
+
import { isPostmanCollection as ee } from "../helpers/is-postman-collection.js";
|
|
11
|
+
import { loadDocumentFromSource as te } from "../helpers/load-document-from-source.js";
|
|
12
|
+
import { isUrl as oe } from "../../../helpers/is-url.js";
|
|
13
|
+
import ae from "./CommandActionForm.vue.js";
|
|
14
|
+
import le from "./CommandActionInput.vue.js";
|
|
15
|
+
import re from "./WatchModeToggle.vue.js";
|
|
16
|
+
import { useFileDialog as ne } from "../../../../hooks/useFileDialog.js";
|
|
17
|
+
const se = { class: "flex justify-between" }, ie = { class: "flex w-full flex-row items-center justify-between gap-3" }, ue = {
|
|
18
18
|
name: "CommandPaletteImport"
|
|
19
|
-
},
|
|
20
|
-
...
|
|
19
|
+
}, Ue = /* @__PURE__ */ O({
|
|
20
|
+
...ue,
|
|
21
21
|
props: {
|
|
22
22
|
workspaceStore: {},
|
|
23
|
-
eventBus: {}
|
|
23
|
+
eventBus: {},
|
|
24
|
+
fileLoader: {}
|
|
24
25
|
},
|
|
25
26
|
emits: ["close", "back"],
|
|
26
|
-
setup(
|
|
27
|
-
const
|
|
28
|
-
() =>
|
|
29
|
-
), l =
|
|
27
|
+
setup(y, { emit: V }) {
|
|
28
|
+
const w = V, { toast: T } = G(), A = K(), d = _(), o = D(""), k = D(!1), n = f(() => oe(o.value)), R = f(
|
|
29
|
+
() => n.value && q(o.value)
|
|
30
|
+
), l = f(() => ee(o.value) ? X(o.value) : Q(o.value)), L = f(
|
|
30
31
|
() => l.value ? l.value.type : "json"
|
|
31
|
-
),
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
), B = f(() => !o.value.trim());
|
|
33
|
+
$(R, (t) => {
|
|
34
|
+
k.value = t;
|
|
34
35
|
});
|
|
35
|
-
const
|
|
36
|
-
console.error(t),
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
const
|
|
36
|
+
const C = async (t) => {
|
|
37
|
+
console.error(t), T(t, "error"), await d.invalidate(), w("close");
|
|
38
|
+
}, x = async (t, e) => {
|
|
39
|
+
d.start();
|
|
40
|
+
const r = "drafts", p = H({
|
|
41
|
+
fileLoader: y.fileLoader,
|
|
40
42
|
meta: {
|
|
41
43
|
/** Ensure we use the active proxy to fetch documents */
|
|
42
|
-
"x-scalar-active-proxy":
|
|
44
|
+
"x-scalar-active-proxy": y.workspaceStore.workspace["x-scalar-active-proxy"]
|
|
43
45
|
}
|
|
44
|
-
});
|
|
45
|
-
if (!await
|
|
46
|
-
|
|
47
|
-
t,
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
}), g = e || (n.value ? "url" : "raw");
|
|
47
|
+
if (!await te(
|
|
48
|
+
p,
|
|
49
|
+
{ source: t, type: g },
|
|
50
|
+
r,
|
|
51
|
+
k.value
|
|
50
52
|
))
|
|
51
|
-
return
|
|
52
|
-
const
|
|
53
|
-
workspaceStore:
|
|
54
|
-
workspaceState:
|
|
55
|
-
name:
|
|
53
|
+
return C("Failed to import document");
|
|
54
|
+
const S = await Z({
|
|
55
|
+
workspaceStore: y.workspaceStore,
|
|
56
|
+
workspaceState: p.exportWorkspace(),
|
|
57
|
+
name: r
|
|
56
58
|
});
|
|
57
|
-
if (!
|
|
58
|
-
return
|
|
59
|
-
await
|
|
60
|
-
},
|
|
61
|
-
|
|
59
|
+
if (!S.ok)
|
|
60
|
+
return C(S.error);
|
|
61
|
+
await d.validate(), F(S.slug), w("close");
|
|
62
|
+
}, F = (t) => {
|
|
63
|
+
A.push({
|
|
62
64
|
name: "document.overview",
|
|
63
65
|
params: { documentSlug: t }
|
|
64
66
|
});
|
|
65
|
-
}, { open:
|
|
67
|
+
}, { open: N } = ne({
|
|
66
68
|
onChange: (t) => {
|
|
67
69
|
const [e] = t ?? [];
|
|
68
70
|
if (!e)
|
|
69
71
|
return;
|
|
70
|
-
|
|
71
|
-
const
|
|
72
|
-
const
|
|
73
|
-
await
|
|
74
|
-
},
|
|
75
|
-
|
|
72
|
+
d.start();
|
|
73
|
+
const r = async (g) => {
|
|
74
|
+
const U = g.target?.result;
|
|
75
|
+
await x(U, "raw");
|
|
76
|
+
}, p = new FileReader();
|
|
77
|
+
p.onload = r, p.readAsText(e);
|
|
76
78
|
},
|
|
77
79
|
multiple: !1,
|
|
78
80
|
accept: ".json,.yaml,.yml"
|
|
79
|
-
}),
|
|
81
|
+
}), W = (t) => {
|
|
80
82
|
if (t.trim().toLowerCase().startsWith("curl"))
|
|
81
|
-
return
|
|
83
|
+
return y.eventBus.emit("ui:open:command-palette", {
|
|
82
84
|
action: "import-curl-command",
|
|
83
85
|
payload: {
|
|
84
86
|
inputValue: t
|
|
85
87
|
}
|
|
86
88
|
});
|
|
87
89
|
o.value = t;
|
|
88
|
-
},
|
|
89
|
-
|
|
90
|
+
}, E = (t) => {
|
|
91
|
+
w("back", t);
|
|
90
92
|
};
|
|
91
|
-
return (t, e) => (a(),
|
|
92
|
-
disabled:
|
|
93
|
-
loader:
|
|
94
|
-
onSubmit: e[2] || (e[2] = (
|
|
93
|
+
return (t, e) => (a(), b(ae, {
|
|
94
|
+
disabled: B.value,
|
|
95
|
+
loader: s(d),
|
|
96
|
+
onSubmit: e[2] || (e[2] = (r) => x(o.value))
|
|
95
97
|
}, {
|
|
96
98
|
options: u(() => [
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
99
|
+
h("div", ie, [
|
|
100
|
+
M(t.$slots, "fileUpload", { import: x }, () => [
|
|
101
|
+
v(s(P), {
|
|
102
|
+
class: "hover:bg-b-2 relative max-h-8 gap-1.5 p-2 text-xs",
|
|
103
|
+
variant: "outlined",
|
|
104
|
+
onClick: s(N)
|
|
105
|
+
}, {
|
|
106
|
+
default: u(() => [
|
|
107
|
+
e[5] || (e[5] = i(" JSON, or YAML File ", -1)),
|
|
108
|
+
v(s(J), {
|
|
109
|
+
class: "text-c-3",
|
|
110
|
+
icon: "Upload",
|
|
111
|
+
size: "md"
|
|
112
|
+
})
|
|
113
|
+
]),
|
|
114
|
+
_: 1
|
|
115
|
+
}, 8, ["onClick"])
|
|
116
|
+
]),
|
|
117
|
+
v(s(Y), {
|
|
118
|
+
content: n.value ? "Watch mode automatically updates the API client when the OpenAPI URL content changes, ensuring your client remains up-to-date." : "Watch mode is only available for URL imports. When enabled it automatically updates the API client when the OpenAPI URL content changes.",
|
|
115
119
|
placement: "bottom"
|
|
116
120
|
}, {
|
|
117
121
|
default: u(() => [
|
|
118
|
-
|
|
119
|
-
modelValue:
|
|
120
|
-
"onUpdate:modelValue": e[1] || (e[1] = (
|
|
121
|
-
disabled: !
|
|
122
|
+
v(re, {
|
|
123
|
+
modelValue: k.value,
|
|
124
|
+
"onUpdate:modelValue": e[1] || (e[1] = (r) => k.value = r),
|
|
125
|
+
disabled: !n.value
|
|
122
126
|
}, null, 8, ["modelValue", "disabled"])
|
|
123
127
|
]),
|
|
124
128
|
_: 1
|
|
@@ -126,53 +130,53 @@ const ne = { class: "flex justify-between" }, re = { class: "flex w-full flex-ro
|
|
|
126
130
|
])
|
|
127
131
|
]),
|
|
128
132
|
submit: u(() => [
|
|
129
|
-
e[6] || (e[6] =
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
], 64)) : l.value &&
|
|
133
|
+
e[6] || (e[6] = i(" Import ", -1)),
|
|
134
|
+
n.value ? (a(), c(m, { key: 0 }, [
|
|
135
|
+
i("from URL")
|
|
136
|
+
], 64)) : l.value && L.value ? (a(), c(m, { key: 1 }, [
|
|
133
137
|
l.value.title ? (a(), c(m, { key: 0 }, [
|
|
134
|
-
|
|
138
|
+
i(' "' + I(l.value.title) + '" ', 1)
|
|
135
139
|
], 64)) : (a(), c(m, { key: 1 }, [
|
|
136
|
-
|
|
140
|
+
i(I(l.value.version), 1)
|
|
137
141
|
], 64))
|
|
138
142
|
], 64)) : (a(), c(m, { key: 2 }, [
|
|
139
|
-
|
|
143
|
+
i("Collection")
|
|
140
144
|
], 64))
|
|
141
145
|
]),
|
|
142
146
|
default: u(() => [
|
|
143
|
-
!l.value ||
|
|
147
|
+
!l.value || n.value ? (a(), b(le, {
|
|
144
148
|
key: 0,
|
|
145
149
|
modelValue: o.value,
|
|
146
150
|
placeholder: "OpenAPI/Swagger/Postman URL or cURL",
|
|
147
|
-
onDelete:
|
|
148
|
-
"onUpdate:modelValue":
|
|
151
|
+
onDelete: E,
|
|
152
|
+
"onUpdate:modelValue": W
|
|
149
153
|
}, null, 8, ["modelValue"])) : (a(), c(m, { key: 1 }, [
|
|
150
|
-
|
|
151
|
-
e[4] || (e[4] =
|
|
152
|
-
|
|
154
|
+
h("div", se, [
|
|
155
|
+
e[4] || (e[4] = h("div", { class: "text-c-2 min-h-8 w-full py-2 pl-12 text-center text-xs" }, " Preview ", -1)),
|
|
156
|
+
v(s(P), {
|
|
153
157
|
class: "hover:bg-b-2 relative ml-auto max-h-8 gap-1.5 p-2 text-xs",
|
|
154
158
|
variant: "ghost",
|
|
155
|
-
onClick: e[0] || (e[0] = (
|
|
159
|
+
onClick: e[0] || (e[0] = (r) => o.value = "")
|
|
156
160
|
}, {
|
|
157
161
|
default: u(() => [...e[3] || (e[3] = [
|
|
158
|
-
|
|
162
|
+
i(" Clear ", -1)
|
|
159
163
|
])]),
|
|
160
164
|
_: 1
|
|
161
165
|
})
|
|
162
166
|
]),
|
|
163
|
-
l.value && !
|
|
167
|
+
l.value && !n.value ? (a(), b(s(z), {
|
|
164
168
|
key: 0,
|
|
165
169
|
class: "bg-b-2 mt-1 max-h-[40dvh] rounded border px-2 py-1 text-sm",
|
|
166
170
|
content: o.value,
|
|
167
171
|
copy: !1,
|
|
168
|
-
lang:
|
|
169
|
-
}, null, 8, ["content", "lang"])) :
|
|
172
|
+
lang: L.value
|
|
173
|
+
}, null, 8, ["content", "lang"])) : j("", !0)
|
|
170
174
|
], 64))
|
|
171
175
|
]),
|
|
172
|
-
_:
|
|
176
|
+
_: 3
|
|
173
177
|
}, 8, ["disabled", "loader"]));
|
|
174
178
|
}
|
|
175
179
|
});
|
|
176
180
|
export {
|
|
177
|
-
|
|
181
|
+
Ue as default
|
|
178
182
|
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
2
|
+
export type ImportEventData = {
|
|
3
|
+
source: string;
|
|
4
|
+
type: 'url' | 'file' | 'raw';
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* Attempts to add a document to the workspace from a given source, which may be a URL or raw content.
|
|
4
8
|
*
|
|
@@ -12,5 +16,5 @@ import type { WorkspaceStore } from '@scalar/workspace-store/client';
|
|
|
12
16
|
* @param watchMode Whether to enable watch mode (applies only to URL sources).
|
|
13
17
|
* @returns Promise resolving to true if the document was successfully added, or false if the operation failed.
|
|
14
18
|
*/
|
|
15
|
-
export declare const loadDocumentFromSource: (workspaceStore: WorkspaceStore,
|
|
19
|
+
export declare const loadDocumentFromSource: (workspaceStore: WorkspaceStore, importEventData: ImportEventData, name: string, watchMode: boolean) => Promise<boolean>;
|
|
16
20
|
//# sourceMappingURL=load-document-from-source.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load-document-from-source.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/command-palette/helpers/load-document-from-source.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"load-document-from-source.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/command-palette/helpers/load-document-from-source.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AAKpE,MAAM,MAAM,eAAe,GAAG;IAC5B,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,CAAA;CAC7B,CAAA;AAiCD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,sBAAsB,GACjC,gBAAgB,cAAc,EAC9B,iBAAiB,eAAe,EAChC,MAAM,MAAM,EACZ,WAAW,OAAO,KACjB,OAAO,CAAC,OAAO,CAsDjB,CAAA"}
|
|
@@ -1,34 +1,52 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
1
|
+
import { isObject as u } from "@scalar/helpers/object/is-object";
|
|
2
|
+
import { parseJson as c, parseYaml as d } from "@scalar/json-magic/bundle/plugins/browser";
|
|
3
|
+
import { getOpenApiFromPostman as m } from "./get-openapi-from-postman.js";
|
|
4
|
+
import { isPostmanCollection as f } from "./is-postman-collection.js";
|
|
5
|
+
const p = () => ({
|
|
6
|
+
type: "loader",
|
|
7
|
+
validate: f,
|
|
8
|
+
exec: (e) => {
|
|
9
|
+
try {
|
|
10
|
+
const r = m(e);
|
|
11
|
+
return r ? Promise.resolve({
|
|
12
|
+
ok: !0,
|
|
13
|
+
data: r,
|
|
14
|
+
raw: e
|
|
15
|
+
}) : Promise.resolve({
|
|
16
|
+
ok: !1
|
|
17
|
+
});
|
|
18
|
+
} catch {
|
|
19
|
+
return Promise.resolve({
|
|
20
|
+
ok: !1
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}), h = async (e, r, o, l) => {
|
|
25
|
+
const { source: t, type: n } = r;
|
|
6
26
|
if (!t)
|
|
7
27
|
return !1;
|
|
8
|
-
if (
|
|
9
|
-
return await
|
|
28
|
+
if (n === "url")
|
|
29
|
+
return await e.addDocument({
|
|
10
30
|
name: o,
|
|
11
31
|
url: t,
|
|
12
32
|
meta: {
|
|
13
|
-
"x-scalar-watch-mode":
|
|
33
|
+
"x-scalar-watch-mode": l
|
|
14
34
|
}
|
|
15
35
|
});
|
|
16
|
-
if (
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
})(t);
|
|
27
|
-
return e === null ? !1 : await r.addDocument({
|
|
36
|
+
if (n === "file")
|
|
37
|
+
return await e.addDocument({
|
|
38
|
+
name: o,
|
|
39
|
+
path: t
|
|
40
|
+
});
|
|
41
|
+
const s = [p(), c(), d()].find((i) => i.validate(t));
|
|
42
|
+
if (!s)
|
|
43
|
+
return !1;
|
|
44
|
+
const a = await s.exec(t);
|
|
45
|
+
return !(!a.ok || !u(a.data) || !await e.addDocument({
|
|
28
46
|
name: o,
|
|
29
|
-
document:
|
|
30
|
-
});
|
|
47
|
+
document: a.data
|
|
48
|
+
}));
|
|
31
49
|
};
|
|
32
50
|
export {
|
|
33
|
-
|
|
51
|
+
h as loadDocumentFromSource
|
|
34
52
|
};
|
|
@@ -113,19 +113,52 @@ export declare const baseRoutes: CommandPaletteRoute[];
|
|
|
113
113
|
export declare const baseClientActions: [{
|
|
114
114
|
readonly id: "import-from-openapi-swagger-postman-curl";
|
|
115
115
|
readonly name: "Import from OpenAPI/Swagger/Postman/cURL";
|
|
116
|
-
readonly component:
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
116
|
+
readonly component: {
|
|
117
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
118
|
+
workspaceStore: import("@scalar/workspace-store/client").WorkspaceStore;
|
|
119
|
+
eventBus: import("@scalar/workspace-store/events").WorkspaceEventBus;
|
|
120
|
+
fileLoader?: import("@scalar/json-magic/bundle").LoaderPlugin;
|
|
121
|
+
}> & Readonly<{
|
|
122
|
+
onClose?: (() => any) | undefined;
|
|
123
|
+
onBack?: ((keyboardEvent: KeyboardEvent) => any) | undefined;
|
|
124
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
125
|
+
close: () => any;
|
|
126
|
+
back: (keyboardEvent: KeyboardEvent) => any;
|
|
127
|
+
}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
128
|
+
P: {};
|
|
129
|
+
B: {};
|
|
130
|
+
D: {};
|
|
131
|
+
C: {};
|
|
132
|
+
M: {};
|
|
133
|
+
Defaults: {};
|
|
134
|
+
}, Readonly<{
|
|
135
|
+
workspaceStore: import("@scalar/workspace-store/client").WorkspaceStore;
|
|
136
|
+
eventBus: import("@scalar/workspace-store/events").WorkspaceEventBus;
|
|
137
|
+
fileLoader?: import("@scalar/json-magic/bundle").LoaderPlugin;
|
|
138
|
+
}> & Readonly<{
|
|
139
|
+
onClose?: (() => any) | undefined;
|
|
140
|
+
onBack?: ((keyboardEvent: KeyboardEvent) => any) | undefined;
|
|
141
|
+
}>, {}, {}, {}, {}, {}>;
|
|
142
|
+
__isFragment?: never;
|
|
143
|
+
__isTeleport?: never;
|
|
144
|
+
__isSuspense?: never;
|
|
145
|
+
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
123
146
|
workspaceStore: import("@scalar/workspace-store/client").WorkspaceStore;
|
|
124
147
|
eventBus: import("@scalar/workspace-store/events").WorkspaceEventBus;
|
|
148
|
+
fileLoader?: import("@scalar/json-magic/bundle").LoaderPlugin;
|
|
125
149
|
}> & Readonly<{
|
|
126
150
|
onClose?: (() => any) | undefined;
|
|
127
151
|
onBack?: ((keyboardEvent: KeyboardEvent) => any) | undefined;
|
|
128
|
-
}>, {}, {}, {}, {},
|
|
152
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
153
|
+
close: () => any;
|
|
154
|
+
back: (keyboardEvent: KeyboardEvent) => any;
|
|
155
|
+
}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
156
|
+
$slots: {
|
|
157
|
+
fileUpload(props: {
|
|
158
|
+
import: (source: string, type: "file" | "raw") => Promise<void>;
|
|
159
|
+
}): void;
|
|
160
|
+
};
|
|
161
|
+
});
|
|
129
162
|
readonly icon: {
|
|
130
163
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("@scalar/icons/types").ScalarIconProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
131
164
|
P: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-command-palette-state.d.ts","sourceRoot":"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xE,EAAE,EAAE,MAAM,CAAA;CACX,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG,oBAAoB,GAAG,mBAAmB,CAAA;AAI5E;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,oDAAoD;IACpD,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;IACpB,qEAAqE;IACrE,aAAa,EAAE,UAAU,CAAC,oBAAoB,GAAG,IAAI,CAAC,CAAA;IACtD,wDAAwD;IACxD,kBAAkB,EAAE,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC,CAAA;IACvD,yDAAyD;IACzD,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACxB,gDAAgD;IAChD,gBAAgB,EAAE,WAAW,CAC3B;QACE,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,QAAQ,EAAE,CAAC,oBAAoB,GAAG,mBAAmB,CAAC,EAAE,CAAA;KACzD,EAAE,CACJ,CAAA;IACD;;;OAGG;IACH,IAAI,EAAE,WAAW,CAAA;IACjB,kDAAkD;IAClD,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,sDAAsD;IACtD,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACvC,yCAAyC;IACzC,KAAK,EAAE,MAAM,IAAI,CAAA;CAClB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,sBAAsB,GACjC,UAAS,gBAAgB,CAAC,oBAAoB,EAAE,CAAqB,EACrE,SAAQ,gBAAgB,CAAC,mBAAmB,EAAE,CAAc,KAC3D,mBAmGF,CAAA;AAKD;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,mBAAmB,EA4B3C,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"use-command-palette-state.d.ts","sourceRoot":"","sources":["../../../../../src/v2/features/command-palette/hooks/use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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqCiB,CAAA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { loadDocumentFromSource } from './helpers/load-document-from-source.js';
|
|
1
|
+
export { default as CommandPaletteImport } from './components/CommandPaletteImport.vue.js';
|
|
3
2
|
export { default as TheCommandPalette } from './TheCommandPalette.vue.js';
|
|
4
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/command-palette/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/features/command-palette/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,uCAAuC,CAAA;AACvF,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { default as p } from "./TheCommandPalette.vue.js";
|
|
1
|
+
import { default as a } from "./components/CommandPaletteImport.vue.js";
|
|
2
|
+
import { default as o } from "./TheCommandPalette.vue.js";
|
|
4
3
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
t as loadDocumentFromSource
|
|
4
|
+
a as CommandPaletteImport,
|
|
5
|
+
o as TheCommandPalette
|
|
8
6
|
};
|
|
@@ -76,7 +76,7 @@ const E = {
|
|
|
76
76
|
)
|
|
77
77
|
)), S = n(
|
|
78
78
|
() => C(r(e.options)?.hiddenClients)
|
|
79
|
-
), y = "2.
|
|
79
|
+
), y = "2.26.0";
|
|
80
80
|
return (t, a) => e.path && e.method && e.exampleName && u.value ? (l(), x(i(N), {
|
|
81
81
|
key: 0,
|
|
82
82
|
activeEnvironment: e.workspaceStore.workspace["x-scalar-active-environment"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseBodyRaw.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseBodyRaw.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ResponseBodyRaw.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/ResponseSection/ResponseBodyRaw.vue"],"names":[],"mappings":"AAoEA,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAG/E,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,GAAG,CAAA;IACZ,QAAQ,EAAE,kBAAkB,GAAG,SAAS,CAAA;CACzC,CAAC;;AAyGF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ResponseBodyRaw.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-1399120c"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,38 +1,39 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarCodeBlockCopy as
|
|
3
|
-
import { prettyPrintJson as
|
|
4
|
-
import { useCodeMirror as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as u, ref as d, useId as f, toRef as n, createElementBlock as m, openBlock as c, createElementVNode as l, createBlock as p, createCommentVNode as g, unref as a } from "vue";
|
|
2
|
+
import { ScalarCodeBlockCopy as _ } from "@scalar/components";
|
|
3
|
+
import { prettyPrintJson as b } from "@scalar/oas-utils/helpers";
|
|
4
|
+
import { useCodeMirror as k } from "@scalar/use-codemirror";
|
|
5
|
+
const y = { class: "scalar-code-block group/code-block body-raw flex min-h-0 flex-col overflow-hidden p-px outline-none has-focus-visible:outline" }, h = {
|
|
6
6
|
class: "body-raw-scroller custom-scroll relative pr-1",
|
|
7
7
|
tabindex: "0"
|
|
8
|
-
}, M = /* @__PURE__ */
|
|
8
|
+
}, M = /* @__PURE__ */ u({
|
|
9
9
|
__name: "ResponseBodyRaw",
|
|
10
10
|
props: {
|
|
11
11
|
content: {},
|
|
12
12
|
language: {}
|
|
13
13
|
},
|
|
14
|
-
setup(
|
|
15
|
-
const
|
|
16
|
-
codeMirrorRef:
|
|
14
|
+
setup(e) {
|
|
15
|
+
const o = e, t = d(null), s = f(), { codeMirror: i } = k({
|
|
16
|
+
codeMirrorRef: t,
|
|
17
17
|
readOnly: !0,
|
|
18
18
|
lineNumbers: !0,
|
|
19
|
-
content:
|
|
20
|
-
language:
|
|
19
|
+
content: n(() => b(o.content)),
|
|
20
|
+
language: n(() => o.language),
|
|
21
21
|
forceFoldGutter: !0
|
|
22
|
-
}),
|
|
23
|
-
return (
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
content: t(),
|
|
27
|
-
controls: l(a),
|
|
28
|
-
class: "z-context top-2 mr-2"
|
|
29
|
-
}, null, 8, ["content", "controls"])) : _("", !0),
|
|
30
|
-
c("div", v, [
|
|
31
|
-
c("div", {
|
|
22
|
+
}), r = () => i.value?.state.doc.toString() || "";
|
|
23
|
+
return (v, C) => (c(), m("div", y, [
|
|
24
|
+
l("div", h, [
|
|
25
|
+
l("div", {
|
|
32
26
|
ref_key: "codeMirrorRef",
|
|
33
|
-
ref:
|
|
27
|
+
ref: t
|
|
34
28
|
}, null, 512)
|
|
35
|
-
])
|
|
29
|
+
]),
|
|
30
|
+
r() ? (c(), p(a(_), {
|
|
31
|
+
key: 0,
|
|
32
|
+
content: r(),
|
|
33
|
+
"aria-controls": a(s),
|
|
34
|
+
lang: e.language,
|
|
35
|
+
class: "absolute top-2 right-2"
|
|
36
|
+
}, null, 8, ["content", "aria-controls", "lang"])) : g("", !0)
|
|
36
37
|
]));
|
|
37
38
|
}
|
|
38
39
|
});
|
|
@@ -33,7 +33,7 @@ const W = { class: "flex-center relative flex flex-1 flex-col gap-6 p-2 capitali
|
|
|
33
33
|
}));
|
|
34
34
|
}, f = (u) => {
|
|
35
35
|
u?.createNew && g.name === "request" && p();
|
|
36
|
-
}, v = "2.
|
|
36
|
+
}, v = "2.26.0";
|
|
37
37
|
return q(() => a.hotKeys.on(f)), R(() => a.hotKeys.off(f)), (u, e) => (l(), n("div", W, [
|
|
38
38
|
s("div", {
|
|
39
39
|
class: y(["flex h-[calc(100%_-_50px)] flex-col items-center justify-center", {
|