@scalar/api-client 2.3.30 → 2.3.32
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 +36 -0
- package/dist/components/AddressBar/AddressBar.vue2.js +3 -3
- package/dist/components/AddressBar/AddressBarHistory.vue2.js +1 -1
- package/dist/components/CodeInput/CodeInput.vue2.js +1 -1
- package/dist/components/CodeInput/codeVariableWidget.js +4 -4
- package/dist/components/CommandPalette/CommandActionForm.vue.js +2 -2
- package/dist/components/CommandPalette/CommandActionInput.vue.js +2 -2
- package/dist/components/CommandPalette/CommandPaletteCollection.vue.js +2 -2
- package/dist/components/CommandPalette/CommandPaletteExample.vue.js +6 -6
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +5 -5
- package/dist/components/CommandPalette/CommandPaletteImportCurl.vue2.js +7 -7
- package/dist/components/CommandPalette/CommandPaletteServer.vue.js +7 -7
- package/dist/components/CommandPalette/CommandPaletteTag.vue.js +6 -6
- package/dist/components/CommandPalette/CommandPaletteWorkspace.vue.js +4 -4
- package/dist/components/CommandPalette/TheCommandPalette.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/TheCommandPalette.vue2.js +5 -5
- package/dist/components/CommandPalette/WatchModeToggle.vue.js +2 -2
- package/dist/components/DataTable/DataTable.vue.js +5 -5
- package/dist/components/DataTable/DataTableCell.vue.js +2 -2
- package/dist/components/DataTable/DataTableCheckbox.vue.js +2 -2
- package/dist/components/DataTable/DataTableHeader.vue.js +2 -2
- package/dist/components/DataTable/DataTableInput.vue2.js +9 -9
- package/dist/components/DataTable/DataTableInputSelect.vue.js +5 -5
- package/dist/components/DataTable/DataTableRow.vue.js +2 -2
- package/dist/components/DataTable/DataTableText.vue.js +2 -2
- package/dist/components/DataTable/index.js +14 -14
- package/dist/components/EmptyState.vue2.js +2 -2
- package/dist/components/EnvironmentSelector/EnvironmentSelector.vue.js +12 -12
- package/dist/components/Form/Form.vue.js +4 -4
- package/dist/components/Form/LabelInput.vue2.js +4 -4
- package/dist/components/HelpfulLink.vue.js +2 -2
- package/dist/components/HttpMethod/HttpMethod.vue2.js +3 -3
- package/dist/components/IconSelector.vue.js +5 -5
- package/dist/components/ImportCollection/DropEventListener.vue.js +3 -3
- package/dist/components/ImportCollection/ImportCollectionListener.vue.js +2 -2
- package/dist/components/ImportCollection/ImportCollectionModal.vue.js +1 -1
- package/dist/components/ImportCollection/ImportNowButton.vue.js +3 -3
- package/dist/components/ImportCollection/IntegrationLogo.vue.js +2 -2
- package/dist/components/ImportCollection/PrefetchError.vue.js +4 -4
- package/dist/components/ImportCollection/WorkspaceSelector.vue.js +10 -10
- package/dist/components/OpenApiClientButton.vue2.js +4 -4
- package/dist/components/ScalarAsciiArt.vue2.js +3 -3
- package/dist/components/ScalarHotkey.vue.js +2 -2
- package/dist/components/SectionFilter.vue2.js +1 -1
- package/dist/components/SectionFilterButton.vue.js +2 -2
- package/dist/components/Server/ServerDropdown.vue.js +21 -21
- package/dist/components/Server/ServerDropdownItem.vue2.js +4 -4
- package/dist/components/Server/ServerSelector.vue.js +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.js +4 -4
- package/dist/components/Server/ServerVariablesSelect.vue.js +1 -1
- package/dist/components/Server/ServerVariablesTextbox.vue.js +2 -2
- package/dist/components/Server/index.js +6 -6
- package/dist/components/SideNav/DownloadAppButton.vue2.js +5 -5
- package/dist/components/SideNav/SideHelp.vue.js +2 -2
- package/dist/components/SideNav/SideNav.vue.js +5 -5
- package/dist/components/SideNav/SideNavGroup.vue.js +2 -2
- package/dist/components/SideNav/SideNavLink.vue.js +4 -4
- package/dist/components/SideNav/SideNavRouterLink.vue.js +2 -2
- package/dist/components/Sidebar/Actions/DeleteSidebarListElement.vue.js +2 -2
- package/dist/components/Sidebar/Actions/EditSidebarListCollection.vue.js +2 -2
- package/dist/components/Sidebar/Actions/EditSidebarListElement.vue.js +2 -2
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +4 -4
- package/dist/components/Sidebar/SidebarButton.vue.js +3 -3
- package/dist/components/Sidebar/SidebarList.vue.js +2 -2
- package/dist/components/Sidebar/SidebarListElement.vue2.js +9 -9
- package/dist/components/Sidebar/SidebarListElementActions.vue.js +1 -1
- package/dist/components/Sidebar/SidebarToggle.vue.js +3 -3
- package/dist/components/TopNav/TopNav.vue.js +2 -2
- package/dist/components/TopNav/TopNavItem.vue2.js +20 -20
- package/dist/components/ViewLayout/ViewLayout.vue.js +2 -2
- package/dist/components/ViewLayout/ViewLayoutCollapse.vue.js +7 -7
- package/dist/components/ViewLayout/ViewLayoutContent.vue.js +2 -2
- package/dist/components/ViewLayout/ViewLayoutSection.vue.js +3 -3
- package/dist/hooks/useClientConfig.d.ts +3 -3
- package/dist/layouts/App/ApiClientApp.vue.js +10 -10
- package/dist/layouts/App/MainLayout.vue.js +2 -2
- package/dist/layouts/App/create-api-client-app.d.ts +2 -2
- package/dist/layouts/App/create-api-client-app.d.ts.map +1 -1
- package/dist/layouts/App/index.js +5 -4
- package/dist/layouts/Modal/ApiClientModal.vue2.js +2 -2
- package/dist/layouts/Modal/create-api-client-modal.d.ts +4 -4
- package/dist/layouts/Modal/create-api-client-modal.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.js +6 -6
- package/dist/layouts/Web/create-api-client-web.d.ts +2 -2
- package/dist/layouts/Web/create-api-client-web.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +2 -2
- package/dist/libs/create-client.d.ts.map +1 -1
- package/dist/libs/find-request.d.ts.map +1 -1
- package/dist/libs/hot-keys.d.ts +1 -1
- package/dist/libs/send-request/create-request-operation.test.d.ts.map +1 -1
- package/dist/router.js +4 -4
- package/dist/store/active-entities.d.ts.map +1 -1
- package/dist/store/active-entities.js +1 -1
- package/dist/store/import-spec.js +3 -3
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/store.d.ts +2 -2
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +37 -42
- package/dist/store/workspace.d.ts +2 -2
- package/dist/style.css +1 -1
- package/dist/views/Collection/Collection.vue2.js +2 -2
- package/dist/views/Collection/CollectionAuthentication.vue2.js +5 -5
- package/dist/views/Collection/CollectionCookies.vue2.js +2 -2
- package/dist/views/Collection/CollectionEnvironment.vue2.js +2 -2
- package/dist/views/Collection/CollectionInfoForm.vue2.js +2 -2
- package/dist/views/Collection/CollectionNavigation.vue.js +1 -1
- package/dist/views/Collection/CollectionOverview.vue2.js +3 -3
- package/dist/views/Collection/CollectionScripts.vue2.js +2 -2
- package/dist/views/Collection/CollectionServerForm.vue.js +1 -1
- package/dist/views/Collection/CollectionServers.vue2.js +3 -3
- package/dist/views/Collection/CollectionSettings.vue2.js +4 -4
- package/dist/views/Collection/CollectionSync.vue2.js +2 -2
- package/dist/views/Collection/components/MarkdownInput.vue2.js +1 -1
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts +2 -0
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/CodeSnippet.vue.js +16 -14
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts +3 -1
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-har-request.js +74 -31
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts +3 -1
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.js +8 -6
- package/dist/views/Components/CodeSnippet/index.js +8 -8
- package/dist/views/Cookies/CookieForm.vue.js +2 -2
- package/dist/views/Cookies/CookieModal.vue2.js +2 -2
- package/dist/views/Cookies/Cookies.vue2.js +6 -6
- package/dist/views/Environment/Environment.vue2.js +7 -7
- package/dist/views/Environment/EnvironmentColorModal.vue.js +2 -2
- package/dist/views/Environment/EnvironmentColors.vue.js +1 -1
- package/dist/views/Environment/EnvironmentModal.vue.js +7 -7
- package/dist/views/Environment/EnvironmentVariableDropdown.vue.js +10 -10
- package/dist/views/Request/Request.vue2.js +1 -1
- package/dist/views/Request/RequestRoot.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/DeleteRequestAuthModal.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/OAuth2.vue.js +1 -1
- package/dist/views/Request/RequestSection/RequestAuth/OAuthScopesInput.vue.js +5 -5
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuth.vue2.js +10 -10
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +11 -11
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTableInput.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthTab.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestBody.vue2.js +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts +2 -0
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestCodeExample.vue.js +2 -2
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +56 -61
- package/dist/views/Request/RequestSection/RequestParams.vue.js +13 -13
- package/dist/views/Request/RequestSection/RequestPathParams.vue.js +5 -5
- package/dist/views/Request/RequestSection/RequestSection.vue.d.ts.map +1 -1
- package/dist/views/Request/RequestSection/RequestSection.vue.js +3 -3
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +23 -22
- package/dist/views/Request/RequestSection/RequestTable.vue2.js +7 -7
- package/dist/views/Request/RequestSection/RequestTableTooltip.vue2.js +9 -9
- package/dist/views/Request/RequestSidebar.vue2.js +25 -25
- package/dist/views/Request/RequestSidebarItem.vue2.js +25 -25
- package/dist/views/Request/RequestSidebarItemMenu.vue2.js +1 -1
- package/dist/views/Request/RequestSubpageHeader.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/RequestHeaders.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBody.vue2.js +5 -5
- package/dist/views/Request/ResponseSection/ResponseBodyDownload.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBodyInfo.vue.js +2 -2
- package/dist/views/Request/ResponseSection/ResponseBodyPreview.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseBodyRaw.vue2.js +5 -5
- package/dist/views/Request/ResponseSection/ResponseBodyStreaming.vue.js +7 -7
- package/dist/views/Request/ResponseSection/ResponseBodyToggle.vue.js +6 -6
- package/dist/views/Request/ResponseSection/ResponseBodyVirtual.vue.js +4 -4
- package/dist/views/Request/ResponseSection/ResponseCookies.vue.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +15 -15
- package/dist/views/Request/ResponseSection/ResponseHeaders.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseLoadingOverlay.vue2.js +3 -3
- package/dist/views/Request/ResponseSection/ResponseMetaInformation.vue.js +1 -1
- package/dist/views/Request/ResponseSection/ResponseSection.vue2.js +5 -5
- package/dist/views/Request/components/WorkspaceDropdown.vue.js +2 -2
- package/dist/views/Request/consts/mediaTypes.d.ts.map +1 -1
- package/dist/views/Request/consts/mediaTypes.js +1 -0
- package/dist/views/Request/libs/oauth2.d.ts +1 -1
- package/dist/views/Request/libs/oauth2.d.ts.map +1 -1
- package/dist/views/Settings/Settings.vue2.js +3 -3
- package/dist/views/Settings/SettingsGeneral.vue.js +1 -1
- package/dist/views/Settings/components/SettingsAppearance.vue.js +10 -10
- package/dist/views/Settings/components/SettingsSection.vue.js +4 -4
- package/package.json +19 -19
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as de, ref as C, computed as ve, watch as fe, onMounted as pe, onBeforeUnmount as be,
|
|
1
|
+
import { defineComponent as de, ref as C, computed as ve, watch as fe, onMounted as pe, onBeforeUnmount as be, createBlock as _, openBlock as f, withCtx as c, createVNode as u, createTextVNode as B, createElementVNode as b, createElementBlock as O, unref as l, Fragment as L, renderList as K, withDirectives as xe, normalizeClass as G, toDisplayString as J, createCommentVNode as T, withModifiers as he, vShow as Ee, createSlots as Ce } from "vue";
|
|
2
2
|
import { useModal as j, ScalarIcon as H, ScalarButton as ke, ScalarModal as ge } from "@scalar/components";
|
|
3
3
|
import { LibraryIcon as ye } from "@scalar/icons/library";
|
|
4
4
|
import { useToasts as _e } from "@scalar/use-toasts";
|
|
@@ -254,7 +254,7 @@ const Be = { class: "flex-1" }, Le = ["onClick"], Ke = { class: "flex h-5 max-w-
|
|
|
254
254
|
isDefault: !0
|
|
255
255
|
}
|
|
256
256
|
}, null, 8, ["to"])),
|
|
257
|
-
(f(!0), O(
|
|
257
|
+
(f(!0), O(L, null, K(E.value, (n) => {
|
|
258
258
|
var t;
|
|
259
259
|
return f(), O("li", {
|
|
260
260
|
key: n.uid,
|
|
@@ -271,7 +271,7 @@ const Be = { class: "flex-1" }, Le = ["onClick"], Ke = { class: "flex h-5 max-w-
|
|
|
271
271
|
src: n["x-scalar-icon"] || "interface-content-folder"
|
|
272
272
|
}, null, 8, ["src"]),
|
|
273
273
|
b("div", {
|
|
274
|
-
class:
|
|
274
|
+
class: G({
|
|
275
275
|
"rotate-90": l(y)[n.uid]
|
|
276
276
|
})
|
|
277
277
|
}, [
|
|
@@ -282,14 +282,14 @@ const Be = { class: "flex-1" }, Le = ["onClick"], Ke = { class: "flex h-5 max-w-
|
|
|
282
282
|
})
|
|
283
283
|
], 2)
|
|
284
284
|
]),
|
|
285
|
-
|
|
285
|
+
B(" " + J(((t = n.info) == null ? void 0 : t.title) ?? ""), 1)
|
|
286
286
|
], 8, Le),
|
|
287
287
|
xe(b("div", {
|
|
288
|
-
class:
|
|
288
|
+
class: G({
|
|
289
289
|
"before:bg-border before:z-1 relative mb-[.5px] before:pointer-events-none before:absolute before:left-3 before:top-0 before:h-[calc(100%_+_.5px)] before:w-[.5px] last:mb-0 last:before:h-full": Object.keys(n["x-scalar-environments"] || {}).length > 0
|
|
290
290
|
})
|
|
291
291
|
}, [
|
|
292
|
-
(f(!0), O(
|
|
292
|
+
(f(!0), O(L, null, K(n["x-scalar-environments"], (a, r) => (f(), _(P, {
|
|
293
293
|
key: r,
|
|
294
294
|
class: "text-xs",
|
|
295
295
|
collectionId: n.uid,
|
|
@@ -350,7 +350,7 @@ const Be = { class: "flex-1" }, Le = ["onClick"], Ke = { class: "flex h-5 max-w-
|
|
|
350
350
|
hotkey: "N"
|
|
351
351
|
}, {
|
|
352
352
|
title: c(() => o[3] || (o[3] = [
|
|
353
|
-
|
|
353
|
+
B(" Add Environment ")
|
|
354
354
|
])),
|
|
355
355
|
_: 1
|
|
356
356
|
})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as m, ref as u,
|
|
1
|
+
import { defineComponent as m, ref as u, createBlock as d, openBlock as f, unref as p, withCtx as C, createElementVNode as v, createVNode as n } from "vue";
|
|
2
2
|
import { ScalarModal as _ } from "@scalar/components";
|
|
3
3
|
import x from "../../components/Sidebar/Actions/SidebarListElementForm.vue.js";
|
|
4
4
|
import S from "./EnvironmentColors.vue.js";
|
|
@@ -15,7 +15,7 @@ const b = { class: "flex flex-col gap-4" }, M = /* @__PURE__ */ m({
|
|
|
15
15
|
}, i = () => {
|
|
16
16
|
o("submit", e.value), e.value = "";
|
|
17
17
|
};
|
|
18
|
-
return (t, l) => (
|
|
18
|
+
return (t, l) => (f(), d(p(_), {
|
|
19
19
|
size: "xxs",
|
|
20
20
|
state: t.state,
|
|
21
21
|
title: "Edit Environment Color"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as E, ref as v, computed as I, watch as S, openBlock as t,
|
|
1
|
+
import { defineComponent as E, ref as v, computed as I, watch as S, createElementBlock as d, openBlock as t, createCommentVNode as c, Fragment as w, normalizeStyle as f, normalizeClass as s, createBlock as h, unref as m, createElementVNode as n, renderList as j, withDirectives as D, vModelText as V, createVNode as $, nextTick as N } from "vue";
|
|
2
2
|
import { ScalarIcon as p } from "@scalar/components";
|
|
3
3
|
const R = ["onClick"], T = ["placeholder"], U = /* @__PURE__ */ E({
|
|
4
4
|
__name: "EnvironmentColors",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as _, ref as u, computed as h, watch as w,
|
|
1
|
+
import { defineComponent as _, ref as u, computed as h, watch as w, createBlock as m, openBlock as v, unref as i, withCtx as a, createVNode as s, createElementVNode as p, createTextVNode as I, normalizeClass as E, toDisplayString as N } from "vue";
|
|
2
2
|
import { ScalarModal as T, ScalarListbox as $, ScalarButton as C, ScalarIcon as z } from "@scalar/components";
|
|
3
3
|
import { useToasts as B } from "@scalar/use-toasts";
|
|
4
4
|
import D from "../../components/CommandPalette/CommandActionForm.vue.js";
|
|
@@ -53,7 +53,7 @@ const M = { class: "flex items-start gap-2" }, K = /* @__PURE__ */ _({
|
|
|
53
53
|
}, y = () => {
|
|
54
54
|
n.state.hide(), F.commandPalette.emit({ commandName: "Create Collection" });
|
|
55
55
|
};
|
|
56
|
-
return (t, e) => (
|
|
56
|
+
return (t, e) => (v(), m(i(T), {
|
|
57
57
|
bodyClass: "border-t-0 rounded-t-lg",
|
|
58
58
|
size: "xs",
|
|
59
59
|
state: t.state
|
|
@@ -72,15 +72,15 @@ const M = { class: "flex items-start gap-2" }, K = /* @__PURE__ */ _({
|
|
|
72
72
|
placeholder: "Select Type"
|
|
73
73
|
}, {
|
|
74
74
|
default: a(() => [
|
|
75
|
-
d.value.length > 0 ? (
|
|
75
|
+
d.value.length > 0 ? (v(), m(i(C), {
|
|
76
76
|
key: 0,
|
|
77
77
|
class: "hover:bg-b-2 max-h-8 w-fit justify-between gap-1 p-2 text-xs",
|
|
78
78
|
variant: "outlined"
|
|
79
79
|
}, {
|
|
80
80
|
default: a(() => [
|
|
81
81
|
p("span", {
|
|
82
|
-
class:
|
|
83
|
-
},
|
|
82
|
+
class: E(l.value ? "text-c-1" : "text-c-3")
|
|
83
|
+
}, N(l.value ? l.value.label : "Select Collection"), 3),
|
|
84
84
|
s(i(z), {
|
|
85
85
|
class: "text-c-3",
|
|
86
86
|
icon: "ChevronDown",
|
|
@@ -88,7 +88,7 @@ const M = { class: "flex items-start gap-2" }, K = /* @__PURE__ */ _({
|
|
|
88
88
|
})
|
|
89
89
|
]),
|
|
90
90
|
_: 1
|
|
91
|
-
})) : (
|
|
91
|
+
})) : (v(), m(i(C), {
|
|
92
92
|
key: 1,
|
|
93
93
|
class: "hover:bg-b-2 max-h-8 justify-between gap-1 p-2 text-xs",
|
|
94
94
|
variant: "outlined",
|
|
@@ -104,7 +104,7 @@ const M = { class: "flex items-start gap-2" }, K = /* @__PURE__ */ _({
|
|
|
104
104
|
}, 8, ["modelValue", "options"])
|
|
105
105
|
]),
|
|
106
106
|
submit: a(() => e[4] || (e[4] = [
|
|
107
|
-
|
|
107
|
+
I(" Add Environment ")
|
|
108
108
|
])),
|
|
109
109
|
default: a(() => [
|
|
110
110
|
p("div", M, [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as R, ref as m, computed as w, onMounted as I,
|
|
1
|
+
import { defineComponent as R, ref as m, computed as w, onMounted as I, createBlock as v, createCommentVNode as y, openBlock as r, unref as l, withCtx as x, createElementVNode as c, normalizeStyle as b, createElementBlock as u, Fragment as P, renderList as T, normalizeClass as j, createTextVNode as k, toDisplayString as g, createVNode as q } from "vue";
|
|
2
2
|
import { ScalarTeleport as D, ScalarIcon as V, ScalarButton as F } from "@scalar/components";
|
|
3
3
|
import { onClickOutside as K } from "@vueuse/core";
|
|
4
4
|
import O from "fuse.js";
|
|
@@ -71,12 +71,12 @@ const M = {
|
|
|
71
71
|
key: 0,
|
|
72
72
|
class: "scalar-client"
|
|
73
73
|
}, {
|
|
74
|
-
default:
|
|
74
|
+
default: x(() => [
|
|
75
75
|
c("div", {
|
|
76
76
|
ref_key: "dropdownRef",
|
|
77
77
|
ref: p,
|
|
78
78
|
class: "p-0.75 custom-scroll fixed left-0 top-0 flex max-h-[60svh] w-56 flex-col rounded border",
|
|
79
|
-
style:
|
|
79
|
+
style: b(N.value)
|
|
80
80
|
}, [
|
|
81
81
|
i.value.length ? (r(), u("ul", M, [
|
|
82
82
|
(r(!0), u(P, null, T(i.value, (e, a) => (r(), u("li", {
|
|
@@ -88,7 +88,7 @@ const M = {
|
|
|
88
88
|
e.source === "collection" ? (r(), u("span", {
|
|
89
89
|
key: 0,
|
|
90
90
|
class: "h-2.25 w-2.25 min-w-2.25 rounded-full",
|
|
91
|
-
style:
|
|
91
|
+
style: b({
|
|
92
92
|
backgroundColor: l(L)(t.environment)
|
|
93
93
|
})
|
|
94
94
|
}, null, 4)) : (r(), v(l(V), {
|
|
@@ -96,9 +96,9 @@ const M = {
|
|
|
96
96
|
class: "-ml-1/2 h-2.5 w-2.5",
|
|
97
97
|
icon: "Globe"
|
|
98
98
|
})),
|
|
99
|
-
|
|
99
|
+
k(" " + g(e.key), 1)
|
|
100
100
|
]),
|
|
101
|
-
c("span", H,
|
|
101
|
+
c("span", H, g(e.value), 1)
|
|
102
102
|
], 10, Q))), 128))
|
|
103
103
|
])) : l(f) ? (r(), v(l(F), {
|
|
104
104
|
key: 1,
|
|
@@ -106,20 +106,20 @@ const M = {
|
|
|
106
106
|
variant: "secondary",
|
|
107
107
|
onClick: A
|
|
108
108
|
}, {
|
|
109
|
-
default:
|
|
109
|
+
default: x(() => [
|
|
110
110
|
q(l(V), {
|
|
111
111
|
icon: "Add",
|
|
112
112
|
size: "sm"
|
|
113
113
|
}),
|
|
114
|
-
o[0] || (o[0] =
|
|
114
|
+
o[0] || (o[0] = k(" Add Variable "))
|
|
115
115
|
]),
|
|
116
116
|
_: 1
|
|
117
|
-
})) :
|
|
117
|
+
})) : y("", !0),
|
|
118
118
|
o[1] || (o[1] = c("div", { class: "-z-1 bg-b-1 brightness-lifted absolute inset-0 rounded shadow-lg" }, null, -1))
|
|
119
119
|
], 4)
|
|
120
120
|
]),
|
|
121
121
|
_: 1
|
|
122
|
-
})) :
|
|
122
|
+
})) : y("", !0);
|
|
123
123
|
}
|
|
124
124
|
});
|
|
125
125
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as E, computed as U,
|
|
1
|
+
import { defineComponent as E, computed as U, createElementBlock as f, createBlock as u, unref as e, openBlock as s, normalizeClass as k, createElementVNode as P, createVNode as c, isRef as W, withCtx as y, createCommentVNode as H } from "vue";
|
|
2
2
|
import S from "../../components/EmptyState.vue.js";
|
|
3
3
|
import L from "../../components/ViewLayout/ViewLayout.vue.js";
|
|
4
4
|
import N from "../../components/ViewLayout/ViewLayoutContent.vue.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Q, ref as m, computed as F, onMounted as G, onBeforeUnmount as K, watch as X,
|
|
1
|
+
import { defineComponent as Q, ref as m, computed as F, onMounted as G, onBeforeUnmount as K, watch as X, createElementBlock as Y, openBlock as d, normalizeClass as g, unref as r, createBlock as B, createCommentVNode as T, createElementVNode as A, isRef as Z, createVNode as ee } from "vue";
|
|
2
2
|
import { isDefined as te } from "@scalar/oas-utils/helpers";
|
|
3
3
|
import { safeJSON as oe } from "@scalar/object-utils/parse";
|
|
4
4
|
import { useToasts as re } from "@scalar/use-toasts";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as b,
|
|
1
|
+
import { defineComponent as b, createBlock as y, openBlock as S, unref as s, withCtx as n, createElementVNode as r, toDisplayString as i, createVNode as m, createTextVNode as u } from "vue";
|
|
2
2
|
import { ScalarModal as _, ScalarButton as d } from "@scalar/components";
|
|
3
3
|
import { useWorkspace as g } from "../../../../store/store.js";
|
|
4
4
|
const k = { class: "text-c-2 mb-4 text-sm leading-normal" }, C = { class: "flex justify-between gap-2" }, B = /* @__PURE__ */ b({
|
|
@@ -13,7 +13,7 @@ const k = { class: "text-c-2 mb-4 text-sm leading-normal" }, C = { class: "flex
|
|
|
13
13
|
var e;
|
|
14
14
|
(e = l.scheme) != null && e.id && h.delete(l.scheme.id), c("delete");
|
|
15
15
|
};
|
|
16
|
-
return (e, t) => (
|
|
16
|
+
return (e, t) => (S(), y(s(_), {
|
|
17
17
|
size: "xxs",
|
|
18
18
|
state: e.state,
|
|
19
19
|
title: "Delete Security Scheme"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as S,
|
|
1
|
+
import { defineComponent as S, createElementBlock as V, openBlock as s, Fragment as U, createBlock as k, createCommentVNode as p, createVNode as a, unref as r, withCtx as o, mergeProps as m, createTextVNode as d, createElementVNode as $ } from "vue";
|
|
2
2
|
import { useLoadingState as T, ScalarButton as b } from "@scalar/components";
|
|
3
3
|
import { pkceOptions as P } from "@scalar/oas-utils/entities/spec";
|
|
4
4
|
import { useToasts as L } from "@scalar/use-toasts";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as j, computed as k, resolveComponent as N,
|
|
1
|
+
import { defineComponent as j, computed as k, resolveComponent as N, createBlock as h, openBlock as u, unref as o, withCtx as c, createElementVNode as n, createVNode as a, normalizeClass as z, toDisplayString as m, createCommentVNode as C, withModifiers as A, createTextVNode as V, createElementBlock as B, Fragment as T, renderList as E } from "vue";
|
|
2
2
|
import { Disclosure as F, DisclosureButton as I, DisclosurePanel as R } from "@headlessui/vue";
|
|
3
3
|
import { ScalarIcon as L } from "@scalar/components";
|
|
4
4
|
import D from "../../../../components/DataTable/DataTableCell.vue.js";
|
|
@@ -74,10 +74,10 @@ const U = { class: "flex h-fit w-full" }, q = { class: "flex-1" }, G = { class:
|
|
|
74
74
|
onClick: A(_, ["stop"])
|
|
75
75
|
}, {
|
|
76
76
|
default: c(() => l[0] || (l[0] = [
|
|
77
|
-
|
|
77
|
+
V(" Select All ")
|
|
78
78
|
])),
|
|
79
79
|
_: 1
|
|
80
|
-
})) :
|
|
80
|
+
})) : C("", !0),
|
|
81
81
|
a(o(L), {
|
|
82
82
|
class: "text-c-3 group-hover/scopes-accordion:text-c-2",
|
|
83
83
|
icon: s ? "ChevronDown" : "ChevronRight",
|
|
@@ -101,8 +101,8 @@ const U = { class: "flex h-fit w-full" }, q = { class: "flex-1" }, G = { class:
|
|
|
101
101
|
default: c(() => [
|
|
102
102
|
i ? (u(), B("div", J, [
|
|
103
103
|
n("span", K, m(f), 1),
|
|
104
|
-
|
|
105
|
-
])) :
|
|
104
|
+
V(" – " + m(i), 1)
|
|
105
|
+
])) : C("", !0)
|
|
106
106
|
]),
|
|
107
107
|
_: 2
|
|
108
108
|
}, 1024),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as I, useId as L, ref as D, computed as h,
|
|
1
|
+
import { defineComponent as I, useId as L, ref as D, computed as h, createBlock as N, openBlock as m, withCtx as d, createVNode as f, unref as r, createElementVNode as i, createElementBlock as p, Fragment as g, createTextVNode as k, toDisplayString as x, createCommentVNode as z, normalizeClass as E } from "vue";
|
|
2
2
|
import { useModal as K, ScalarComboboxMultiselect as W, ScalarButton as F, ScalarIcon as G } from "@scalar/components";
|
|
3
3
|
import { isDefined as H } from "@scalar/oas-utils/helpers";
|
|
4
4
|
import J from "../../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
@@ -103,11 +103,11 @@ const le = ["id"], oe = { class: "-mx-1 flex flex-1" }, ne = { class: "text-c-1"
|
|
|
103
103
|
id: r(R),
|
|
104
104
|
class: "inline-flex items-center gap-1"
|
|
105
105
|
}, [
|
|
106
|
-
i("span", null,
|
|
106
|
+
i("span", null, x(e.title), 1),
|
|
107
107
|
b.value ? (m(), p("span", {
|
|
108
108
|
key: 0,
|
|
109
|
-
class:
|
|
110
|
-
},
|
|
109
|
+
class: E(["text-c-3 text-xs leading-[normal]", { "text-c-1": b.value.text === "Required" }])
|
|
110
|
+
}, x(b.value.text), 3)) : z("", !0)
|
|
111
111
|
], 8, le)
|
|
112
112
|
]),
|
|
113
113
|
actions: d(() => [
|
|
@@ -134,14 +134,14 @@ const le = ["id"], oe = { class: "-mx-1 flex flex-1" }, ne = { class: "text-c-1"
|
|
|
134
134
|
var o;
|
|
135
135
|
return [
|
|
136
136
|
i("div", ne, [
|
|
137
|
-
a.value.length === 0 ? (m(), p(
|
|
137
|
+
a.value.length === 0 ? (m(), p(g, { key: 0 }, [
|
|
138
138
|
t[2] || (t[2] = i("span", { class: "sr-only" }, "Select", -1)),
|
|
139
|
-
t[3] || (t[3] =
|
|
140
|
-
], 64)) : a.value.length === 1 ? (m(), p(
|
|
139
|
+
t[3] || (t[3] = k(" Auth Type "))
|
|
140
|
+
], 64)) : a.value.length === 1 ? (m(), p(g, { key: 1 }, [
|
|
141
141
|
t[4] || (t[4] = i("span", { class: "sr-only" }, "Selected Auth Type:", -1)),
|
|
142
|
-
|
|
143
|
-
], 64)) : (m(), p(
|
|
144
|
-
t[5] || (t[5] =
|
|
142
|
+
k(" " + x((o = a.value[0]) == null ? void 0 : o.label), 1)
|
|
143
|
+
], 64)) : (m(), p(g, { key: 2 }, [
|
|
144
|
+
t[5] || (t[5] = k(" Multiple ")),
|
|
145
145
|
t[6] || (t[6] = i("span", { class: "sr-only" }, "Auth Types Selected", -1))
|
|
146
146
|
], 64))
|
|
147
147
|
]),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as b, ref as m, computed as y, watch as k,
|
|
1
|
+
import { defineComponent as b, ref as m, computed as y, watch as k, createElementBlock as s, openBlock as o, withModifiers as w, createCommentVNode as d, createBlock as x, createVNode as v, Fragment as S, renderList as g, normalizeClass as p, createElementVNode as h, toDisplayString as C, unref as a, withCtx as V } from "vue";
|
|
2
2
|
import { useModal as _ } from "@scalar/components";
|
|
3
3
|
import O from "./DeleteRequestAuthModal.vue.js";
|
|
4
4
|
import z from "./RequestAuthTab.vue.js";
|
|
@@ -43,28 +43,28 @@ const N = {
|
|
|
43
43
|
}, ["prevent"]))
|
|
44
44
|
}, [
|
|
45
45
|
e.selectedSchemeOptions.length > 1 ? (o(), s("div", N, [
|
|
46
|
-
(o(!0), s(
|
|
46
|
+
(o(!0), s(S, null, g(e.selectedSchemeOptions, (l, n) => (o(), s("div", {
|
|
47
47
|
key: l.id,
|
|
48
|
-
class:
|
|
48
|
+
class: p(["z-1 relative -mb-[var(--scalar-border-width)] flex h-8 cursor-pointer", [t.value === n ? "text-c-1" : "text-c-3"]])
|
|
49
49
|
}, [
|
|
50
|
-
|
|
50
|
+
h("button", {
|
|
51
51
|
class: "floating-bg relative cursor-pointer border-b-[1px] border-transparent py-1 text-sm font-medium",
|
|
52
52
|
type: "button",
|
|
53
53
|
onClick: (D) => t.value = n
|
|
54
54
|
}, [
|
|
55
|
-
|
|
55
|
+
h("span", A, C(l.label), 1)
|
|
56
56
|
], 8, $),
|
|
57
|
-
t.value === n ? (o(), s("div", B)) :
|
|
57
|
+
t.value === n ? (o(), s("div", B)) : d("", !0)
|
|
58
58
|
], 2))), 128))
|
|
59
|
-
])) :
|
|
60
|
-
u.value.length ? (o(),
|
|
59
|
+
])) : d("", !0),
|
|
60
|
+
u.value.length ? (o(), x(a(M), {
|
|
61
61
|
key: 1,
|
|
62
|
-
class:
|
|
62
|
+
class: p(["flex-1", e.layout === "reference" && "border-0"]),
|
|
63
63
|
columns: [""],
|
|
64
64
|
presentational: ""
|
|
65
65
|
}, {
|
|
66
66
|
default: V(() => [
|
|
67
|
-
|
|
67
|
+
v(z, {
|
|
68
68
|
collection: e.collection,
|
|
69
69
|
envVariables: e.envVariables,
|
|
70
70
|
environment: e.environment,
|
|
@@ -76,7 +76,7 @@ const N = {
|
|
|
76
76
|
]),
|
|
77
77
|
_: 1
|
|
78
78
|
}, 8, ["class"])) : (o(), s("div", q, " No authentication selected ")),
|
|
79
|
-
|
|
79
|
+
v(O, {
|
|
80
80
|
scheme: f.value,
|
|
81
81
|
state: a(c),
|
|
82
82
|
onClose: r[0] || (r[0] = (l) => a(c).hide())
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as p, useId as m,
|
|
1
|
+
import { defineComponent as p, useId as m, createBlock as V, openBlock as f, mergeProps as c, unref as r, withCtx as s, renderSlot as u, createElementVNode as y } from "vue";
|
|
2
2
|
import b from "../../../../components/DataTable/DataTableInput.vue.js";
|
|
3
3
|
const v = ["for"], k = /* @__PURE__ */ p({
|
|
4
4
|
__name: "RequestAuthDataTableInput",
|
|
@@ -15,7 +15,7 @@ const v = ["for"], k = /* @__PURE__ */ p({
|
|
|
15
15
|
emits: ["update:modelValue", "inputFocus", "inputBlur", "selectVariable"],
|
|
16
16
|
setup(i, { emit: d }) {
|
|
17
17
|
const e = i, a = d, l = m();
|
|
18
|
-
return (o, n) => (
|
|
18
|
+
return (o, n) => (f(), V(b, c({
|
|
19
19
|
id: r(l),
|
|
20
20
|
canAddCustomEnumValue: !e.readOnly,
|
|
21
21
|
containerClass: e.containerClass
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as F, computed as N, ref as P,
|
|
1
|
+
import { defineComponent as F, computed as N, ref as P, createElementBlock as n, openBlock as a, Fragment as p, renderList as g, createBlock as $, createCommentVNode as v, unref as d, normalizeClass as C, withCtx as l, createVNode as u, createTextVNode as y, toDisplayString as m, mergeProps as V, createElementVNode as T, capitalize as _ } from "vue";
|
|
2
2
|
import { useWorkspace as j } from "../../../../store/store.js";
|
|
3
3
|
import q from "./OAuth2.vue.js";
|
|
4
4
|
import w from "./RequestAuthDataTableInput.vue.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as ee, computed as h, ref as ne, watch as $,
|
|
1
|
+
import { defineComponent as ee, computed as h, ref as ne, watch as $, createBlock as g, openBlock as b, withCtx as m, createVNode as c, createCommentVNode as ae, unref as v, createElementVNode as k, toDisplayString as F, createElementBlock as j, Fragment as te, createTextVNode as H, nextTick as oe } from "vue";
|
|
2
2
|
import { ScalarListbox as X, ScalarButton as D, ScalarIcon as C } from "@scalar/components";
|
|
3
3
|
import { requestExampleParametersSchema as Y } from "@scalar/oas-utils/entities/spec";
|
|
4
4
|
import { canMethodHaveBody as le } from "@scalar/oas-utils/helpers";
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { Collection, Operation, RequestExample, Server } from '@scalar/oas-utils/entities/spec';
|
|
2
2
|
import type { Workspace } from '@scalar/oas-utils/entities/workspace';
|
|
3
|
+
import type { EnvVariables } from '../../../libs/env-helpers';
|
|
3
4
|
type __VLS_Props = {
|
|
4
5
|
collection: Collection;
|
|
5
6
|
example: RequestExample;
|
|
6
7
|
operation: Operation;
|
|
7
8
|
server: Server | undefined;
|
|
8
9
|
workspace: Workspace;
|
|
10
|
+
environment: EnvVariables;
|
|
9
11
|
};
|
|
10
12
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
11
13
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestCodeExample.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestCodeExample.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestCodeExample.vue.d.ts","sourceRoot":"","sources":["../../../../src/views/Request/RequestSection/RequestCodeExample.vue"],"names":[],"mappings":"AA8RA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,cAAc,EAEd,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAOrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAMtD,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,OAAO,EAAE,cAAc,CAAA;IACvB,SAAS,EAAE,SAAS,CAAA;IACpB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,EAAE,SAAS,CAAA;IACpB,WAAW,EAAE,YAAY,CAAA;CAC1B,CAAC;;AA6WF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestCodeExample.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const r = /* @__PURE__ */
|
|
3
|
+
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-01b51127"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|