@scalar/api-client 2.18.4 → 2.19.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 +37 -0
- package/dist/components/AddressBar/AddressBar.vue2.js +5 -5
- package/dist/components/CommandPalette/CommandPaletteImport.vue.js +6 -6
- package/dist/components/ImportCollection/DropEventListener.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/DropEventListener.vue.js +26 -28
- package/dist/components/ImportCollection/utils/get-openapi-version.d.ts.map +1 -1
- package/dist/components/ImportCollection/utils/import-collection.d.ts +1 -1
- package/dist/components/ImportCollection/utils/import-collection.d.ts.map +1 -1
- package/dist/components/Search/useSearch.d.ts.map +1 -1
- package/dist/components/Search/useSearch.js +16 -16
- package/dist/components/Server/index.d.ts +1 -1
- package/dist/components/Server/index.d.ts.map +1 -1
- package/dist/components/Server/index.js +6 -6
- package/dist/components/SideNav/SideNav.vue.js +3 -3
- package/dist/components/Sidebar/index.d.ts +1 -2
- package/dist/components/Sidebar/index.d.ts.map +1 -1
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/useResponseBody.d.ts +1 -1
- package/dist/hooks/useResponseBody.d.ts.map +1 -1
- package/dist/hooks/useResponseBody.js +4 -4
- package/dist/hooks/useSidebar.d.ts +1 -1
- package/dist/hooks/useSidebar.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/layouts/App/ApiClientApp.vue.js +5 -5
- package/dist/layouts/App/MainLayout.vue.js +4 -4
- package/dist/layouts/App/create-api-client-app.d.ts +12 -12
- package/dist/layouts/App/index.d.ts +1 -1
- package/dist/layouts/App/index.d.ts.map +1 -1
- package/dist/layouts/Web/ApiClientWeb.vue.js +6 -6
- package/dist/layouts/Web/create-api-client-web.d.ts +12 -12
- package/dist/layouts/Web/index.d.ts +1 -1
- package/dist/layouts/Web/index.d.ts.map +1 -1
- package/dist/libs/create-client.d.ts +12 -12
- package/dist/libs/get-request-uid-by-path-method.d.ts +1 -1
- package/dist/libs/get-request-uid-by-path-method.d.ts.map +1 -1
- package/dist/libs/hot-keys.d.ts +2 -2
- package/dist/libs/hot-keys.d.ts.map +1 -1
- package/dist/libs/importers/curl.d.ts.map +1 -1
- package/dist/libs/index.d.ts +14 -15
- package/dist/libs/index.d.ts.map +1 -1
- package/dist/libs/index.js +33 -33
- package/dist/libs/parse-curl.js +4 -4
- package/dist/libs/send-request/create-fetch-body.d.ts +1 -1
- package/dist/libs/send-request/create-fetch-body.d.ts.map +1 -1
- package/dist/libs/send-request/create-fetch-body.js +1 -1
- package/dist/libs/send-request/create-fetch-headers.d.ts.map +1 -1
- package/dist/libs/send-request/create-fetch-query-params.d.ts.map +1 -1
- package/dist/libs/send-request/create-fetch-query-params.js +2 -1
- package/dist/libs/send-request/index.d.ts +1 -1
- package/dist/libs/send-request/index.d.ts.map +1 -1
- package/dist/libs/send-request/index.js +4 -4
- package/dist/libs/send-request/set-request-cookies.d.ts.map +1 -1
- package/dist/libs/send-request/set-request-cookies.js +4 -4
- package/dist/store/active-entities.d.ts +1 -1
- package/dist/store/collections.d.ts +1 -1
- package/dist/store/collections.d.ts.map +1 -1
- package/dist/store/collections.js +4 -4
- package/dist/store/environment.d.ts +1 -1
- package/dist/store/environment.d.ts.map +1 -1
- package/dist/store/environment.js +4 -4
- package/dist/store/import-spec.d.ts +2 -2
- package/dist/store/import-spec.d.ts.map +1 -1
- package/dist/store/index.d.ts +1 -1
- package/dist/store/index.d.ts.map +1 -1
- package/dist/store/request-example.d.ts +1 -1
- package/dist/store/request-example.d.ts.map +1 -1
- package/dist/store/request-example.js +6 -6
- package/dist/store/requests.d.ts +1 -1
- package/dist/store/requests.d.ts.map +1 -1
- package/dist/store/requests.js +8 -8
- package/dist/store/security-schemes.d.ts +1 -1
- package/dist/store/security-schemes.d.ts.map +1 -1
- package/dist/store/security-schemes.js +4 -4
- package/dist/store/servers.d.ts +1 -1
- package/dist/store/servers.d.ts.map +1 -1
- package/dist/store/servers.js +4 -4
- package/dist/store/store.d.ts +12 -12
- package/dist/store/tags.d.ts +1 -1
- package/dist/store/tags.d.ts.map +1 -1
- package/dist/store/tags.js +5 -5
- package/dist/store/workspace.d.ts +13 -13
- package/dist/store/workspace.d.ts.map +1 -1
- package/dist/store/workspace.js +7 -7
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +4 -5
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +17 -16
- package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.d.ts +3 -3
- package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-cookie-header.js +22 -22
- package/dist/v2/blocks/operation-block/helpers/build-request-parameters.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-parameters.js +14 -13
- package/dist/v2/blocks/operation-block/helpers/build-request.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request.js +43 -41
- package/dist/v2/blocks/operation-block/helpers/filter-global-cookies.d.ts +14 -0
- package/dist/v2/blocks/operation-block/helpers/filter-global-cookies.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/filter-global-cookies.js +14 -0
- package/dist/v2/blocks/operation-block/helpers/get-resolved-url.d.ts +25 -0
- package/dist/v2/blocks/operation-block/helpers/get-resolved-url.d.ts.map +1 -0
- package/dist/v2/blocks/operation-block/helpers/get-resolved-url.js +17 -0
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts +10 -0
- 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 +29 -25
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +6 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.js +27 -23
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts +10 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.js +48 -39
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-parameters.js +49 -46
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.d.ts +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/process-server-url.js +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts +6 -2
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/RequestBlock.vue.js +2 -2
- package/dist/v2/blocks/request-block/RequestBlock.vue2.js +200 -115
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts +4 -4
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.js +21 -17
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts +16 -10
- package/dist/v2/blocks/request-block/components/RequestParams.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestParams.vue.js +32 -45
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts +16 -13
- package/dist/v2/blocks/request-block/components/RequestTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTable.vue.js +4 -4
- package/dist/v2/blocks/request-block/components/RequestTable.vue2.js +32 -33
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts +33 -18
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +106 -106
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts +10 -5
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/create-parameter-handlers.js +60 -31
- package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts +41 -0
- package/dist/v2/blocks/request-block/helpers/get-default-headers.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/get-default-headers.js +25 -0
- package/dist/v2/blocks/request-block/helpers/group-by.d.ts +1 -1
- package/dist/v2/blocks/request-block/helpers/group-by.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/helpers/group-by.js +6 -3
- package/dist/v2/blocks/request-block/helpers/is-param-disabled.d.ts +13 -0
- package/dist/v2/blocks/request-block/helpers/is-param-disabled.d.ts.map +1 -0
- package/dist/v2/blocks/request-block/helpers/is-param-disabled.js +7 -0
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.js +1 -1
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +61 -63
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +1 -2
- 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/OAuth2.vue.d.ts +2 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuthScopesInput.vue.d.ts +2 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +1 -2
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +2 -2
- package/dist/v2/components/code-input/CodeInput.vue.d.ts +2 -0
- package/dist/v2/components/code-input/CodeInput.vue.d.ts.map +1 -1
- package/dist/v2/components/code-input/CodeInput.vue.js +2 -2
- package/dist/v2/components/code-input/CodeInput.vue2.js +57 -51
- package/dist/v2/features/app/App.vue.js +6 -6
- package/dist/v2/features/app/app-events.d.ts +5 -9
- package/dist/v2/features/app/app-events.d.ts.map +1 -1
- package/dist/v2/features/app/app-events.js +146 -120
- package/dist/v2/features/app/app-state.d.ts.map +1 -1
- package/dist/v2/features/app/app-state.js +69 -71
- package/dist/v2/features/app/components/AppSidebar.vue.js +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue2.js +5 -5
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.js +1 -1
- package/dist/v2/features/modal/Modal.vue2.js +21 -22
- package/dist/v2/features/modal/index.d.ts +1 -1
- package/dist/v2/features/modal/index.d.ts.map +1 -1
- package/dist/v2/features/modal/index.js +4 -4
- package/dist/v2/features/modal/modal-events.d.ts +13 -0
- package/dist/v2/features/modal/modal-events.d.ts.map +1 -0
- package/dist/v2/features/modal/modal-events.js +31 -0
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +30 -43
- package/dist/v2/workspace-events.d.ts +25 -0
- package/dist/v2/workspace-events.d.ts.map +1 -0
- package/dist/v2/workspace-events.js +202 -0
- package/dist/views/Components/CodeSnippet/helpers/convert-to-har-request.d.ts.map +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts +1 -1
- package/dist/views/Components/CodeSnippet/helpers/get-snippet.d.ts.map +1 -1
- package/dist/views/Cookies/Cookies.vue2.js +3 -3
- package/dist/views/Environment/handle-drag.d.ts +1 -1
- package/dist/views/Environment/handle-drag.d.ts.map +1 -1
- package/dist/views/Request/RequestRoot.vue2.js +9 -9
- package/dist/views/Request/RequestSection/RequestAuth/RequestAuthDataTable.vue2.js +4 -4
- package/dist/views/Request/RequestSection/RequestCodeExample.vue2.js +4 -4
- package/dist/views/Request/RequestSection/RequestSection.vue2.js +5 -5
- package/dist/views/Request/RequestSection/helpers/update-scheme.d.ts.map +1 -1
- package/dist/views/Request/RequestSidebar.vue2.js +6 -6
- package/dist/views/Request/RequestSidebarItem.vue2.js +6 -6
- package/dist/views/Request/RequestSubpageHeader.vue2.js +4 -4
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/dist/views/Request/ResponseSection/index.d.ts +1 -1
- package/dist/views/Request/ResponseSection/index.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/index.js +4 -4
- package/dist/views/Request/consts/index.d.ts +2 -3
- package/dist/views/Request/consts/index.d.ts.map +1 -1
- package/dist/views/Request/consts/new-auth-options.d.ts +1 -1
- package/dist/views/Request/consts/new-auth-options.d.ts.map +1 -1
- package/dist/views/Request/handle-drag.d.ts +1 -1
- package/dist/views/Request/handle-drag.d.ts.map +1 -1
- package/dist/views/Request/hooks/useOpenApiWatcher.d.ts.map +1 -1
- package/dist/views/Request/hooks/useOpenApiWatcher.js +14 -14
- package/dist/views/Request/libs/auth.d.ts +1 -1
- package/dist/views/Request/libs/auth.d.ts.map +1 -1
- package/dist/views/Request/libs/index.d.ts +3 -3
- package/dist/views/Request/libs/index.d.ts.map +1 -1
- package/dist/views/Request/libs/oauth2.js +1 -1
- package/dist/views/Request/libs/watch-mode.js +6 -6
- package/dist/views/Request/types/index.d.ts +1 -1
- package/dist/views/Request/types/index.d.ts.map +1 -1
- package/package.json +13 -13
- package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts +0 -18
- package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts.map +0 -1
- package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.js +0 -39
- package/dist/v2/features/operation/helpers/get-operation-header.js +0 -12
|
@@ -1,175 +1,175 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import { ScalarIconTrash as
|
|
4
|
-
import { unpackProxyObject as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
const P = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center justify-center overflow-hidden p-1" }, G = {
|
|
1
|
+
import { defineComponent as q, ref as x, watch as y, computed as o, createBlock as m, openBlock as d, unref as i, normalizeClass as E, withCtx as s, createVNode as u, createCommentVNode as f, createElementBlock as R, Fragment as N, createElementVNode as h, toDisplayString as P } from "vue";
|
|
2
|
+
import { ScalarButton as C, ScalarIconButton as j, ScalarIcon as G } from "@scalar/components";
|
|
3
|
+
import { ScalarIconTrash as K, ScalarIconGlobe as O } from "@scalar/icons";
|
|
4
|
+
import { unpackProxyObject as B } from "@scalar/workspace-store/helpers/unpack-proxy";
|
|
5
|
+
import { getFileName as W } from "../helpers/files.js";
|
|
6
|
+
import { validateParameter as A } from "../helpers/validate-parameter.js";
|
|
7
|
+
import D from "./RequestTableTooltip.vue.js";
|
|
8
|
+
import H from "../../../components/data-table/DataTableRow.vue.js";
|
|
9
|
+
import J from "../../../components/data-table/DataTableCheckbox.vue.js";
|
|
10
|
+
import g from "../../../components/data-table/DataTableCell.vue.js";
|
|
11
|
+
import F from "../../../components/code-input/CodeInput.vue.js";
|
|
12
|
+
const L = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center justify-center overflow-hidden p-1" }, M = {
|
|
14
13
|
key: 1,
|
|
15
14
|
class: "p-0.5"
|
|
16
|
-
},
|
|
15
|
+
}, ne = /* @__PURE__ */ q({
|
|
17
16
|
__name: "RequestTableRow",
|
|
18
17
|
props: {
|
|
19
18
|
data: {},
|
|
20
|
-
isReadOnly: { type: Boolean },
|
|
21
19
|
hasCheckboxDisabled: { type: Boolean },
|
|
22
20
|
invalidParams: {},
|
|
23
21
|
label: {},
|
|
24
22
|
environment: {},
|
|
25
23
|
showUploadButton: { type: Boolean }
|
|
26
24
|
},
|
|
27
|
-
emits: ["
|
|
28
|
-
setup(e, { emit:
|
|
29
|
-
const
|
|
25
|
+
emits: ["upsertRow", "deleteRow", "uploadFile", "removeFile", "navigate"],
|
|
26
|
+
setup(e, { emit: S }) {
|
|
27
|
+
const r = S, c = x(e.data.name ?? ""), n = x(B(e.data.value) ?? ""), v = x(e.data.isDisabled ?? !1);
|
|
28
|
+
y(
|
|
29
|
+
() => e.data.name,
|
|
30
|
+
(l) => c.value = l ?? ""
|
|
31
|
+
), y(
|
|
32
|
+
() => e.data.value,
|
|
33
|
+
(l) => n.value = B(l) ?? ""
|
|
34
|
+
), y(
|
|
35
|
+
() => e.data.isDisabled,
|
|
36
|
+
(l) => v.value = l ?? !1
|
|
37
|
+
);
|
|
38
|
+
const k = o(() => n.value instanceof File), w = o(
|
|
39
|
+
() => (k.value ? W(n.value) : n.value) ?? ""
|
|
40
|
+
), z = o(() => e.data.schema?.default), I = o(() => e.data.schema?.enum), T = o(
|
|
30
41
|
() => e.data.schema && "minimum" in e.data.schema ? e.data.schema.minimum : void 0
|
|
31
|
-
),
|
|
42
|
+
), $ = o(
|
|
32
43
|
() => e.data.schema && "maximum" in e.data.schema ? e.data.schema.maximum : void 0
|
|
33
|
-
),
|
|
44
|
+
), U = o(
|
|
34
45
|
() => e.data.schema && "type" in e.data.schema ? e.data.schema.type : void 0
|
|
35
|
-
),
|
|
36
|
-
() =>
|
|
37
|
-
),
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
});
|
|
46
|
-
return (n, a) => (m(), s(t(N), {
|
|
46
|
+
), V = o(
|
|
47
|
+
() => A(e.data.schema, n.value)
|
|
48
|
+
), b = (l) => {
|
|
49
|
+
l.name !== void 0 && (c.value = l.name), l.value !== void 0 && (n.value = l.value), l.isDisabled !== void 0 && (v.value = l.isDisabled), r("upsertRow", {
|
|
50
|
+
name: c.value,
|
|
51
|
+
value: n.value,
|
|
52
|
+
isDisabled: v.value
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
return (l, a) => (d(), m(i(H), {
|
|
47
56
|
id: e.data.name,
|
|
48
|
-
class:
|
|
49
|
-
alert:
|
|
50
|
-
error:
|
|
57
|
+
class: E({
|
|
58
|
+
alert: V.value.ok === !1,
|
|
59
|
+
error: V.value.ok === !1 && e.invalidParams?.has(e.data.name)
|
|
51
60
|
})
|
|
52
61
|
}, {
|
|
53
|
-
default:
|
|
54
|
-
|
|
55
|
-
key: 0,
|
|
56
|
-
class: "text-c-2 flex items-center justify-center border-t !border-r",
|
|
57
|
-
to: e.data.globalRoute ?? {}
|
|
58
|
-
}, {
|
|
59
|
-
default: i(() => [
|
|
60
|
-
a[7] || (a[7] = r("span", { class: "sr-only" }, "Global", -1)),
|
|
61
|
-
o(t(q), {
|
|
62
|
-
content: "Global cookies are shared across the whole workspace.",
|
|
63
|
-
placement: "top"
|
|
64
|
-
}, {
|
|
65
|
-
default: i(() => [
|
|
66
|
-
o(t(h), {
|
|
67
|
-
class: "text-c-1",
|
|
68
|
-
icon: "Globe",
|
|
69
|
-
size: "xs",
|
|
70
|
-
tabindex: "0"
|
|
71
|
-
})
|
|
72
|
-
]),
|
|
73
|
-
_: 1
|
|
74
|
-
})
|
|
75
|
-
]),
|
|
76
|
-
_: 1
|
|
77
|
-
}, 8, ["to"])) : (m(), s(t(O), {
|
|
78
|
-
key: 1,
|
|
62
|
+
default: s(() => [
|
|
63
|
+
u(i(J), {
|
|
79
64
|
class: "!border-r",
|
|
80
65
|
disabled: e.hasCheckboxDisabled ?? !1,
|
|
81
|
-
modelValue: !
|
|
82
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
83
|
-
}, null, 8, ["disabled", "modelValue"])
|
|
84
|
-
|
|
85
|
-
default:
|
|
86
|
-
|
|
66
|
+
modelValue: !v.value,
|
|
67
|
+
"onUpdate:modelValue": a[0] || (a[0] = (t) => b({ isDisabled: !t }))
|
|
68
|
+
}, null, 8, ["disabled", "modelValue"]),
|
|
69
|
+
u(i(g), null, {
|
|
70
|
+
default: s(() => [
|
|
71
|
+
u(i(F), {
|
|
87
72
|
"aria-label": `${e.label} Key`,
|
|
88
73
|
disableCloseBrackets: "",
|
|
89
|
-
disabled: e.
|
|
74
|
+
disabled: e.data.isReadonly,
|
|
90
75
|
disableEnter: "",
|
|
91
76
|
disableTabIndent: "",
|
|
92
77
|
environment: e.environment,
|
|
93
78
|
lineWrapping: "",
|
|
94
|
-
modelValue:
|
|
79
|
+
modelValue: c.value,
|
|
95
80
|
placeholder: "Key",
|
|
96
81
|
required: !!e.data.isRequired,
|
|
97
|
-
onSelectVariable: a[1] || (a[1] = (
|
|
98
|
-
"onUpdate:modelValue": a[2] || (a[2] = (
|
|
82
|
+
onSelectVariable: a[1] || (a[1] = (t) => b({ name: t })),
|
|
83
|
+
"onUpdate:modelValue": a[2] || (a[2] = (t) => b({ name: t }))
|
|
99
84
|
}, null, 8, ["aria-label", "disabled", "environment", "modelValue", "required"])
|
|
100
85
|
]),
|
|
101
86
|
_: 1
|
|
102
87
|
}),
|
|
103
|
-
|
|
104
|
-
default:
|
|
105
|
-
|
|
88
|
+
u(i(g), null, {
|
|
89
|
+
default: s(() => [
|
|
90
|
+
u(i(F), {
|
|
106
91
|
"aria-label": `${e.label} Value`,
|
|
107
92
|
class: "pr-6 group-hover:pr-10 group-has-[.cm-focused]:pr-10",
|
|
108
|
-
default:
|
|
93
|
+
default: z.value,
|
|
109
94
|
disableCloseBrackets: "",
|
|
110
|
-
disabled: e.
|
|
95
|
+
disabled: e.data.isReadonly,
|
|
111
96
|
disableEnter: "",
|
|
112
97
|
disableTabIndent: "",
|
|
113
|
-
enum:
|
|
98
|
+
enum: I.value ?? [],
|
|
114
99
|
environment: e.environment,
|
|
115
|
-
examples: e.data.schema?.examples?.map((
|
|
100
|
+
examples: e.data.schema?.examples?.map((t) => String(t)) ?? [],
|
|
101
|
+
linethrough: e.data.isOverridden,
|
|
116
102
|
lineWrapping: "",
|
|
117
|
-
max:
|
|
118
|
-
min:
|
|
119
|
-
modelValue:
|
|
103
|
+
max: $.value,
|
|
104
|
+
min: T.value,
|
|
105
|
+
modelValue: w.value,
|
|
120
106
|
placeholder: "Value",
|
|
121
|
-
type:
|
|
122
|
-
"onUpdate:modelValue": a[
|
|
107
|
+
type: U.value,
|
|
108
|
+
"onUpdate:modelValue": a[5] || (a[5] = (t) => b({ value: t }))
|
|
123
109
|
}, {
|
|
124
|
-
icon:
|
|
125
|
-
(e.data.name ||
|
|
110
|
+
icon: s(() => [
|
|
111
|
+
(e.data.name || n.value) && !e.data.isRequired && e.data.isReadonly !== !0 ? (d(), m(i(C), {
|
|
126
112
|
key: 0,
|
|
127
113
|
class: "text-c-2 hover:text-c-1 hover:bg-b-2 z-context -mr-0.5 hidden h-fit rounded p-1 group-hover:flex group-has-[.cm-focused]:flex",
|
|
128
114
|
size: "sm",
|
|
129
115
|
variant: "ghost",
|
|
130
|
-
onClick: a[3] || (a[3] = (
|
|
116
|
+
onClick: a[3] || (a[3] = (t) => r("deleteRow"))
|
|
131
117
|
}, {
|
|
132
|
-
default:
|
|
133
|
-
|
|
118
|
+
default: s(() => [
|
|
119
|
+
u(i(K), { class: "size-3.5" })
|
|
134
120
|
]),
|
|
135
121
|
_: 1
|
|
136
122
|
})) : f("", !0),
|
|
137
|
-
e.data.
|
|
123
|
+
e.data.globalRoute !== void 0 ? (d(), m(i(j), {
|
|
138
124
|
key: 1,
|
|
125
|
+
class: "text-c-2 hover:text-c-1 hover:bg-b-2 z-context -mr-0.5 h-fit",
|
|
126
|
+
icon: i(O),
|
|
127
|
+
label: "Global cookies are shared across the whole workspace. Click to navigate.",
|
|
128
|
+
size: "xs",
|
|
129
|
+
tooltip: "top",
|
|
130
|
+
variant: "ghost",
|
|
131
|
+
onClick: a[4] || (a[4] = (t) => r("navigate", e.data.globalRoute))
|
|
132
|
+
}, null, 8, ["icon"])) : f("", !0),
|
|
133
|
+
e.data.isReadonly ? (d(), m(D, {
|
|
134
|
+
key: 2,
|
|
135
|
+
description: "This is a readonly property and you can not modify it! If you want to change it you have to override it or disable it using the checkbox",
|
|
136
|
+
value: null
|
|
137
|
+
})) : e.data.schema ? (d(), m(D, {
|
|
138
|
+
key: 3,
|
|
139
139
|
description: e.data.description,
|
|
140
140
|
schema: e.data.schema,
|
|
141
|
-
value:
|
|
141
|
+
value: n.value
|
|
142
142
|
}, null, 8, ["description", "schema", "value"])) : f("", !0)
|
|
143
143
|
]),
|
|
144
144
|
_: 1
|
|
145
|
-
}, 8, ["aria-label", "default", "disabled", "enum", "environment", "examples", "max", "min", "modelValue", "type"])
|
|
145
|
+
}, 8, ["aria-label", "default", "disabled", "enum", "environment", "examples", "linethrough", "max", "min", "modelValue", "type"])
|
|
146
146
|
]),
|
|
147
147
|
_: 1
|
|
148
148
|
}),
|
|
149
|
-
e.showUploadButton ? (
|
|
150
|
-
key:
|
|
149
|
+
e.showUploadButton ? (d(), m(i(g), {
|
|
150
|
+
key: 0,
|
|
151
151
|
class: "group/upload flex items-center justify-center whitespace-nowrap"
|
|
152
152
|
}, {
|
|
153
|
-
default:
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
153
|
+
default: s(() => [
|
|
154
|
+
k.value ? (d(), R(N, { key: 0 }, [
|
|
155
|
+
h("div", L, [
|
|
156
|
+
h("span", null, P(w.value), 1)
|
|
157
157
|
]),
|
|
158
|
-
|
|
158
|
+
h("button", {
|
|
159
159
|
class: "bg-b-2 centered-x centered-y absolute hidden w-[calc(100%_-_8px)] rounded p-0.5 text-center text-xs font-medium group-hover/upload:block",
|
|
160
160
|
type: "button",
|
|
161
|
-
onClick: a[
|
|
161
|
+
onClick: a[6] || (a[6] = (t) => r("removeFile"))
|
|
162
162
|
}, " Delete ")
|
|
163
|
-
], 64)) : (
|
|
164
|
-
|
|
163
|
+
], 64)) : (d(), R("div", M, [
|
|
164
|
+
u(i(C), {
|
|
165
165
|
class: "bg-b-2 hover:bg-b-3 text-c-2 h-fit border-0 py-px shadow-none",
|
|
166
166
|
size: "sm",
|
|
167
167
|
variant: "outlined",
|
|
168
|
-
onClick: a[
|
|
168
|
+
onClick: a[7] || (a[7] = (t) => r("uploadFile"))
|
|
169
169
|
}, {
|
|
170
|
-
default:
|
|
171
|
-
a[8] || (a[8] =
|
|
172
|
-
|
|
170
|
+
default: s(() => [
|
|
171
|
+
a[8] || (a[8] = h("span", null, "Select File", -1)),
|
|
172
|
+
u(i(G), {
|
|
173
173
|
class: "ml-1",
|
|
174
174
|
icon: "Upload",
|
|
175
175
|
size: "xs",
|
|
@@ -188,5 +188,5 @@ const P = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center just
|
|
|
188
188
|
}
|
|
189
189
|
});
|
|
190
190
|
export {
|
|
191
|
-
|
|
191
|
+
ne as default
|
|
192
192
|
};
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import type { WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
2
|
-
import type {
|
|
1
|
+
import type { OperationExampleMeta, WorkspaceEventBus } from '@scalar/workspace-store/events';
|
|
2
|
+
import type { TableRow } from '../../../../v2/blocks/request-block/components/RequestTableRow.vue.js';
|
|
3
3
|
type ParameterType = 'path' | 'cookie' | 'header' | 'query';
|
|
4
4
|
/** Create parameter event handlers for a given type */
|
|
5
|
-
export declare const createParameterHandlers: (type: ParameterType, eventBus: WorkspaceEventBus, meta: OperationExampleMeta
|
|
5
|
+
export declare const createParameterHandlers: (type: ParameterType, eventBus: WorkspaceEventBus, meta: OperationExampleMeta, { context, defaultParameters, globalParameters, }: {
|
|
6
|
+
context: TableRow[];
|
|
7
|
+
defaultParameters?: number;
|
|
8
|
+
globalParameters?: number;
|
|
9
|
+
}) => {
|
|
6
10
|
add: (payload: {
|
|
7
11
|
name?: string;
|
|
8
12
|
value?: string;
|
|
13
|
+
index?: number;
|
|
9
14
|
}) => void;
|
|
10
15
|
delete: (payload: {
|
|
11
16
|
index: number;
|
|
@@ -13,11 +18,11 @@ export declare const createParameterHandlers: (type: ParameterType, eventBus: Wo
|
|
|
13
18
|
deleteAll: () => void;
|
|
14
19
|
update: (payload: {
|
|
15
20
|
index: number;
|
|
16
|
-
payload:
|
|
21
|
+
payload: {
|
|
17
22
|
name: string;
|
|
18
23
|
value: string;
|
|
19
24
|
isDisabled: boolean;
|
|
20
|
-
}
|
|
25
|
+
};
|
|
21
26
|
}) => void;
|
|
22
27
|
};
|
|
23
28
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-parameter-handlers.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/helpers/create-parameter-handlers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;
|
|
1
|
+
{"version":3,"file":"create-parameter-handlers.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/helpers/create-parameter-handlers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAE7F,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0DAA0D,CAAA;AAExF,KAAK,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAA;AAE3D,uDAAuD;AACvD,eAAO,MAAM,uBAAuB,GAClC,MAAM,aAAa,EACnB,UAAU,iBAAiB,EAC3B,MAAM,oBAAoB,EAC1B,mDAIG;IACD,OAAO,EAAE,QAAQ,EAAE,CAAA;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B;mBAKgB;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;sBAgB9C;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE;;sBAWjB;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,UAAU,EAAE,OAAO,CAAA;SAAE,CAAA;KAAE;CA+BrG,CAAA"}
|
|
@@ -1,34 +1,63 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
1
|
+
const l = (i, r, a, {
|
|
2
|
+
context: s,
|
|
3
|
+
defaultParameters: d = 0,
|
|
4
|
+
globalParameters: o = 0
|
|
5
|
+
}) => {
|
|
6
|
+
const n = d + o;
|
|
7
|
+
return {
|
|
8
|
+
add: (e) => r.emit(
|
|
9
|
+
"operation:add:parameter",
|
|
10
|
+
{
|
|
11
|
+
type: i,
|
|
12
|
+
payload: {
|
|
13
|
+
name: e.name ?? "",
|
|
14
|
+
value: e.value ?? "",
|
|
15
|
+
isDisabled: !1
|
|
16
|
+
},
|
|
17
|
+
meta: a
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
debounceKey: `add:parameter-${i}-${e.index}`
|
|
21
|
+
}
|
|
22
|
+
),
|
|
23
|
+
delete: (e) => r.emit("operation:delete:parameter", {
|
|
24
|
+
type: i,
|
|
25
|
+
index: e.index - n,
|
|
26
|
+
meta: a
|
|
27
|
+
}),
|
|
28
|
+
deleteAll: () => r.emit("operation:delete-all:parameters", {
|
|
29
|
+
type: i,
|
|
30
|
+
meta: a
|
|
31
|
+
}),
|
|
32
|
+
update: (e) => {
|
|
33
|
+
const x = s[e.index];
|
|
34
|
+
if (e.index < d + o) {
|
|
35
|
+
const t = e.index < d ? "default" : "global";
|
|
36
|
+
return r.emit("operation:update:extra-parameters", {
|
|
37
|
+
type: t,
|
|
38
|
+
in: i,
|
|
39
|
+
meta: { ...a, name: x?.name?.toLowerCase?.() ?? "NON_VALID" },
|
|
40
|
+
payload: { isDisabled: e.payload.isDisabled ?? !1 }
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
if (e.index >= n) {
|
|
44
|
+
const t = Object.keys(e.payload).join("-");
|
|
45
|
+
return r.emit(
|
|
46
|
+
"operation:update:parameter",
|
|
47
|
+
{
|
|
48
|
+
type: i,
|
|
49
|
+
index: e.index - n,
|
|
50
|
+
payload: e.payload,
|
|
51
|
+
meta: a
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
debounceKey: `update:parameter-${i}-${e.index - n}-${t}`
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
}
|
|
29
58
|
}
|
|
30
|
-
|
|
31
|
-
}
|
|
59
|
+
};
|
|
60
|
+
};
|
|
32
61
|
export {
|
|
33
|
-
|
|
62
|
+
l as createParameterHandlers
|
|
34
63
|
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { HttpMethod } from '@scalar/helpers/http/http-methods';
|
|
2
|
+
import type { OperationObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
3
|
+
/**
|
|
4
|
+
* Represents a default header with its value and override status.
|
|
5
|
+
* Used to track headers that are automatically added to requests.
|
|
6
|
+
*/
|
|
7
|
+
type DefaultHeader = {
|
|
8
|
+
/** The header name (e.g., "Content-Type", "Accept"). */
|
|
9
|
+
name: string;
|
|
10
|
+
/** The default value for this header. */
|
|
11
|
+
defaultValue: string;
|
|
12
|
+
/** Whether this header is explicitly defined in the OpenAPI operation parameters. */
|
|
13
|
+
isOverridden: boolean;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Generates a list of default headers for an OpenAPI operation and HTTP method.
|
|
17
|
+
*
|
|
18
|
+
* This function intelligently adds standard HTTP headers based on the request context:
|
|
19
|
+
* - Content-Type: Added only if the HTTP method supports a request body (POST, PUT, PATCH, etc.).
|
|
20
|
+
* Uses the selected content type from the operation or defaults to "application/json".
|
|
21
|
+
* - Accept: Always added with a wildcard value to accept all response types.
|
|
22
|
+
* - User-Agent: Added in Electron environments (desktop app or proxy) to identify the client.
|
|
23
|
+
*
|
|
24
|
+
* The function respects OpenAPI operation parameters and marks headers as overridden
|
|
25
|
+
* if they are explicitly defined in the operation. It also supports hiding disabled
|
|
26
|
+
* headers for specific request examples using x-scalar-disable-parameters.
|
|
27
|
+
*
|
|
28
|
+
* @param method The HTTP method of the operation (GET, POST, etc.)
|
|
29
|
+
* @param operation The OpenAPI OperationObject describing the endpoint
|
|
30
|
+
* @param exampleKey The current request example key
|
|
31
|
+
* @param hideDisabledHeaders If true, filters out headers marked as disabled for this example
|
|
32
|
+
* @returns Array of default header objects with their values and override status
|
|
33
|
+
*/
|
|
34
|
+
export declare const getDefaultHeaders: ({ method, operation, exampleKey, hideDisabledHeaders, }: {
|
|
35
|
+
method: HttpMethod;
|
|
36
|
+
operation: OperationObject;
|
|
37
|
+
exampleKey: string;
|
|
38
|
+
hideDisabledHeaders?: boolean;
|
|
39
|
+
}) => DefaultHeader[];
|
|
40
|
+
export {};
|
|
41
|
+
//# sourceMappingURL=get-default-headers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-default-headers.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/helpers/get-default-headers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAanG;;;GAGG;AACH,KAAK,aAAa,GAAG;IACnB,wDAAwD;IACxD,IAAI,EAAE,MAAM,CAAA;IACZ,yCAAyC;IACzC,YAAY,EAAE,MAAM,CAAA;IACpB,qFAAqF;IACrF,YAAY,EAAE,OAAO,CAAA;CACtB,CAAA;AAgBD;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,iBAAiB,GAAI,yDAK/B;IACD,MAAM,EAAE,UAAU,CAAA;IAClB,SAAS,EAAE,eAAe,CAAA;IAC1B,UAAU,EAAE,MAAM,CAAA;IAClB,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B,KAAG,aAAa,EAqChB,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { canMethodHaveBody as p } from "@scalar/helpers/http/can-method-have-body";
|
|
2
|
+
import { getResolvedRef as n } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
3
|
+
import { isElectron as u } from "../../../../libs/electron.js";
|
|
4
|
+
const i = "2.19.0", m = "application/json", h = "*/*", c = (r, t, a) => ({
|
|
5
|
+
name: r,
|
|
6
|
+
defaultValue: t,
|
|
7
|
+
isOverridden: a.has(r.toLowerCase())
|
|
8
|
+
}), y = ({
|
|
9
|
+
method: r,
|
|
10
|
+
operation: t,
|
|
11
|
+
exampleKey: a,
|
|
12
|
+
hideDisabledHeaders: l = !1
|
|
13
|
+
}) => {
|
|
14
|
+
const o = new Set(
|
|
15
|
+
t.parameters?.filter((e) => n(e).in === "header").map((e) => n(e).name.toLowerCase()) ?? []
|
|
16
|
+
), f = t["x-scalar-disable-parameters"]?.["default-headers"]?.[a] ?? {}, s = [], d = n(t.requestBody);
|
|
17
|
+
if (p(r)) {
|
|
18
|
+
const e = d?.["x-scalar-selected-content-type"]?.[a] ?? Object.keys(d?.content ?? {})[0] ?? m;
|
|
19
|
+
s.push(c("Content-Type", e, o));
|
|
20
|
+
}
|
|
21
|
+
return s.push(c("Accept", h, o)), u() && i && s.push(c("User-Agent", `Scalar/${i}`, o)), l ? s.filter((e) => f[e.name.toLowerCase()] !== !0) : s;
|
|
22
|
+
};
|
|
23
|
+
export {
|
|
24
|
+
y as getDefaultHeaders
|
|
25
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Group together array objects by a specific key
|
|
3
3
|
*/
|
|
4
|
-
export declare const groupBy: <T extends Record<string, unknown>, K extends keyof T, V extends string | number | symbol = Extract<T[K], string | number | symbol
|
|
4
|
+
export declare const groupBy: <T extends Record<string, unknown>, K extends keyof T, V extends string | number | symbol = Extract<T[K], string | number | symbol>, R = T>(arr: T[], key: K, transform?: (item: T) => R) => Record<V, R[]>;
|
|
5
5
|
//# sourceMappingURL=group-by.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group-by.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/helpers/group-by.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,OAAO,GAClB,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,CAAC,SAAS,MAAM,CAAC,EACjB,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"group-by.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/helpers/group-by.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,OAAO,GAClB,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,CAAC,SAAS,MAAM,CAAC,EACjB,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,EAC5E,CAAC,GAAG,CAAC,EAEL,KAAK,CAAC,EAAE,EACR,KAAK,CAAC,EACN,YAAY,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,KACzB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CASf,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ExampleObject, ParameterObject } from '@scalar/workspace-store/schemas/v3.1/strict/openapi-document';
|
|
2
|
+
/**
|
|
3
|
+
* Determines if a parameter is disabled
|
|
4
|
+
*
|
|
5
|
+
* First we explicitly check if its been disabled via the `x-disabled` extension.
|
|
6
|
+
* Then we check if its an optional parameter and not a path parameter.
|
|
7
|
+
*
|
|
8
|
+
* @param param - The parameter to check.
|
|
9
|
+
* @param example - The example to check.
|
|
10
|
+
* @returns true if the parameter is disabled, false otherwise.
|
|
11
|
+
*/
|
|
12
|
+
export declare const isParamDisabled: (param: ParameterObject, example: ExampleObject | undefined) => boolean;
|
|
13
|
+
//# sourceMappingURL=is-param-disabled.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-param-disabled.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/helpers/is-param-disabled.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAElH;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,GAAI,OAAO,eAAe,EAAE,SAAS,aAAa,GAAG,SAAS,YAUzF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-address-bar-block/components/AddressBar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AddressBar.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-address-bar-block/components/AddressBar.vue"],"names":[],"mappings":"AAkbA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAGrF,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAWhG,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAA;AAM3C,OAA0B,EAAE,KAAK,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEzE,KAAK,WAAW,GAAG;IACjB,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,6BAA6B;IAC7B,MAAM,EAAE,cAAc,CAAA;IACtB,gCAAgC;IAChC,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;IAC3B,mDAAmD;IACnD,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,8BAA8B;IAC9B,OAAO,EAAE,OAAO,EAAE,CAAA;IAClB,oBAAoB;IACpB,MAAM,EAAE,YAAY,CAAA;IACpB,gBAAgB;IAChB,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,kBAAkB;IAClB,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAC;;;;;;;;;;;AAulBF,wBAQG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./AddressBar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-90999cb7"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|