@scalar/api-client 2.17.3 → 2.17.5
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 +80 -0
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +15 -10
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +70 -55
- 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 +12 -8
- package/dist/v2/blocks/operation-block/helpers/build-request-security.d.ts +3 -5
- package/dist/v2/blocks/operation-block/helpers/build-request-security.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request-security.js +31 -31
- package/dist/v2/blocks/operation-block/helpers/build-request.d.ts +4 -6
- package/dist/v2/blocks/operation-block/helpers/build-request.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/build-request.js +20 -21
- package/dist/v2/blocks/operation-block/helpers/get-example.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/helpers/get-example.js +22 -16
- package/dist/v2/blocks/operation-block/helpers/send-request.js +26 -26
- package/dist/v2/blocks/operation-block/index.d.ts +1 -0
- package/dist/v2/blocks/operation-block/index.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/index.js +4 -2
- package/dist/v2/blocks/operation-code-sample/components/OperationCodeSample.vue.d.ts +9 -4
- 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 +81 -88
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts +4 -4
- package/dist/v2/blocks/operation-code-sample/helpers/generate-code-snippet.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/helpers/operation-to-har/operation-to-har.d.ts +1 -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 +1 -1
- package/dist/v2/blocks/operation-code-sample/index.d.ts +1 -0
- package/dist/v2/blocks/operation-code-sample/index.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/index.js +11 -9
- package/dist/v2/blocks/request-block/RequestBlock.vue.d.ts +3 -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 +59 -63
- package/dist/v2/blocks/request-block/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestBody.vue.js +2 -2
- package/dist/v2/blocks/request-block/components/RequestBody.vue2.js +78 -74
- package/dist/v2/blocks/request-block/components/RequestCodeSnippet.vue.js +3 -3
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.d.ts.map +1 -1
- package/dist/v2/blocks/request-block/components/RequestTableRow.vue.js +43 -42
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +96 -86
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/convert-security-scheme-secrets.d.ts +8 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/convert-security-scheme-secrets.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/convert-security-scheme-secrets.js +33 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-auth-config.d.ts +7 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-auth-config.d.ts.map +1 -0
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/merge-auth-config.js +13 -0
- package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts +3 -0
- package/dist/v2/blocks/scalar-auth-selector-block/index.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/index.js +8 -2
- package/dist/v2/components/data-table/DataTableInput.vue.d.ts.map +1 -1
- package/dist/v2/components/data-table/DataTableInput.vue.js +2 -2
- package/dist/v2/components/data-table/DataTableInput.vue2.js +25 -24
- package/dist/v2/features/app/App.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.js +34 -33
- package/dist/v2/features/app/helpers/routes.d.ts +2 -0
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- package/dist/v2/features/app/hooks/use-workspace-client-app-events.d.ts.map +1 -1
- package/dist/v2/features/app/hooks/use-workspace-client-app-events.js +29 -29
- package/dist/v2/features/collection/DocumentCollection.vue.js +4 -3
- package/dist/v2/features/collection/WorkspaceCollection.vue.js +8 -7
- package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Authentication.vue.js +1 -1
- package/dist/v2/features/collection/components/Authentication.vue2.js +7 -6
- package/dist/v2/features/collection/components/Cookies.vue.js +1 -0
- package/dist/v2/features/collection/components/Environment.vue.js +1 -0
- package/dist/v2/features/collection/components/Overview.vue2.js +8 -7
- package/dist/v2/features/collection/components/Servers.vue.js +25 -24
- package/dist/v2/features/collection/components/Settings.vue.js +8 -7
- package/dist/v2/features/modal/Modal.vue.d.ts +6 -0
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.js +2 -2
- package/dist/v2/features/modal/Modal.vue2.js +66 -62
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts +16 -16
- package/dist/v2/features/modal/helpers/create-api-client-modal.d.ts.map +1 -1
- package/dist/v2/features/modal/helpers/create-api-client-modal.js +36 -29
- package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.d.ts.map +1 -1
- package/dist/v2/features/modal/hooks/use-workspace-client-modal-events.js +25 -12
- package/dist/v2/features/modal/index.d.ts +2 -1
- package/dist/v2/features/modal/index.d.ts.map +1 -1
- package/dist/v2/features/modal/index.js +3 -1
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +54 -62
- package/dist/v2/features/operation/helpers/get-security-requirements.d.ts +1 -1
- package/dist/v2/features/operation/helpers/get-security-requirements.d.ts.map +1 -1
- package/dist/v2/features/operation/helpers/get-security-requirements.js +2 -2
- package/dist/v2/features/operation/helpers/get-selected-security.d.ts +5 -2
- package/dist/v2/features/operation/helpers/get-selected-security.d.ts.map +1 -1
- package/dist/v2/features/operation/helpers/get-selected-security.js +11 -11
- package/dist/v2/features/operation/helpers/get-selected-server.d.ts +10 -0
- package/dist/v2/features/operation/helpers/get-selected-server.d.ts.map +1 -0
- package/dist/v2/features/operation/helpers/get-selected-server.js +4 -0
- package/dist/v2/features/operation/index.d.ts +3 -0
- package/dist/v2/features/operation/index.d.ts.map +1 -1
- package/dist/v2/features/operation/index.js +8 -2
- package/dist/v2/helpers/index.d.ts +3 -0
- package/dist/v2/helpers/index.d.ts.map +1 -0
- package/dist/v2/helpers/index.js +4 -0
- package/dist/v2/helpers/plugins.d.ts +7 -1
- package/dist/v2/helpers/plugins.d.ts.map +1 -1
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +22 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/request-block/RequestBlock.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestBlock.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/blocks/request-block/RequestBlock.vue"],"names":[],"mappings":"AA4bA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAEvE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAA;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EACV,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,YAAY,EACb,MAAM,8DAA8D,CAAA;AAKrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAA;AAO1E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAWxD,KAAK,WAAW,GAAG;IACjB,gBAAgB,EAAE,eAAe,CAAC,4BAA4B,CAAC,CAAA;IAC/D,QAAQ,EAAE,QAAQ,CAAA;IAClB,aAAa,EAAE,iBAAiB,EAAE,CAAA;IAClC,WAAW,EAAE,kBAAkB,CAAA;IAC/B,QAAQ,EAAE,iBAAiB,CAAA;IAC3B,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,YAAY,CAAA;IACpB,MAAM,EAAE,UAAU,CAAA;IAClB,SAAS,EAAE,eAAe,CAAA;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,QAAQ,EAAE,MAAM,CAAA;IAChB,oBAAoB,EAAE,eAAe,CAAC,UAAU,CAAC,CAAA;IACjD,eAAe,EAAE,WAAW,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAA;IAC9E,cAAc,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC,yBAAyB,CAAC,CAAA;IACtE,uBAAuB,EAAE,oBAAoB,EAAE,CAAA;IAC/C,MAAM,EAAE,YAAY,GAAG,IAAI,CAAA;CAC5B,CAAC;;AAokBF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestBlock.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-13f5983a"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ScalarErrorBoundary as
|
|
1
|
+
import { defineComponent as D, computed as u, ref as Q, useId as r, watch as j, createBlock as k, openBlock as s, withCtx as w, createElementVNode as K, withDirectives as m, createElementBlock as f, createVNode as i, unref as y, vShow as d, mergeProps as B, toHandlers as S, Fragment as M, renderList as L, createCommentVNode as T, resolveDynamicComponent as z, toDisplayString as G } from "vue";
|
|
2
|
+
import { ScalarErrorBoundary as X } from "@scalar/components";
|
|
3
3
|
import { canMethodHaveBody as b } from "@scalar/helpers/http/can-method-have-body";
|
|
4
|
-
import { REGEX as
|
|
4
|
+
import { REGEX as J } from "@scalar/helpers/regex/regex-helpers";
|
|
5
5
|
import { getResolvedRef as V } from "@scalar/workspace-store/helpers/get-resolved-ref";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import te from "./components/RequestCodeSnippet.vue.js";
|
|
6
|
+
import W from "../../../components/SectionFilter.vue.js";
|
|
7
|
+
import Y from "../../../components/ViewLayout/ViewLayoutSection.vue.js";
|
|
8
|
+
import Z from "./components/RequestBody.vue.js";
|
|
9
|
+
import _ from "./components/RequestCodeSnippet.vue.js";
|
|
11
10
|
import q from "./components/RequestParams.vue.js";
|
|
12
11
|
import { createParameterHandlers as R } from "./helpers/create-parameter-handlers.js";
|
|
13
|
-
import { groupBy as
|
|
14
|
-
import
|
|
15
|
-
const
|
|
12
|
+
import { groupBy as ee } from "./helpers/group-by.js";
|
|
13
|
+
import te from "../scalar-auth-selector-block/components/AuthSelector.vue.js";
|
|
14
|
+
const oe = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg:pr-24" }, ae = ["for"], ne = ["id", "placeholder", "value"], le = {
|
|
16
15
|
key: 2,
|
|
17
16
|
class: "text-c-1 flex h-8 items-center"
|
|
18
|
-
},
|
|
17
|
+
}, re = ["id", "role"], qe = /* @__PURE__ */ D({
|
|
19
18
|
__name: "RequestBlock",
|
|
20
19
|
props: {
|
|
20
|
+
selectedSecurity: {},
|
|
21
21
|
authMeta: { default: () => ({ type: "document" }) },
|
|
22
22
|
clientOptions: {},
|
|
23
23
|
environment: {},
|
|
@@ -32,20 +32,20 @@ const ne = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
|
|
|
32
32
|
securityRequirements: {},
|
|
33
33
|
securitySchemes: {},
|
|
34
34
|
selectedClient: {},
|
|
35
|
-
|
|
35
|
+
selectedSecuritySchemes: {},
|
|
36
36
|
server: {}
|
|
37
37
|
},
|
|
38
38
|
setup(t) {
|
|
39
|
-
const o =
|
|
39
|
+
const o = u(() => ({
|
|
40
40
|
method: t.method,
|
|
41
41
|
path: t.path,
|
|
42
42
|
exampleKey: t.exampleKey
|
|
43
|
-
})), c =
|
|
44
|
-
() =>
|
|
43
|
+
})), c = u(
|
|
44
|
+
() => ee(
|
|
45
45
|
t.operation.parameters?.map((e) => V(e)) ?? [],
|
|
46
46
|
"in"
|
|
47
47
|
)
|
|
48
|
-
), a =
|
|
48
|
+
), a = Q("All"), O = [
|
|
49
49
|
"Auth",
|
|
50
50
|
"Variables",
|
|
51
51
|
"Cookies",
|
|
@@ -53,24 +53,24 @@ const ne = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
|
|
|
53
53
|
"Query",
|
|
54
54
|
"Body"
|
|
55
55
|
], U = {
|
|
56
|
-
All:
|
|
57
|
-
Auth:
|
|
58
|
-
Variables:
|
|
59
|
-
Cookies:
|
|
60
|
-
Headers:
|
|
61
|
-
Query:
|
|
62
|
-
Body:
|
|
63
|
-
}, A =
|
|
56
|
+
All: r(),
|
|
57
|
+
Auth: r(),
|
|
58
|
+
Variables: r(),
|
|
59
|
+
Cookies: r(),
|
|
60
|
+
Headers: r(),
|
|
61
|
+
Query: r(),
|
|
62
|
+
Body: r()
|
|
63
|
+
}, A = u(() => {
|
|
64
64
|
const e = /* @__PURE__ */ new Set(["All", ...O]);
|
|
65
65
|
return c.value.path?.length || e.delete("Variables"), b(t.method) || e.delete("Body"), g.value && e.delete("Auth"), [...e];
|
|
66
|
-
}), n =
|
|
66
|
+
}), n = u(
|
|
67
67
|
() => Object.fromEntries(
|
|
68
68
|
A.value.map((e) => [e, U[e]])
|
|
69
69
|
)
|
|
70
|
-
), g =
|
|
70
|
+
), g = u(
|
|
71
71
|
() => t.layout === "modal" && !t.operation.security && !Object.keys(t.securitySchemes ?? {}).length
|
|
72
|
-
), E =
|
|
73
|
-
|
|
72
|
+
), E = u(() => t.operation.summary ? t.operation.summary : t.path.replace(J.PROTOCOL, "") || "Request Name"), v = (e) => a.value === "All" || a.value === e;
|
|
73
|
+
j(
|
|
74
74
|
() => t.method,
|
|
75
75
|
(e) => {
|
|
76
76
|
a.value === "Body" && !b(e) && (a.value = "All");
|
|
@@ -82,7 +82,7 @@ const ne = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
|
|
|
82
82
|
meta: o.value,
|
|
83
83
|
payload: { summary: l }
|
|
84
84
|
});
|
|
85
|
-
}, p =
|
|
85
|
+
}, p = u(() => ({
|
|
86
86
|
path: R("path", t.eventBus, o.value),
|
|
87
87
|
cookie: R("cookie", t.eventBus, o.value),
|
|
88
88
|
header: R("header", t.eventBus, o.value),
|
|
@@ -96,14 +96,14 @@ const ne = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
|
|
|
96
96
|
value: e.data.value ?? ""
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
|
-
},
|
|
99
|
+
}, I = (e) => t.eventBus.emit("operation:delete:requestBody:formRow", {
|
|
100
100
|
contentType: e.contentType,
|
|
101
101
|
index: e.index,
|
|
102
102
|
meta: o.value
|
|
103
|
-
}),
|
|
103
|
+
}), N = (e) => t.eventBus.emit("operation:update:requestBody:contentType", {
|
|
104
104
|
payload: { contentType: e.value },
|
|
105
105
|
meta: o.value
|
|
106
|
-
}),
|
|
106
|
+
}), $ = (e) => t.eventBus.emit(
|
|
107
107
|
"operation:update:requestBody:formRow",
|
|
108
108
|
{
|
|
109
109
|
contentType: e.contentType,
|
|
@@ -114,7 +114,7 @@ const ne = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
|
|
|
114
114
|
{
|
|
115
115
|
debounceKey: `update:requestBody:formRow-${e.index}-${Object.keys(e.data).join("-")}`
|
|
116
116
|
}
|
|
117
|
-
),
|
|
117
|
+
), x = (e) => {
|
|
118
118
|
const l = typeof e.value == "string" ? `update:requestBody:value-${e.contentType}` : void 0;
|
|
119
119
|
t.eventBus.emit(
|
|
120
120
|
"operation:update:requestBody:value",
|
|
@@ -127,22 +127,17 @@ const ne = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
|
|
|
127
127
|
debounceKey: l
|
|
128
128
|
}
|
|
129
129
|
);
|
|
130
|
-
}, C =
|
|
131
|
-
|
|
132
|
-
t.securitySchemes,
|
|
133
|
-
t.selectedSecurity?.selectedSchemes ?? []
|
|
134
|
-
)
|
|
135
|
-
);
|
|
136
|
-
return (e, l) => (s(), k(Z, {
|
|
130
|
+
}, C = r();
|
|
131
|
+
return (e, l) => (s(), k(Y, {
|
|
137
132
|
"aria-label": `Request: ${e.operation.summary}`
|
|
138
133
|
}, {
|
|
139
134
|
title: w(() => [
|
|
140
|
-
K("div",
|
|
135
|
+
K("div", oe, [
|
|
141
136
|
e.layout !== "modal" ? (s(), f("label", {
|
|
142
137
|
key: 0,
|
|
143
138
|
class: "pointer-events-auto absolute top-0 left-0 h-full w-full cursor-text opacity-0",
|
|
144
139
|
for: y(C)
|
|
145
|
-
}, null, 8,
|
|
140
|
+
}, null, 8, ae)) : T("", !0),
|
|
146
141
|
e.layout !== "modal" ? (s(), f("input", {
|
|
147
142
|
key: 1,
|
|
148
143
|
id: y(C),
|
|
@@ -150,9 +145,9 @@ const ne = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
|
|
|
150
145
|
placeholder: E.value,
|
|
151
146
|
value: e.operation.summary,
|
|
152
147
|
onInput: H
|
|
153
|
-
}, null, 40,
|
|
148
|
+
}, null, 40, ne)) : (s(), f("span", le, G(e.operation.summary), 1))
|
|
154
149
|
]),
|
|
155
|
-
|
|
150
|
+
i(W, {
|
|
156
151
|
modelValue: a.value,
|
|
157
152
|
"onUpdate:modelValue": l[0] || (l[0] = (h) => a.value = h),
|
|
158
153
|
filterIds: n.value,
|
|
@@ -165,7 +160,7 @@ const ne = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
|
|
|
165
160
|
class: "request-section-content custom-scroll relative flex flex-1 flex-col",
|
|
166
161
|
role: a.value === "All" ? "tabpanel" : "none"
|
|
167
162
|
}, [
|
|
168
|
-
m(
|
|
163
|
+
m(i(y(te), {
|
|
169
164
|
id: n.value.Auth,
|
|
170
165
|
environment: e.environment,
|
|
171
166
|
eventBus: e.eventBus,
|
|
@@ -174,12 +169,13 @@ const ne = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
|
|
|
174
169
|
securityRequirements: e.securityRequirements,
|
|
175
170
|
securitySchemes: e.securitySchemes,
|
|
176
171
|
selectedSecurity: e.selectedSecurity,
|
|
172
|
+
selectedSecuritySchemes: e.selectedSecuritySchemes,
|
|
177
173
|
server: e.server,
|
|
178
|
-
title: "
|
|
179
|
-
}, null, 8, ["id", "environment", "eventBus", "meta", "proxyUrl", "securityRequirements", "securitySchemes", "selectedSecurity", "server"]), [
|
|
174
|
+
title: "Authentication"
|
|
175
|
+
}, null, 8, ["id", "environment", "eventBus", "meta", "proxyUrl", "securityRequirements", "securitySchemes", "selectedSecurity", "selectedSecuritySchemes", "server"]), [
|
|
180
176
|
[d, v("Auth") && !g.value]
|
|
181
177
|
]),
|
|
182
|
-
m(
|
|
178
|
+
m(i(q, B({
|
|
183
179
|
id: n.value.Variables,
|
|
184
180
|
environment: e.environment,
|
|
185
181
|
exampleKey: e.exampleKey,
|
|
@@ -189,7 +185,7 @@ const ne = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
|
|
|
189
185
|
}, S(p.value.path)), null, 16, ["id", "environment", "exampleKey", "parameters"]), [
|
|
190
186
|
[d, v("Variables") && c.value.path?.length]
|
|
191
187
|
]),
|
|
192
|
-
m(
|
|
188
|
+
m(i(q, B({
|
|
193
189
|
id: n.value.Cookies,
|
|
194
190
|
environment: e.environment,
|
|
195
191
|
exampleKey: e.exampleKey,
|
|
@@ -199,7 +195,7 @@ const ne = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
|
|
|
199
195
|
}, S(p.value.cookie)), null, 16, ["id", "environment", "exampleKey", "parameters"]), [
|
|
200
196
|
[d, v("Cookies")]
|
|
201
197
|
]),
|
|
202
|
-
m(
|
|
198
|
+
m(i(q, B({
|
|
203
199
|
id: n.value.Headers,
|
|
204
200
|
environment: e.environment,
|
|
205
201
|
exampleKey: e.exampleKey,
|
|
@@ -208,7 +204,7 @@ const ne = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
|
|
|
208
204
|
}, S(p.value.header)), null, 16, ["id", "environment", "exampleKey", "parameters"]), [
|
|
209
205
|
[d, v("Headers")]
|
|
210
206
|
]),
|
|
211
|
-
m(
|
|
207
|
+
m(i(q, B({
|
|
212
208
|
id: n.value.Query,
|
|
213
209
|
environment: e.environment,
|
|
214
210
|
exampleKey: e.exampleKey,
|
|
@@ -217,23 +213,23 @@ const ne = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
|
|
|
217
213
|
}, S(p.value.query)), null, 16, ["id", "environment", "exampleKey", "parameters"]), [
|
|
218
214
|
[d, v("Query")]
|
|
219
215
|
]),
|
|
220
|
-
m(
|
|
216
|
+
m(i(Z, {
|
|
221
217
|
id: n.value.Body,
|
|
222
218
|
environment: e.environment,
|
|
223
219
|
exampleKey: e.exampleKey,
|
|
224
220
|
requestBody: y(V)(e.operation.requestBody),
|
|
225
221
|
title: "Request Body",
|
|
226
222
|
"onAdd:formRow": P,
|
|
227
|
-
"onDelete:fromRow":
|
|
228
|
-
"onUpdate:contentType":
|
|
229
|
-
"onUpdate:formRow":
|
|
230
|
-
"onUpdate:value":
|
|
223
|
+
"onDelete:fromRow": I,
|
|
224
|
+
"onUpdate:contentType": N,
|
|
225
|
+
"onUpdate:formRow": $,
|
|
226
|
+
"onUpdate:value": x
|
|
231
227
|
}, null, 8, ["id", "environment", "exampleKey", "requestBody"]), [
|
|
232
228
|
[d, v("Body") && y(b)(e.method)]
|
|
233
229
|
]),
|
|
234
|
-
(s(!0), f(
|
|
230
|
+
(s(!0), f(M, null, L(e.plugins, (h, F) => (s(), k(y(X), { key: F }, {
|
|
235
231
|
default: w(() => [
|
|
236
|
-
h?.components?.request ? (s(), k(
|
|
232
|
+
h?.components?.request ? (s(), k(z(h.components.request), {
|
|
237
233
|
key: 0,
|
|
238
234
|
operation: e.operation,
|
|
239
235
|
selectedExample: e.exampleKey
|
|
@@ -242,24 +238,24 @@ const ne = { class: "group pointer-events-none flex flex-1 items-center gap-1 lg
|
|
|
242
238
|
_: 2
|
|
243
239
|
}, 1024))), 128)),
|
|
244
240
|
l[1] || (l[1] = K("div", { class: "flex flex-grow" }, null, -1)),
|
|
245
|
-
m(
|
|
241
|
+
m(i(_, {
|
|
246
242
|
clientOptions: e.clientOptions,
|
|
247
243
|
eventBus: e.eventBus,
|
|
248
244
|
method: e.method,
|
|
249
245
|
operation: e.operation,
|
|
250
246
|
path: e.path,
|
|
251
|
-
securitySchemes:
|
|
247
|
+
securitySchemes: e.selectedSecuritySchemes,
|
|
252
248
|
selectedClient: e.selectedClient,
|
|
253
249
|
selectedServer: e.server ?? void 0
|
|
254
250
|
}, null, 8, ["clientOptions", "eventBus", "method", "operation", "path", "securitySchemes", "selectedClient", "selectedServer"]), [
|
|
255
251
|
[d, a.value === "All"]
|
|
256
252
|
])
|
|
257
|
-
], 8,
|
|
253
|
+
], 8, re)
|
|
258
254
|
]),
|
|
259
255
|
_: 1
|
|
260
256
|
}, 8, ["aria-label"]));
|
|
261
257
|
}
|
|
262
258
|
});
|
|
263
259
|
export {
|
|
264
|
-
|
|
260
|
+
qe as default
|
|
265
261
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestBody.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestBody.vue"],"names":[],"mappings":"AAuXA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8DAA8D,CAAA;AAgBrG,KAAK,WAAW,GAAG;IACjB,mBAAmB;IACnB,WAAW,CAAC,EAAE,iBAAiB,CAAA;IAC/B,+DAA+D;IAC/D,UAAU,EAAE,MAAM,CAAA;IAClB,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,2BAA2B;IAC3B,WAAW,EAAE,kBAAkB,CAAA;CAChC,CAAC;;;eAI4C,MAAM;;;gBAI7B,MAAM,GAAG,IAAI;qBAAe,MAAM;;;cAM7C,OAAO,CAAC;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;SAAE,CAAC;qBACxC,MAAM;;;eAMZ,MAAM;cACP,OAAO,CAAC;YACZ,GAAG,EAAE,MAAM,CAAA;YACX,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;YAC3B,UAAU,EAAE,OAAO,CAAA;SACpB,CAAC;qBACW,MAAM;;;eAGiB,MAAM;qBAAe,MAAM;;;;eA1BvB,MAAM;;;gBAI7B,MAAM,GAAG,IAAI;qBAAe,MAAM;;;cAM7C,OAAO,CAAC;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;SAAE,CAAC;qBACxC,MAAM;;;eAMZ,MAAM;cACP,OAAO,CAAC;YACZ,GAAG,EAAE,MAAM,CAAA;YACX,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;YAC3B,UAAU,EAAE,OAAO,CAAA;SACpB,CAAC;qBACW,MAAM;;;eAGiB,MAAM;qBAAe,MAAM;;;AAqlBrE,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RequestBody.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-cbed7b55"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { defineComponent as q, computed as s, watch as D, createBlock as v, openBlock as
|
|
2
|
-
import { ScalarListbox as S, ScalarButton as
|
|
3
|
-
import {
|
|
1
|
+
import { defineComponent as q, computed as s, watch as D, createBlock as v, openBlock as m, unref as l, withCtx as i, createVNode as p, createElementVNode as f, toDisplayString as w, createElementBlock as x, Fragment as O, createTextVNode as k } from "vue";
|
|
2
|
+
import { ScalarListbox as S, ScalarButton as b, ScalarIcon as B } from "@scalar/components";
|
|
3
|
+
import { objectEntries as E } from "@scalar/helpers/object/object-entries";
|
|
4
|
+
import { unpackProxyObject as j } from "@scalar/workspace-store/helpers/unpack-proxy";
|
|
4
5
|
import F from "./RequestTable.vue.js";
|
|
5
6
|
import { getFileName as N } from "../helpers/files.js";
|
|
6
7
|
import { getExampleFromBody as A } from "../helpers/get-request-body-example.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { useFileDialog as
|
|
13
|
-
const
|
|
8
|
+
import L from "../../../components/layout/CollapsibleSection.vue.js";
|
|
9
|
+
import M from "../../../components/data-table/DataTable.vue.js";
|
|
10
|
+
import z from "../../../components/data-table/DataTableHeader.vue.js";
|
|
11
|
+
import K from "../../../components/data-table/DataTableRow.vue.js";
|
|
12
|
+
import $ from "../../../components/code-input/CodeInput.vue.js";
|
|
13
|
+
import { useFileDialog as I } from "../../../../hooks/useFileDialog.js";
|
|
14
|
+
const J = {
|
|
14
15
|
key: 0,
|
|
15
16
|
class: "text-c-3 flex min-h-10 w-full items-center justify-center border-t p-2 text-sm"
|
|
16
|
-
},
|
|
17
|
+
}, P = {
|
|
17
18
|
key: 1,
|
|
18
19
|
class: "flex items-center justify-center overflow-hidden border-t p-1.5"
|
|
19
|
-
},
|
|
20
|
+
}, W = { class: "text-c-2 w-full max-w-full overflow-hidden rounded border px-1.5 py-1 text-xs whitespace-nowrap" }, ae = /* @__PURE__ */ q({
|
|
20
21
|
__name: "RequestBody",
|
|
21
22
|
props: {
|
|
22
23
|
requestBody: {},
|
|
@@ -25,12 +26,12 @@ const I = {
|
|
|
25
26
|
environment: {}
|
|
26
27
|
},
|
|
27
28
|
emits: ["update:contentType", "update:value", "add:formRow", "update:formRow", "delete:fromRow"],
|
|
28
|
-
setup(
|
|
29
|
-
const a =
|
|
29
|
+
setup(d, { emit: V }) {
|
|
30
|
+
const a = V, C = {
|
|
30
31
|
"application/json": "json",
|
|
31
32
|
"application/xml": "xml",
|
|
32
33
|
"application/yaml": "yaml"
|
|
33
|
-
},
|
|
34
|
+
}, R = {
|
|
34
35
|
"multipart/form-data": "Multipart Form",
|
|
35
36
|
"application/x-www-form-urlencoded": "Form URL Encoded",
|
|
36
37
|
"application/octet-stream": "Binary File",
|
|
@@ -41,19 +42,19 @@ const I = {
|
|
|
41
42
|
other: "Other",
|
|
42
43
|
none: "None"
|
|
43
44
|
}, o = s(
|
|
44
|
-
() =>
|
|
45
|
+
() => d.requestBody?.["x-scalar-selected-content-type"]?.[d.exampleKey] ?? Object.keys(d.requestBody?.content ?? {})[0] ?? "none"
|
|
45
46
|
);
|
|
46
47
|
D(
|
|
47
|
-
() =>
|
|
48
|
+
() => d.requestBody?.["x-scalar-selected-content-type"]?.[d.exampleKey],
|
|
48
49
|
(n) => {
|
|
49
50
|
n || a("update:contentType", { value: o.value });
|
|
50
51
|
},
|
|
51
52
|
{ immediate: !0 }
|
|
52
53
|
);
|
|
53
|
-
const y = Object.entries(
|
|
54
|
+
const y = Object.entries(R).map(([n, e]) => ({
|
|
54
55
|
id: n,
|
|
55
56
|
label: e
|
|
56
|
-
})),
|
|
57
|
+
})), T = s({
|
|
57
58
|
get: () => y.find(
|
|
58
59
|
(e) => e.id === o.value
|
|
59
60
|
) ?? y.at(-1),
|
|
@@ -61,52 +62,55 @@ const I = {
|
|
|
61
62
|
a("update:contentType", { value: n.id });
|
|
62
63
|
}
|
|
63
64
|
});
|
|
64
|
-
function
|
|
65
|
-
const { open: e } =
|
|
65
|
+
function g(n) {
|
|
66
|
+
const { open: e } = I({
|
|
66
67
|
onChange: (t) => {
|
|
67
|
-
const
|
|
68
|
-
|
|
68
|
+
const u = t?.[0];
|
|
69
|
+
u && n(u);
|
|
69
70
|
},
|
|
70
71
|
multiple: !1,
|
|
71
72
|
accept: "*/*"
|
|
72
73
|
});
|
|
73
74
|
e();
|
|
74
75
|
}
|
|
75
|
-
const
|
|
76
|
-
() =>
|
|
77
|
-
),
|
|
78
|
-
if (!
|
|
76
|
+
const r = s(
|
|
77
|
+
() => d.requestBody && A(d.requestBody, o.value, d.exampleKey)
|
|
78
|
+
), U = s(() => {
|
|
79
|
+
if (!r.value)
|
|
79
80
|
return "";
|
|
80
|
-
const n =
|
|
81
|
+
const n = r.value.value;
|
|
81
82
|
return typeof n == "string" ? n : JSON.stringify(n, null, 2);
|
|
82
|
-
}),
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
83
|
+
}), c = s(() => r.value ? Array.isArray(r.value.value) ? r.value.value : typeof r.value.value == "object" && r.value.value ? E(r.value.value).map(([n, e]) => ({
|
|
84
|
+
name: n,
|
|
85
|
+
value: e
|
|
86
|
+
})) : [] : []);
|
|
87
|
+
return (n, e) => (m(), v(l(L), null, {
|
|
88
|
+
title: i(() => [
|
|
89
|
+
k(w(n.title), 1)
|
|
86
90
|
]),
|
|
87
|
-
default:
|
|
88
|
-
p(l(
|
|
91
|
+
default: i(() => [
|
|
92
|
+
p(l(M), {
|
|
89
93
|
columns: [""],
|
|
90
94
|
presentational: ""
|
|
91
95
|
}, {
|
|
92
|
-
default:
|
|
93
|
-
p(l(
|
|
94
|
-
default:
|
|
96
|
+
default: i(() => [
|
|
97
|
+
p(l(z), { class: "relative col-span-full flex h-8 cursor-pointer items-center justify-between border-r-0 !p-0" }, {
|
|
98
|
+
default: i(() => [
|
|
95
99
|
p(l(S), {
|
|
96
|
-
modelValue:
|
|
97
|
-
"onUpdate:modelValue": e[0] || (e[0] = (t) =>
|
|
100
|
+
modelValue: T.value,
|
|
101
|
+
"onUpdate:modelValue": e[0] || (e[0] = (t) => T.value = t),
|
|
98
102
|
options: l(y),
|
|
99
103
|
teleport: ""
|
|
100
104
|
}, {
|
|
101
|
-
default:
|
|
102
|
-
p(l(
|
|
105
|
+
default: i(() => [
|
|
106
|
+
p(l(b), {
|
|
103
107
|
class: "text-c-2 hover:text-c-1 flex h-full w-fit gap-1.5 px-3 font-normal",
|
|
104
108
|
fullWidth: "",
|
|
105
109
|
variant: "ghost"
|
|
106
110
|
}, {
|
|
107
|
-
default:
|
|
108
|
-
f("span", null,
|
|
109
|
-
p(l(
|
|
111
|
+
default: i(() => [
|
|
112
|
+
f("span", null, w(R[o.value] ?? o.value), 1),
|
|
113
|
+
p(l(B), {
|
|
110
114
|
icon: "ChevronDown",
|
|
111
115
|
size: "md"
|
|
112
116
|
})
|
|
@@ -119,14 +123,14 @@ const I = {
|
|
|
119
123
|
]),
|
|
120
124
|
_: 1
|
|
121
125
|
}),
|
|
122
|
-
p(l(
|
|
123
|
-
default:
|
|
124
|
-
o.value === "none" ? (
|
|
126
|
+
p(l(K), null, {
|
|
127
|
+
default: i(() => [
|
|
128
|
+
o.value === "none" ? (m(), x("div", J, [...e[12] || (e[12] = [
|
|
125
129
|
f("span", null, "No Body", -1)
|
|
126
|
-
])])) : o.value === "application/octet-stream" ? (
|
|
127
|
-
l(N)(l(
|
|
128
|
-
f("span",
|
|
129
|
-
p(l(
|
|
130
|
+
])])) : o.value === "application/octet-stream" ? (m(), x("div", P, [
|
|
131
|
+
l(N)(l(j)(r.value?.value)) !== void 0 ? (m(), x(O, { key: 0 }, [
|
|
132
|
+
f("span", W, w(l(N)(l(j)(r.value?.value))), 1),
|
|
133
|
+
p(l(b), {
|
|
130
134
|
class: "bg-b-2 hover:bg-b-3 text-c-2 ml-1 border-0 shadow-none",
|
|
131
135
|
size: "sm",
|
|
132
136
|
variant: "outlined",
|
|
@@ -135,26 +139,26 @@ const I = {
|
|
|
135
139
|
contentType: o.value
|
|
136
140
|
}))
|
|
137
141
|
}, {
|
|
138
|
-
default:
|
|
139
|
-
|
|
142
|
+
default: i(() => [...e[13] || (e[13] = [
|
|
143
|
+
k(" Delete ", -1)
|
|
140
144
|
])]),
|
|
141
145
|
_: 1
|
|
142
146
|
})
|
|
143
|
-
], 64)) : (
|
|
147
|
+
], 64)) : (m(), v(l(b), {
|
|
144
148
|
key: 1,
|
|
145
149
|
class: "bg-b-2 hover:bg-b-3 text-c-2 border-0 shadow-none",
|
|
146
150
|
size: "sm",
|
|
147
151
|
variant: "outlined",
|
|
148
|
-
onClick: e[2] || (e[2] = () =>
|
|
152
|
+
onClick: e[2] || (e[2] = () => g(
|
|
149
153
|
(t) => a("update:value", {
|
|
150
154
|
value: t,
|
|
151
155
|
contentType: o.value
|
|
152
156
|
})
|
|
153
157
|
))
|
|
154
158
|
}, {
|
|
155
|
-
default:
|
|
156
|
-
e[14] || (e[14] = f("span", null, "
|
|
157
|
-
p(l(
|
|
159
|
+
default: i(() => [
|
|
160
|
+
e[14] || (e[14] = f("span", null, "Select File", -1)),
|
|
161
|
+
p(l(B), {
|
|
158
162
|
class: "ml-1",
|
|
159
163
|
icon: "Upload",
|
|
160
164
|
size: "xs",
|
|
@@ -163,9 +167,9 @@ const I = {
|
|
|
163
167
|
]),
|
|
164
168
|
_: 1
|
|
165
169
|
}))
|
|
166
|
-
])) : o.value === "multipart/form-data" ? (
|
|
170
|
+
])) : o.value === "multipart/form-data" ? (m(), v(F, {
|
|
167
171
|
key: 2,
|
|
168
|
-
data:
|
|
172
|
+
data: c.value,
|
|
169
173
|
environment: n.environment,
|
|
170
174
|
showUploadButton: "",
|
|
171
175
|
onAddRow: e[3] || (e[3] = (t) => a("add:formRow", {
|
|
@@ -183,26 +187,26 @@ const I = {
|
|
|
183
187
|
value: void 0
|
|
184
188
|
}
|
|
185
189
|
})),
|
|
186
|
-
onUpdateRow: e[6] || (e[6] = (t,
|
|
190
|
+
onUpdateRow: e[6] || (e[6] = (t, u) => a("update:formRow", {
|
|
187
191
|
index: t,
|
|
188
|
-
data:
|
|
192
|
+
data: u,
|
|
189
193
|
contentType: o.value
|
|
190
194
|
})),
|
|
191
|
-
onUploadFile: e[7] || (e[7] = (t) =>
|
|
192
|
-
if (t !== void 0)
|
|
195
|
+
onUploadFile: e[7] || (e[7] = (t) => g((u) => {
|
|
196
|
+
if (t !== void 0 && t < c.value.length)
|
|
193
197
|
return a("update:formRow", {
|
|
194
198
|
index: t,
|
|
195
|
-
data: { value:
|
|
199
|
+
data: { value: u },
|
|
196
200
|
contentType: o.value
|
|
197
201
|
});
|
|
198
202
|
a("add:formRow", {
|
|
199
|
-
data: {
|
|
203
|
+
data: { key: u?.name ?? "file", value: u },
|
|
200
204
|
contentType: o.value
|
|
201
205
|
});
|
|
202
206
|
}))
|
|
203
|
-
}, null, 8, ["data", "environment"])) : o.value === "application/x-www-form-urlencoded" ? (
|
|
207
|
+
}, null, 8, ["data", "environment"])) : o.value === "application/x-www-form-urlencoded" ? (m(), v(F, {
|
|
204
208
|
key: 3,
|
|
205
|
-
data:
|
|
209
|
+
data: c.value,
|
|
206
210
|
environment: n.environment,
|
|
207
211
|
onAddRow: e[8] || (e[8] = (t) => a("add:formRow", {
|
|
208
212
|
data: t,
|
|
@@ -212,20 +216,20 @@ const I = {
|
|
|
212
216
|
contentType: o.value,
|
|
213
217
|
index: t
|
|
214
218
|
})),
|
|
215
|
-
onUpdateRow: e[10] || (e[10] = (t,
|
|
219
|
+
onUpdateRow: e[10] || (e[10] = (t, u) => a("update:formRow", {
|
|
216
220
|
index: t,
|
|
217
|
-
data:
|
|
221
|
+
data: u,
|
|
218
222
|
contentType: o.value
|
|
219
223
|
}))
|
|
220
|
-
}, null, 8, ["data", "environment"])) : (
|
|
224
|
+
}, null, 8, ["data", "environment"])) : (m(), v(l($), {
|
|
221
225
|
key: 4,
|
|
222
226
|
class: "border-t px-3",
|
|
223
227
|
content: "",
|
|
224
228
|
environment: n.environment,
|
|
225
|
-
language:
|
|
229
|
+
language: C[o.value] ?? "plaintext",
|
|
226
230
|
lineNumbers: "",
|
|
227
231
|
lint: "",
|
|
228
|
-
modelValue:
|
|
232
|
+
modelValue: U.value,
|
|
229
233
|
"onUpdate:modelValue": e[11] || (e[11] = (t) => a("update:value", {
|
|
230
234
|
value: t,
|
|
231
235
|
contentType: o.value
|
|
@@ -243,5 +247,5 @@ const I = {
|
|
|
243
247
|
}
|
|
244
248
|
});
|
|
245
249
|
export {
|
|
246
|
-
|
|
250
|
+
ae as default
|
|
247
251
|
};
|
|
@@ -14,17 +14,17 @@ const $ = { class: "flex flex-1" }, q = { class: "overflow-hidden" }, Q = /* @__
|
|
|
14
14
|
props: {
|
|
15
15
|
clientOptions: {},
|
|
16
16
|
selectedClient: {},
|
|
17
|
-
selectedServer: {},
|
|
17
|
+
selectedServer: { default: null },
|
|
18
18
|
selectedContentType: {},
|
|
19
19
|
selectedExample: {},
|
|
20
|
+
eventBus: {},
|
|
20
21
|
securitySchemes: {},
|
|
21
22
|
method: {},
|
|
22
23
|
path: {},
|
|
23
24
|
operation: {},
|
|
24
25
|
fallback: { type: Boolean },
|
|
25
26
|
generateLabel: { type: Function },
|
|
26
|
-
isWebhook: { type: Boolean }
|
|
27
|
-
eventBus: {}
|
|
27
|
+
isWebhook: { type: Boolean }
|
|
28
28
|
},
|
|
29
29
|
setup(e) {
|
|
30
30
|
const d = s(() => O(e.operation)), c = s(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestTableRow.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestTableRow.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestTableRow.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/request-block/components/RequestTableRow.vue"],"names":[],"mappings":"AAiOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2EAA2E,CAAA;AACnH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,8DAA8D,CAAA;AAehG,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,QAAQ,CAAA;IACd,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,kBAAkB,CAAA;IAC/B,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAC;AAqBF,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAA;;;aAhB2B,MAAM;eAAS,MAAM;oBAAc,OAAO;;;;;;;aAA1C,MAAM;eAAS,MAAM;oBAAc,OAAO;;;;;;AAiftE,wBAOG"}
|