@scalar/api-client 2.10.0 → 2.11.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 +25 -0
- package/dist/components/ImportCollection/IntegrationLogo.vue.d.ts.map +1 -1
- package/dist/components/ImportCollection/IntegrationLogo.vue.js +1 -0
- package/dist/components/Server/ServerVariablesForm.vue.d.ts.map +1 -1
- package/dist/components/Server/ServerVariablesForm.vue.js +6 -6
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue.js +1 -1
- package/dist/components/Sidebar/Actions/SidebarListElementForm.vue2.js +14 -13
- package/dist/hooks/useClientConfig.d.ts +3 -3
- package/dist/layouts/App/create-api-client-app.d.ts +1 -1
- package/dist/layouts/Web/create-api-client-web.d.ts +1 -1
- package/dist/libs/create-client.d.ts +1 -1
- package/dist/store/store.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts +4 -6
- package/dist/v2/blocks/operation-block/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/OperationBlock.vue.js +24 -27
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts +3 -6
- package/dist/v2/blocks/operation-block/components/Header.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-block/components/Header.vue.js +2 -2
- package/dist/v2/blocks/operation-block/components/Header.vue2.js +10 -12
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.d.ts.map +1 -1
- package/dist/v2/blocks/operation-code-sample/components/ExamplePicker.vue.js +11 -10
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue.d.ts +2 -5
- 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 +2 -2
- package/dist/v2/blocks/scalar-address-bar-block/components/AddressBar.vue2.js +45 -47
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts +11 -9
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue.js +179 -5
- package/dist/v2/blocks/scalar-auth-selector-block/components/AuthSelector.vue2.js +2 -179
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.js +201 -198
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue.d.ts +11 -6
- 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/RequestAuthDataTable.vue.js +82 -5
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTable.vue2.js +2 -85
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts +3 -13
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthDataTableInput.vue.js +16 -18
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.js +133 -142
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-auth-selector-block/helpers/oauth.js +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts +2 -16
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue.js +2 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationBlock.vue2.js +202 -229
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts +3 -5
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue.js +2 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationBody.vue2.js +81 -85
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts +2 -5
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationParams.vue.js +32 -34
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts +2 -5
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue.js +2 -2
- package/dist/v2/blocks/scalar-operation-block/components/OperationTable.vue2.js +31 -33
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.d.ts +2 -5
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-operation-block/components/OperationTableRow.vue.js +42 -45
- package/dist/v2/blocks/scalar-response-block/components/Headers.vue.d.ts +2 -2
- package/dist/v2/blocks/scalar-response-block/components/Headers.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-response-block/components/Headers.vue.js +9 -9
- package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue.js +2 -2
- package/dist/v2/blocks/scalar-response-block/components/ResponseBody.vue2.js +18 -18
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue.js +14 -14
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue.js +12 -12
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-response-block/components/ResponseCookies.vue.js +13 -13
- package/dist/v2/components/data-table/DataTable.vue.d.ts.map +1 -1
- package/dist/v2/components/data-table/DataTable.vue.js +4 -4
- package/dist/v2/components/data-table/DataTableInput.vue.d.ts +5 -7
- 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 +32 -36
- package/dist/v2/components/forms/ConfirmationForm.vue.d.ts +25 -0
- package/dist/v2/components/forms/ConfirmationForm.vue.d.ts.map +1 -0
- package/dist/v2/components/forms/ConfirmationForm.vue.js +7 -0
- package/dist/v2/components/forms/ConfirmationForm.vue2.js +45 -0
- package/dist/v2/components/forms/index.d.ts +2 -0
- package/dist/v2/components/forms/index.d.ts.map +1 -0
- package/dist/v2/components/forms/index.js +4 -0
- package/dist/v2/components/layout/CollapsibleSection.vue.d.ts +43 -0
- package/dist/v2/components/layout/CollapsibleSection.vue.d.ts.map +1 -0
- package/dist/v2/components/layout/CollapsibleSection.vue.js +89 -0
- package/dist/v2/components/layout/CollapsibleSection.vue2.js +4 -0
- package/dist/v2/components/layout/ValueEmitter.vue.d.ts +23 -0
- package/dist/v2/components/layout/ValueEmitter.vue.d.ts.map +1 -0
- package/dist/v2/components/layout/ValueEmitter.vue.js +21 -0
- package/dist/v2/components/layout/ValueEmitter.vue2.js +4 -0
- package/dist/v2/components/layout/index.d.ts +2 -0
- package/dist/v2/components/layout/index.d.ts.map +1 -0
- package/dist/v2/components/layout/index.js +4 -0
- package/dist/v2/components/modals/DeleteModal.vue.d.ts +15 -0
- package/dist/v2/components/modals/DeleteModal.vue.d.ts.map +1 -0
- package/dist/v2/components/modals/DeleteModal.vue.js +31 -0
- package/dist/v2/components/modals/DeleteModal.vue2.js +4 -0
- package/dist/v2/components/modals/index.d.ts +2 -0
- package/dist/v2/components/modals/index.d.ts.map +1 -0
- package/dist/v2/components/modals/index.js +4 -0
- package/dist/v2/components/server/ServerDropdown.vue.d.ts +4 -2
- package/dist/v2/components/server/ServerDropdown.vue.d.ts.map +1 -1
- package/dist/v2/components/server/ServerDropdown.vue.js +31 -31
- package/dist/v2/components/server/ServerDropdownItem.vue.d.ts +2 -6
- package/dist/v2/components/server/ServerDropdownItem.vue.d.ts.map +1 -1
- package/dist/v2/components/server/ServerDropdownItem.vue.js +1 -1
- package/dist/v2/components/server/ServerDropdownItem.vue2.js +16 -16
- package/dist/v2/components/server/index.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts +6 -2
- package/dist/v2/components/sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/v2/components/sidebar/Sidebar.vue.js +45 -55
- package/dist/v2/features/app/App.vue.d.ts +2 -2
- package/dist/v2/features/app/App.vue.d.ts.map +1 -1
- package/dist/v2/features/app/App.vue.js +89 -74
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts +6 -2
- package/dist/v2/features/app/components/AppSidebar.vue.d.ts.map +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue.js +1 -1
- package/dist/v2/features/app/components/AppSidebar.vue2.js +50 -47
- package/dist/v2/features/app/helpers/routes.d.ts +0 -10
- package/dist/v2/features/app/helpers/routes.d.ts.map +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/DocumentCollection.vue2.js +75 -73
- package/dist/v2/features/collection/components/Authentication.vue.d.ts +13 -25
- package/dist/v2/features/collection/components/Authentication.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Authentication.vue.js +2 -2
- package/dist/v2/features/collection/components/Authentication.vue2.js +47 -35
- package/dist/v2/features/collection/components/Form.vue.d.ts +3 -7
- package/dist/v2/features/collection/components/Form.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Form.vue.js +28 -33
- package/dist/v2/features/collection/components/Servers.vue.d.ts +13 -31
- package/dist/v2/features/collection/components/Servers.vue.d.ts.map +1 -1
- package/dist/v2/features/collection/components/Servers.vue2.js +103 -82
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.d.ts.map +1 -1
- package/dist/v2/features/environments/components/EnvironmentVariablesTable.vue.js +3 -3
- package/dist/v2/features/modal/Modal.vue.d.ts.map +1 -1
- package/dist/v2/features/modal/Modal.vue.js +3 -3
- package/dist/v2/features/modal/Modal.vue2.js +40 -32
- package/dist/v2/features/operation/Operation.vue.d.ts.map +1 -1
- package/dist/v2/features/operation/Operation.vue.js +22 -28
- package/dist/v2/hooks/use-sidebar-state.d.ts +47 -0
- package/dist/v2/hooks/use-sidebar-state.d.ts.map +1 -0
- package/dist/v2/hooks/use-sidebar-state.js +112 -0
- package/dist/v2/hooks/use-workspace-client-events.d.ts.map +1 -1
- package/dist/v2/hooks/use-workspace-client-events.js +75 -107
- package/dist/views/Request/ResponseSection/ResponseEmpty.vue2.js +1 -1
- package/package.json +17 -17
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts +0 -45
- package/dist/v2/blocks/scalar-auth-selector-block/components/OAuth2.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts +0 -29
- package/dist/v2/blocks/scalar-auth-selector-block/components/RequestAuthTab.vue.d.ts.map +0 -1
- package/dist/v2/blocks/scalar-auth-selector-block/event-types.d.ts +0 -29
- package/dist/v2/blocks/scalar-auth-selector-block/event-types.d.ts.map +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as S, computed as r, resolveComponent as U, createBlock as u, openBlock as s, unref as l, normalizeClass as $, withCtx as
|
|
1
|
+
import { defineComponent as S, computed as r, resolveComponent as U, createBlock as u, openBlock as s, unref as l, normalizeClass as $, withCtx as d, createVNode as i, createCommentVNode as b, createElementVNode as m, createElementBlock as v, Fragment as D, toDisplayString as I } from "vue";
|
|
2
2
|
import { ScalarTooltip as O, ScalarIcon as y, ScalarButton as h } from "@scalar/components";
|
|
3
3
|
import { ScalarIconTrash as E } from "@scalar/icons";
|
|
4
|
-
import { unpackProxyObject as
|
|
4
|
+
import { unpackProxyObject as p } from "@scalar/workspace-store/helpers/unpack-proxy";
|
|
5
5
|
import j from "./OperationTableTooltip.vue.js";
|
|
6
6
|
import { getFileName as k } from "../helpers/files.js";
|
|
7
7
|
import { validateParameter as q } from "../helpers/validate-parameter.js";
|
|
8
|
-
import N from "
|
|
9
|
-
import P from "
|
|
10
|
-
import
|
|
11
|
-
import
|
|
8
|
+
import N from "../../../components/data-table/DataTableRow.vue.js";
|
|
9
|
+
import P from "../../../components/data-table/DataTableCheckbox.vue.js";
|
|
10
|
+
import f from "../../../components/data-table/DataTableCell.vue.js";
|
|
11
|
+
import w from "../../../components/code-input/CodeInput.vue.js";
|
|
12
12
|
const G = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center justify-center overflow-hidden p-1" }, K = {
|
|
13
13
|
key: 1,
|
|
14
14
|
class: "p-0.5"
|
|
@@ -21,23 +21,22 @@ const G = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center just
|
|
|
21
21
|
invalidParams: {},
|
|
22
22
|
label: {},
|
|
23
23
|
environment: {},
|
|
24
|
-
envVariables: {},
|
|
25
24
|
showUploadButton: { type: Boolean }
|
|
26
25
|
},
|
|
27
26
|
emits: ["updateRow", "deleteRow", "uploadFile", "removeFile"],
|
|
28
|
-
setup(t, { emit:
|
|
29
|
-
const n =
|
|
27
|
+
setup(t, { emit: V }) {
|
|
28
|
+
const n = V, R = r(() => t.data.schema?.default), g = r(() => t.data.schema?.enum), B = r(
|
|
30
29
|
() => t.data.schema && "minimum" in t.data.schema ? t.data.schema.minimum : void 0
|
|
31
30
|
), C = r(
|
|
32
31
|
() => t.data.schema && "maximum" in t.data.schema ? t.data.schema.maximum : void 0
|
|
33
32
|
), F = r(
|
|
34
33
|
() => t.data.schema && "type" in t.data.schema ? t.data.schema.type : void 0
|
|
35
|
-
),
|
|
34
|
+
), c = r(
|
|
36
35
|
() => q(t.data.schema, t.data.value)
|
|
37
|
-
),
|
|
36
|
+
), x = (e) => e instanceof File, T = r({
|
|
38
37
|
get: () => {
|
|
39
|
-
const e =
|
|
40
|
-
return e instanceof File ? k(
|
|
38
|
+
const e = p(t.data.value);
|
|
39
|
+
return e instanceof File ? k(p(t.data.value)) ?? "" : e === null ? "" : e;
|
|
41
40
|
},
|
|
42
41
|
set: (e) => {
|
|
43
42
|
typeof e == "string" && n("updateRow", { value: e });
|
|
@@ -48,24 +47,24 @@ const G = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center just
|
|
|
48
47
|
return s(), u(l(N), {
|
|
49
48
|
id: e.data.name,
|
|
50
49
|
class: $({
|
|
51
|
-
alert:
|
|
52
|
-
error:
|
|
50
|
+
alert: c.value.ok === !1,
|
|
51
|
+
error: c.value.ok === !1 && e.invalidParams?.has(e.data.name)
|
|
53
52
|
})
|
|
54
53
|
}, {
|
|
55
|
-
default:
|
|
54
|
+
default: d(() => [
|
|
56
55
|
e.data.globalRoute !== void 0 ? (s(), u(z, {
|
|
57
56
|
key: 0,
|
|
58
57
|
class: "text-c-2 flex items-center justify-center border-t !border-r",
|
|
59
58
|
to: e.data.globalRoute ?? {}
|
|
60
59
|
}, {
|
|
61
|
-
default:
|
|
60
|
+
default: d(() => [
|
|
62
61
|
a[8] || (a[8] = m("span", { class: "sr-only" }, "Global", -1)),
|
|
63
|
-
|
|
62
|
+
i(l(O), {
|
|
64
63
|
content: "Global cookies are shared across the whole workspace.",
|
|
65
64
|
placement: "top"
|
|
66
65
|
}, {
|
|
67
|
-
default:
|
|
68
|
-
|
|
66
|
+
default: d(() => [
|
|
67
|
+
i(l(y), {
|
|
69
68
|
class: "text-c-1",
|
|
70
69
|
icon: "Globe",
|
|
71
70
|
size: "xs",
|
|
@@ -83,15 +82,14 @@ const G = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center just
|
|
|
83
82
|
modelValue: !e.data.isDisabled,
|
|
84
83
|
"onUpdate:modelValue": a[0] || (a[0] = (o) => n("updateRow", { isEnabled: o }))
|
|
85
84
|
}, null, 8, ["disabled", "modelValue"])),
|
|
86
|
-
|
|
87
|
-
default:
|
|
88
|
-
|
|
85
|
+
i(l(f), null, {
|
|
86
|
+
default: d(() => [
|
|
87
|
+
i(l(w), {
|
|
89
88
|
"aria-label": `${e.label} Key`,
|
|
90
89
|
disableCloseBrackets: "",
|
|
91
90
|
disabled: e.isReadOnly,
|
|
92
91
|
disableEnter: "",
|
|
93
92
|
disableTabIndent: "",
|
|
94
|
-
envVariables: e.envVariables,
|
|
95
93
|
environment: e.environment,
|
|
96
94
|
lineWrapping: "",
|
|
97
95
|
modelValue: e.data.name,
|
|
@@ -99,13 +97,13 @@ const G = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center just
|
|
|
99
97
|
required: !!e.data.isRequired,
|
|
100
98
|
onSelectVariable: a[1] || (a[1] = (o) => n("updateRow", { key: o })),
|
|
101
99
|
"onUpdate:modelValue": a[2] || (a[2] = (o) => n("updateRow", { key: o }))
|
|
102
|
-
}, null, 8, ["aria-label", "disabled", "
|
|
100
|
+
}, null, 8, ["aria-label", "disabled", "environment", "modelValue", "required"])
|
|
103
101
|
]),
|
|
104
102
|
_: 1
|
|
105
103
|
}),
|
|
106
|
-
|
|
107
|
-
default:
|
|
108
|
-
|
|
104
|
+
i(l(f), null, {
|
|
105
|
+
default: d(() => [
|
|
106
|
+
i(l(w), {
|
|
109
107
|
"aria-label": `${e.label} Value`,
|
|
110
108
|
class: "pr-6 group-hover:pr-10 group-has-[.cm-focused]:pr-10",
|
|
111
109
|
default: R.value,
|
|
@@ -114,18 +112,17 @@ const G = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center just
|
|
|
114
112
|
disableEnter: "",
|
|
115
113
|
disableTabIndent: "",
|
|
116
114
|
enum: g.value ?? [],
|
|
117
|
-
envVariables: e.envVariables,
|
|
118
115
|
environment: e.environment,
|
|
119
116
|
lineWrapping: "",
|
|
120
117
|
max: C.value,
|
|
121
118
|
min: B.value,
|
|
122
|
-
modelValue:
|
|
119
|
+
modelValue: T.value,
|
|
123
120
|
placeholder: "Value",
|
|
124
121
|
type: F.value,
|
|
125
122
|
onSelectVariable: a[4] || (a[4] = (o) => n("updateRow", { value: o })),
|
|
126
123
|
"onUpdate:modelValue": a[5] || (a[5] = (o) => n("updateRow", { value: o }))
|
|
127
124
|
}, {
|
|
128
|
-
icon:
|
|
125
|
+
icon: d(() => [
|
|
129
126
|
(e.data.name || e.data.value) && !e.data.isRequired ? (s(), u(l(h), {
|
|
130
127
|
key: 0,
|
|
131
128
|
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",
|
|
@@ -133,46 +130,46 @@ const G = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center just
|
|
|
133
130
|
variant: "ghost",
|
|
134
131
|
onClick: a[3] || (a[3] = (o) => n("deleteRow"))
|
|
135
132
|
}, {
|
|
136
|
-
default:
|
|
137
|
-
|
|
133
|
+
default: d(() => [
|
|
134
|
+
i(l(E), { class: "size-3.5" })
|
|
138
135
|
]),
|
|
139
136
|
_: 1
|
|
140
|
-
})) :
|
|
137
|
+
})) : b("", !0),
|
|
141
138
|
e.data.schema ? (s(), u(j, {
|
|
142
139
|
key: 1,
|
|
143
140
|
schema: e.data.schema,
|
|
144
141
|
value: e.data.value
|
|
145
|
-
}, null, 8, ["schema", "value"])) :
|
|
142
|
+
}, null, 8, ["schema", "value"])) : b("", !0)
|
|
146
143
|
]),
|
|
147
144
|
_: 1
|
|
148
|
-
}, 8, ["aria-label", "default", "disabled", "enum", "
|
|
145
|
+
}, 8, ["aria-label", "default", "disabled", "enum", "environment", "max", "min", "modelValue", "type"])
|
|
149
146
|
]),
|
|
150
147
|
_: 1
|
|
151
148
|
}),
|
|
152
|
-
e.showUploadButton ? (s(), u(l(
|
|
149
|
+
e.showUploadButton ? (s(), u(l(f), {
|
|
153
150
|
key: 2,
|
|
154
151
|
class: "group/upload flex items-center justify-center whitespace-nowrap"
|
|
155
152
|
}, {
|
|
156
|
-
default:
|
|
157
|
-
|
|
153
|
+
default: d(() => [
|
|
154
|
+
x(l(p)(e.data.value)) ? (s(), v(D, { key: 0 }, [
|
|
158
155
|
m("div", G, [
|
|
159
|
-
m("span", null, I(l(k)(l(
|
|
156
|
+
m("span", null, I(l(k)(l(p)(e.data.value))), 1)
|
|
160
157
|
]),
|
|
161
158
|
m("button", {
|
|
162
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",
|
|
163
160
|
type: "button",
|
|
164
161
|
onClick: a[6] || (a[6] = (o) => n("removeFile"))
|
|
165
162
|
}, " Delete ")
|
|
166
|
-
], 64)) : (s(),
|
|
167
|
-
|
|
163
|
+
], 64)) : (s(), v("div", K, [
|
|
164
|
+
i(l(h), {
|
|
168
165
|
class: "bg-b-2 hover:bg-b-3 text-c-2 h-fit border-0 py-px shadow-none",
|
|
169
166
|
size: "sm",
|
|
170
167
|
variant: "outlined",
|
|
171
168
|
onClick: a[7] || (a[7] = (o) => n("uploadFile"))
|
|
172
169
|
}, {
|
|
173
|
-
default:
|
|
170
|
+
default: d(() => [
|
|
174
171
|
a[9] || (a[9] = m("span", null, "Upload File", -1)),
|
|
175
|
-
|
|
172
|
+
i(l(y), {
|
|
176
173
|
class: "ml-1",
|
|
177
174
|
icon: "Upload",
|
|
178
175
|
size: "xs",
|
|
@@ -184,7 +181,7 @@ const G = { class: "text-c-2 filemask flex w-full max-w-[100%] items-center just
|
|
|
184
181
|
]))
|
|
185
182
|
]),
|
|
186
183
|
_: 1
|
|
187
|
-
})) :
|
|
184
|
+
})) : b("", !0)
|
|
188
185
|
]),
|
|
189
186
|
_: 1
|
|
190
187
|
}, 8, ["id", "class"]);
|
|
@@ -5,9 +5,9 @@ type Header = {
|
|
|
5
5
|
type __VLS_Props = {
|
|
6
6
|
headers: Header[];
|
|
7
7
|
};
|
|
8
|
-
declare var
|
|
8
|
+
declare var __VLS_6: {};
|
|
9
9
|
type __VLS_Slots = {} & {
|
|
10
|
-
title?: (props: typeof
|
|
10
|
+
title?: (props: typeof __VLS_6) => any;
|
|
11
11
|
};
|
|
12
12
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
13
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Headers.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-response-block/components/Headers.vue"],"names":[],"mappings":"AA8EA,KAAK,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAE7C,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB,CAAC;
|
|
1
|
+
{"version":3,"file":"Headers.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-response-block/components/Headers.vue"],"names":[],"mappings":"AA8EA,KAAK,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAE7C,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,EAAE,CAAA;CAClB,CAAC;AAuKF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AA0B7C,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as x, createBlock as f, openBlock as t, withCtx as e, createElementBlock as s, createVNode as n,
|
|
1
|
+
import { defineComponent as x, createBlock as f, openBlock as t, unref as m, withCtx as e, createElementBlock as s, createVNode as n, createTextVNode as l, Fragment as u, renderList as y, toDisplayString as i, renderSlot as h } from "vue";
|
|
2
2
|
import b from "../../../../components/DataTable/DataTable.vue.js";
|
|
3
3
|
import c from "../../../../components/DataTable/DataTableRow.vue.js";
|
|
4
4
|
import p from "../../../../components/DataTable/DataTableText.vue.js";
|
|
5
5
|
import g from "../../../../components/HelpfulLink.vue.js";
|
|
6
|
-
import k from "../../../../
|
|
7
|
-
import
|
|
6
|
+
import { httpHeaders as k } from "../../../../data/httpHeaders.js";
|
|
7
|
+
import w from "../../../components/layout/CollapsibleSection.vue.js";
|
|
8
8
|
import _ from "../../../../components/DataTable/DataTableHeader.vue.js";
|
|
9
9
|
const C = {
|
|
10
10
|
key: 0,
|
|
@@ -18,10 +18,10 @@ const C = {
|
|
|
18
18
|
headers: {}
|
|
19
19
|
},
|
|
20
20
|
setup($) {
|
|
21
|
-
const
|
|
21
|
+
const d = (r) => k.find(
|
|
22
22
|
(o) => o.name.toLowerCase() === r.toLowerCase()
|
|
23
23
|
);
|
|
24
|
-
return (r, o) => (t(), f(
|
|
24
|
+
return (r, o) => (t(), f(m(w), {
|
|
25
25
|
class: "overflow-auto",
|
|
26
26
|
defaultOpen: !1,
|
|
27
27
|
itemCount: r.headers.length
|
|
@@ -38,13 +38,13 @@ const C = {
|
|
|
38
38
|
default: e(() => [
|
|
39
39
|
n(c, { class: "sr-only !block" }, {
|
|
40
40
|
default: e(() => [
|
|
41
|
-
n(
|
|
41
|
+
n(m(_), null, {
|
|
42
42
|
default: e(() => [...o[0] || (o[0] = [
|
|
43
43
|
l("Header Key", -1)
|
|
44
44
|
])]),
|
|
45
45
|
_: 1
|
|
46
46
|
}),
|
|
47
|
-
n(
|
|
47
|
+
n(m(_), null, {
|
|
48
48
|
default: e(() => [...o[1] || (o[1] = [
|
|
49
49
|
l("Header Value", -1)
|
|
50
50
|
])]),
|
|
@@ -60,10 +60,10 @@ const C = {
|
|
|
60
60
|
default: e(() => [
|
|
61
61
|
n(p, { class: "bg-b-1 sticky left-0 z-1 max-w-full group-first/row:border-t-0" }, {
|
|
62
62
|
default: e(() => [
|
|
63
|
-
typeof
|
|
63
|
+
typeof d(a.name)?.url == "string" ? (t(), f(g, {
|
|
64
64
|
key: 0,
|
|
65
65
|
class: "decoration-c-3",
|
|
66
|
-
href:
|
|
66
|
+
href: d(a.name).url
|
|
67
67
|
}, {
|
|
68
68
|
default: e(() => [
|
|
69
69
|
l(i(a.name), 1)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseBody.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-response-block/components/ResponseBody.vue"],"names":[],"mappings":"AAuGA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAC3C,CAAC;;
|
|
1
|
+
{"version":3,"file":"ResponseBody.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-response-block/components/ResponseBody.vue"],"names":[],"mappings":"AAuGA,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC9B,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAC3C,CAAC;;AAwLF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ResponseBody.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4f20aa18"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
s as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { defineComponent as w, ref as g, computed as l, createBlock as n, openBlock as t,
|
|
2
|
-
import _ from "../../../../components/ViewLayout/ViewLayoutCollapse.vue.js";
|
|
1
|
+
import { defineComponent as w, ref as g, computed as l, createBlock as n, openBlock as t, unref as x, createSlots as B, withCtx as u, createElementBlock as k, createCommentVNode as r, createElementVNode as p, toDisplayString as c, createTextVNode as v, createVNode as _ } from "vue";
|
|
3
2
|
import { processResponseBody as R } from "../helpers/process-response-body.js";
|
|
4
3
|
import { getMediaTypeConfig as T } from "../helpers/media-types.js";
|
|
5
4
|
import V from "./ResponseBodyDownload.vue.js";
|
|
@@ -7,10 +6,11 @@ import U from "./ResponseBodyInfo.vue.js";
|
|
|
7
6
|
import b from "./ResponseBodyPreview.vue.js";
|
|
8
7
|
import C from "./ResponseBodyRaw.vue.js";
|
|
9
8
|
import N from "./ResponseBodyToggle.vue.js";
|
|
9
|
+
import S from "../../../components/layout/CollapsibleSection.vue.js";
|
|
10
10
|
const $ = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "bg-b-1 flex max-h-[calc(100%-32px)] flex-col overflow-hidden"
|
|
13
|
-
}, E = { class: "box-content flex min-h-8 items-center justify-between border-y px-3" }, P = { class: "text-xxs font-code leading-3" },
|
|
13
|
+
}, E = { class: "box-content flex min-h-8 items-center justify-between border-y px-3" }, P = { class: "text-xxs font-code leading-3" }, H = /* @__PURE__ */ w({
|
|
14
14
|
__name: "ResponseBody",
|
|
15
15
|
props: {
|
|
16
16
|
title: {},
|
|
@@ -29,21 +29,21 @@ const $ = {
|
|
|
29
29
|
), a = l(
|
|
30
30
|
() => T(e.value.mimeType?.essence ?? "")
|
|
31
31
|
);
|
|
32
|
-
return (o,
|
|
32
|
+
return (o, i) => (t(), n(x(S), {
|
|
33
33
|
class: "max-h-content overflow-y-hidden",
|
|
34
|
-
|
|
35
|
-
},
|
|
36
|
-
title:
|
|
37
|
-
c(
|
|
34
|
+
isStatic: o.layout === "reference"
|
|
35
|
+
}, B({
|
|
36
|
+
title: u(() => [
|
|
37
|
+
v(c(o.title), 1)
|
|
38
38
|
]),
|
|
39
|
-
default:
|
|
40
|
-
o.data ? (t(),
|
|
39
|
+
default: u(() => [
|
|
40
|
+
o.data ? (t(), k("div", $, [
|
|
41
41
|
p("div", E, [
|
|
42
|
-
p("span", P,
|
|
42
|
+
p("span", P, c(e.value.mimeType?.essence), 1),
|
|
43
43
|
m.value ? (t(), n(N, {
|
|
44
44
|
key: 0,
|
|
45
45
|
modelValue: s.value,
|
|
46
|
-
"onUpdate:modelValue":
|
|
46
|
+
"onUpdate:modelValue": i[0] || (i[0] = (h) => s.value = h)
|
|
47
47
|
}, null, 8, ["modelValue"])) : r("", !0)
|
|
48
48
|
]),
|
|
49
49
|
a.value?.raw && y.value ? (t(), n(C, {
|
|
@@ -59,8 +59,8 @@ const $ = {
|
|
|
59
59
|
type: e.value.mimeType?.essence ?? ""
|
|
60
60
|
}, null, 8, ["alpha", "mode", "src", "type"])) : r("", !0),
|
|
61
61
|
!a.value?.raw && !a.value?.preview ? (t(), n(U, { key: 2 }, {
|
|
62
|
-
default:
|
|
63
|
-
|
|
62
|
+
default: u(() => [...i[1] || (i[1] = [
|
|
63
|
+
v(" Binary file ", -1)
|
|
64
64
|
])]),
|
|
65
65
|
_: 1
|
|
66
66
|
})) : r("", !0)
|
|
@@ -70,8 +70,8 @@ const $ = {
|
|
|
70
70
|
}, [
|
|
71
71
|
o.data && e.value.dataUrl ? {
|
|
72
72
|
name: "actions",
|
|
73
|
-
fn:
|
|
74
|
-
|
|
73
|
+
fn: u(() => [
|
|
74
|
+
_(V, {
|
|
75
75
|
filename: e.value.attachmentFilename,
|
|
76
76
|
href: e.value.dataUrl,
|
|
77
77
|
type: e.value.mimeType?.essence
|
|
@@ -79,9 +79,9 @@ const $ = {
|
|
|
79
79
|
]),
|
|
80
80
|
key: "0"
|
|
81
81
|
} : void 0
|
|
82
|
-
]), 1032, ["
|
|
82
|
+
]), 1032, ["isStatic"]));
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
85
|
export {
|
|
86
|
-
|
|
86
|
+
H as default
|
|
87
87
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseBodyStreaming.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue"],"names":[],"mappings":"AA+GA,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,2BAA2B,CAAC,UAAU,CAAC,CAAA;CAChD,CAAC;;
|
|
1
|
+
{"version":3,"file":"ResponseBodyStreaming.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-response-block/components/ResponseBodyStreaming.vue"],"names":[],"mappings":"AA+GA,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,2BAA2B,CAAC,UAAU,CAAC,CAAA;CAChD,CAAC;;AAkLF,wBAMG"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as y, ref as
|
|
1
|
+
import { defineComponent as y, ref as d, watch as _, nextTick as w, onMounted as h, onBeforeUnmount as k, createBlock as L, openBlock as s, unref as l, withCtx as p, createElementVNode as i, createElementBlock as c, createCommentVNode as u, toDisplayString as g, createVNode as B } from "vue";
|
|
2
2
|
import { useLoadingState as S, ScalarLoading as b } from "@scalar/components";
|
|
3
|
-
import C from "
|
|
3
|
+
import C from "../../../components/layout/CollapsibleSection.vue.js";
|
|
4
4
|
const T = { class: "flex w-full items-center justify-between" }, E = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "mr-2 flex items-center gap-2"
|
|
@@ -16,7 +16,7 @@ const T = { class: "flex w-full items-center justify-between" }, E = {
|
|
|
16
16
|
reader: {}
|
|
17
17
|
},
|
|
18
18
|
setup(f) {
|
|
19
|
-
const e = S(), o =
|
|
19
|
+
const e = S(), o = d(""), a = d(null), m = new TextDecoder(), r = d(null), v = () => {
|
|
20
20
|
r.value && (r.value.scrollTop = r.value.scrollHeight);
|
|
21
21
|
};
|
|
22
22
|
_(o, () => {
|
|
@@ -42,27 +42,27 @@ const T = { class: "flex w-full items-center justify-between" }, E = {
|
|
|
42
42
|
e.startLoading(), x(), a.value = null;
|
|
43
43
|
}), k(() => {
|
|
44
44
|
f.reader.cancel(), e.stopLoading();
|
|
45
|
-
}), (n, t) => (s(), L(C, { class: "max-h-content overflow-y-hidden" }, {
|
|
45
|
+
}), (n, t) => (s(), L(l(C), { class: "max-h-content overflow-y-hidden" }, {
|
|
46
46
|
title: p(() => [
|
|
47
|
-
|
|
48
|
-
t[1] || (t[1] =
|
|
49
|
-
|
|
50
|
-
B(
|
|
51
|
-
loadingState:
|
|
47
|
+
i("div", T, [
|
|
48
|
+
t[1] || (t[1] = i("div", null, "Body", -1)),
|
|
49
|
+
l(e).isLoading ? (s(), c("div", E, [
|
|
50
|
+
B(l(b), {
|
|
51
|
+
loadingState: l(e),
|
|
52
52
|
size: "xs"
|
|
53
53
|
}, null, 8, ["loadingState"]),
|
|
54
|
-
t[0] || (t[0] =
|
|
55
|
-
])) :
|
|
54
|
+
t[0] || (t[0] = i("span", { class: "text-c-2" }, " Listening… ", -1))
|
|
55
|
+
])) : u("", !0)
|
|
56
56
|
])
|
|
57
57
|
]),
|
|
58
58
|
default: p(() => [
|
|
59
|
-
|
|
59
|
+
i("div", {
|
|
60
60
|
ref_key: "contentContainer",
|
|
61
61
|
ref: r,
|
|
62
62
|
class: "text-xxs font-code h-full overflow-auto leading-2 whitespace-pre-wrap"
|
|
63
63
|
}, [
|
|
64
|
-
a.value ? (s(),
|
|
65
|
-
o.value ? (s(),
|
|
64
|
+
a.value ? (s(), c("div", N, g(a.value.message), 1)) : u("", !0),
|
|
65
|
+
o.value ? (s(), c("div", V, g(o.value), 1)) : u("", !0)
|
|
66
66
|
], 512)
|
|
67
67
|
]),
|
|
68
68
|
_: 1
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseBodyVirtual.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue"],"names":[],"mappings":"AAmEA,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAC3C,CAAC;;
|
|
1
|
+
{"version":3,"file":"ResponseBodyVirtual.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-response-block/components/ResponseBodyVirtual.vue"],"names":[],"mappings":"AAmEA,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,OAAO,CAAA;IACb,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAC3C,CAAC;;AA0GF,wBAMG"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as i, computed as r, createBlock as d, openBlock as m, unref as n, createSlots as c, withCtx as a, createElementVNode as f, createVNode as s, createTextVNode as p } from "vue";
|
|
2
2
|
import { ScalarVirtualText as u } from "@scalar/components";
|
|
3
3
|
import { formatJsonOrYamlString as x } from "@scalar/oas-utils/helpers";
|
|
4
|
-
import h from "
|
|
5
|
-
import
|
|
6
|
-
import v from "
|
|
7
|
-
const S = /* @__PURE__ */
|
|
4
|
+
import { processResponseBody as h } from "../helpers/process-response-body.js";
|
|
5
|
+
import y from "./ResponseBodyDownload.vue.js";
|
|
6
|
+
import v from "../../../components/layout/CollapsibleSection.vue.js";
|
|
7
|
+
const S = /* @__PURE__ */ i({
|
|
8
8
|
__name: "ResponseBodyVirtual",
|
|
9
9
|
props: {
|
|
10
10
|
content: {},
|
|
@@ -12,23 +12,23 @@ const S = /* @__PURE__ */ l({
|
|
|
12
12
|
headers: {}
|
|
13
13
|
},
|
|
14
14
|
setup(o) {
|
|
15
|
-
const
|
|
16
|
-
() =>
|
|
15
|
+
const l = r(() => x(o.content)), e = r(
|
|
16
|
+
() => h({
|
|
17
17
|
data: o.data,
|
|
18
18
|
headers: o.headers
|
|
19
19
|
})
|
|
20
20
|
);
|
|
21
|
-
return (b, t) => (
|
|
21
|
+
return (b, t) => (m(), d(n(v), { class: "!max-h-100% response-body-virtual overflow-x-auto" }, c({
|
|
22
22
|
title: a(() => [
|
|
23
23
|
t[0] || (t[0] = p("Body", -1))
|
|
24
24
|
]),
|
|
25
25
|
default: a(() => [
|
|
26
|
-
t[1] || (t[1] =
|
|
27
|
-
n(
|
|
26
|
+
t[1] || (t[1] = f("div", { class: "font-code text-xxs rounded-t border border-b-0 px-2.5 py-1.5" }, " This response body is massive! Syntax highlighting won't work here. ", -1)),
|
|
27
|
+
s(n(u), {
|
|
28
28
|
containerClass: "custom-scroll scalar-code-block border rounded-b flex flex-1 max-h-screen",
|
|
29
29
|
contentClass: "language-plaintext whitespace-pre font-code text-base",
|
|
30
30
|
lineHeight: 20,
|
|
31
|
-
text:
|
|
31
|
+
text: l.value
|
|
32
32
|
}, null, 8, ["text"])
|
|
33
33
|
]),
|
|
34
34
|
_: 2
|
|
@@ -36,7 +36,7 @@ const S = /* @__PURE__ */ l({
|
|
|
36
36
|
e.value.dataUrl ? {
|
|
37
37
|
name: "actions",
|
|
38
38
|
fn: a(() => [
|
|
39
|
-
|
|
39
|
+
s(y, {
|
|
40
40
|
filename: e.value.attachmentFilename,
|
|
41
41
|
href: e.value.dataUrl,
|
|
42
42
|
type: e.value.mimeType?.essence
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseCookies.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-response-block/components/ResponseCookies.vue"],"names":[],"mappings":"AA2CA,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAC3C,CAAC;;
|
|
1
|
+
{"version":3,"file":"ResponseCookies.vue.d.ts","sourceRoot":"","sources":["../../../../../src/v2/blocks/scalar-response-block/components/ResponseCookies.vue"],"names":[],"mappings":"AA2CA,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAC3C,CAAC;;AA8GF,wBAMG"}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { defineComponent as c, createBlock as r, openBlock as e, withCtx as t, createElementBlock as s, Fragment as i, renderList as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as c, createBlock as r, openBlock as e, unref as f, withCtx as t, createElementBlock as s, Fragment as i, renderList as u, createVNode as a, createTextVNode as p } from "vue";
|
|
2
|
+
import k from "../../../../components/DataTable/DataTable.vue.js";
|
|
3
|
+
import _ from "../../../../components/DataTable/DataTableRow.vue.js";
|
|
4
4
|
import m from "../../../../components/DataTable/DataTableText.vue.js";
|
|
5
|
-
import
|
|
6
|
-
const
|
|
5
|
+
import d from "../../../components/layout/CollapsibleSection.vue.js";
|
|
6
|
+
const x = {
|
|
7
7
|
key: 1,
|
|
8
8
|
class: "text-c-3 bg-b-1 flex min-h-[65px] items-center justify-center border-t px-4 text-sm"
|
|
9
|
-
},
|
|
9
|
+
}, N = /* @__PURE__ */ c({
|
|
10
10
|
__name: "ResponseCookies",
|
|
11
11
|
props: {
|
|
12
12
|
cookies: {}
|
|
13
13
|
},
|
|
14
|
-
setup(
|
|
15
|
-
return (o, l) => (e(), r(
|
|
14
|
+
setup(C) {
|
|
15
|
+
return (o, l) => (e(), r(f(d), {
|
|
16
16
|
defaultOpen: !1,
|
|
17
17
|
itemCount: o.cookies.length
|
|
18
18
|
}, {
|
|
19
19
|
title: t(() => [...l[0] || (l[0] = [
|
|
20
|
-
|
|
20
|
+
p("Cookies", -1)
|
|
21
21
|
])]),
|
|
22
22
|
default: t(() => [
|
|
23
23
|
(e(), s(i, { key: 0 }, [
|
|
24
|
-
o.cookies.length ? (e(), r(
|
|
24
|
+
o.cookies.length ? (e(), r(k, {
|
|
25
25
|
key: 0,
|
|
26
26
|
class: "flex-1",
|
|
27
27
|
columns: ["", ""]
|
|
28
28
|
}, {
|
|
29
29
|
default: t(() => [
|
|
30
|
-
(e(!0), s(i, null,
|
|
30
|
+
(e(!0), s(i, null, u(o.cookies, (n) => (e(), r(_, {
|
|
31
31
|
key: n.name
|
|
32
32
|
}, {
|
|
33
33
|
default: t(() => [
|
|
@@ -42,7 +42,7 @@ const d = {
|
|
|
42
42
|
}, 1024))), 128))
|
|
43
43
|
]),
|
|
44
44
|
_: 1
|
|
45
|
-
})) : (e(), s("div",
|
|
45
|
+
})) : (e(), s("div", x, " No cookies "))
|
|
46
46
|
], 64))
|
|
47
47
|
]),
|
|
48
48
|
_: 1
|
|
@@ -50,5 +50,5 @@ const d = {
|
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
52
|
export {
|
|
53
|
-
|
|
53
|
+
N as default
|
|
54
54
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/data-table/DataTable.vue"],"names":[],"mappings":"AAwCA,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,CAAA;IAC/B,0BAA0B;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,2BAA2B;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,CAAC;
|
|
1
|
+
{"version":3,"file":"DataTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/data-table/DataTable.vue"],"names":[],"mappings":"AAwCA,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,CAAA;IAC/B,0BAA0B;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,2BAA2B;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB,CAAC;AA6CF,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC3C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAoB/C,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAQ1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as r, createElementBlock as o, openBlock as l, normalizeProps as n, guardReactiveProps as i, unref as m, createElementVNode as p, normalizeStyle as c, normalizeClass as u, createCommentVNode as d, renderSlot as t } from "vue";
|
|
2
2
|
import { useBindCx as f } from "@scalar/components";
|
|
3
3
|
const b = ["role"], y = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "sr-only"
|
|
6
|
-
}, _ = /* @__PURE__ */
|
|
6
|
+
}, _ = /* @__PURE__ */ r({
|
|
7
7
|
__name: "DataTable",
|
|
8
8
|
props: {
|
|
9
9
|
columns: {},
|
|
@@ -19,10 +19,10 @@ const b = ["role"], y = {
|
|
|
19
19
|
)
|
|
20
20
|
)), [
|
|
21
21
|
p("table", {
|
|
22
|
-
class: u(["mb-0 grid min-h-8 auto-rows-auto
|
|
22
|
+
class: u(["mb-0 grid min-h-8 auto-rows-auto", { "w-max min-w-full": e.scroll }]),
|
|
23
23
|
role: e.presentational ? "presentation" : "table",
|
|
24
24
|
style: c({
|
|
25
|
-
gridTemplateColumns: e.columns.map((
|
|
25
|
+
gridTemplateColumns: e.columns.map((s) => s || "1fr").join(" ")
|
|
26
26
|
})
|
|
27
27
|
}, [
|
|
28
28
|
e.$slots.caption ? (l(), o("caption", y, [
|