@scalar/api-reference 1.25.69 → 1.25.71
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 +33 -0
- package/dist/browser/standalone.js +10502 -10518
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +1 -1
- package/dist/components/Content/Content.vue.d.ts +4 -2
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +1 -1
- package/dist/components/Content/Content.vue2.js +33 -33
- package/dist/components/Content/Lazy/Loading.vue.d.ts +3 -3
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.js +27 -27
- package/dist/components/Content/Tag/TagList.vue.d.ts +1 -1
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.js +33 -35
- package/dist/components/Content/Webhooks/index.d.ts +1 -1
- package/dist/components/Content/Webhooks/index.d.ts.map +1 -1
- package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/{Content/Operation/EndpointPath.vue.d.ts → OperationPath.vue.d.ts} +1 -1
- package/dist/components/OperationPath.vue.d.ts.map +1 -0
- package/dist/components/OperationPath.vue.js +7 -0
- package/dist/components/OperationPath.vue2.js +23 -0
- package/dist/components/Section/Section.vue2.js +4 -4
- package/dist/embeds/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/embeds/OpenApiDocument/OpenApiDocument.vue.d.ts.map +1 -1
- package/dist/features/BaseUrl/ServerVariablesForm.vue.js +1 -1
- package/dist/{components/Content/Operation/EndpointDetailsCard.vue.d.ts → features/Operation/Operation.vue.d.ts} +6 -2
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -0
- package/dist/features/Operation/Operation.vue.js +25 -0
- package/dist/features/Operation/Operation.vue2.js +4 -0
- package/dist/features/Operation/Webhooks.vue.d.ts.map +1 -0
- package/dist/features/Operation/Webhooks.vue.js +7 -0
- package/dist/{components/Content/Webhooks → features/Operation}/Webhooks.vue2.js +12 -12
- package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -0
- package/dist/{components/Content/Operation → features/Operation/components}/ContentTypeSelect.vue.js +2 -2
- package/dist/{components/Content/Operation → features/Operation/components}/ContentTypeSelect.vue2.js +8 -8
- package/dist/features/Operation/components/OperationParameters.vue.d.ts +7 -0
- package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -0
- package/dist/features/Operation/components/OperationParameters.vue.js +71 -0
- package/dist/features/Operation/components/OperationParameters.vue2.js +4 -0
- package/dist/{components/Content/Operation/EndpointDetails.vue.d.ts → features/Operation/components/OperationResponses.vue.d.ts} +5 -2
- package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -0
- package/dist/features/Operation/components/OperationResponses.vue.js +25 -0
- package/dist/features/Operation/components/OperationResponses.vue2.js +4 -0
- package/dist/features/Operation/components/ParameterHeaders.vue.d.ts.map +1 -0
- package/dist/features/Operation/components/ParameterHeaders.vue.js +7 -0
- package/dist/{components/Content/Operation → features/Operation/components}/ParameterHeaders.vue2.js +8 -8
- package/dist/{components/Content/Operation/Parameters.vue.d.ts → features/Operation/components/ParameterList.vue.d.ts} +3 -3
- package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -0
- package/dist/features/Operation/components/ParameterList.vue.js +7 -0
- package/dist/{components/Content/Operation/Parameters.vue2.js → features/Operation/components/ParameterList.vue2.js} +7 -7
- package/dist/{components/Content/Operation/ParameterItem.vue.d.ts → features/Operation/components/ParameterListItem.vue.d.ts} +3 -3
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -0
- package/dist/features/Operation/components/ParameterListItem.vue.js +7 -0
- package/dist/{components/Content/Operation/ParameterItem.vue2.js → features/Operation/components/ParameterListItem.vue2.js} +20 -20
- package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -0
- package/dist/{components/Content/Operation → features/Operation/components}/RequestBody.vue.js +1 -1
- package/dist/{components/Content/Operation → features/Operation/components}/RequestBody.vue2.js +1 -1
- package/dist/features/Operation/components/RequestBodyPropertiesChild.vue.d.ts.map +1 -0
- package/dist/features/Operation/components/Webhook.vue.d.ts.map +1 -0
- package/dist/{components/Content/Webhooks → features/Operation/components}/Webhook.vue.js +2 -2
- package/dist/features/Operation/components/Webhook.vue2.js +29 -0
- package/dist/{hooks → features/Operation/hooks}/useResponses.d.ts +1 -1
- package/dist/features/Operation/hooks/useResponses.d.ts.map +1 -0
- package/dist/features/Operation/index.d.ts +3 -0
- package/dist/features/Operation/index.d.ts.map +1 -0
- package/dist/{components/Content/Operation/OperationAccordion.vue.d.ts → features/Operation/layouts/ClassicLayout.vue.d.ts} +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -0
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +7 -0
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +114 -0
- package/dist/{components/Content/Operation/Operation.vue.d.ts → features/Operation/layouts/ModernLayout.vue.d.ts} +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -0
- package/dist/features/Operation/layouts/ModernLayout.vue.js +7 -0
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +114 -0
- package/dist/features/Search/SearchButton.vue.js +2 -2
- package/dist/features/Search/SearchButton.vue2.js +1 -1
- package/dist/features/Search/useSearchIndex.js +8 -8
- package/dist/features/TestRequestButton/TestRequestButton.vue.d.ts.map +1 -0
- package/dist/features/TestRequestButton/TestRequestButton.vue.js +7 -0
- package/dist/{components/Content/Operation → features/TestRequestButton}/TestRequestButton.vue2.js +6 -6
- package/dist/features/TestRequestButton/index.d.ts +2 -0
- package/dist/features/TestRequestButton/index.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/useOperation.d.ts +7 -10
- package/dist/hooks/useOperation.d.ts.map +1 -1
- package/dist/hooks/useOperation.js +13 -11
- package/dist/index.js +12 -14
- package/dist/legacy/components/SecurityScheme.vue2.js +6 -6
- package/dist/style.css +1 -1
- package/package.json +11 -10
- package/dist/components/Content/Operation/ContentTypeSelect.vue.d.ts.map +0 -1
- package/dist/components/Content/Operation/EndpointDetails.vue.d.ts.map +0 -1
- package/dist/components/Content/Operation/EndpointDetails.vue.js +0 -88
- package/dist/components/Content/Operation/EndpointDetails.vue2.js +0 -4
- package/dist/components/Content/Operation/EndpointDetailsCard.vue.d.ts.map +0 -1
- package/dist/components/Content/Operation/EndpointDetailsCard.vue.js +0 -7
- package/dist/components/Content/Operation/EndpointDetailsCard.vue2.js +0 -67
- package/dist/components/Content/Operation/EndpointPath.vue.d.ts.map +0 -1
- package/dist/components/Content/Operation/EndpointPath.vue.js +0 -7
- package/dist/components/Content/Operation/EndpointPath.vue2.js +0 -23
- package/dist/components/Content/Operation/Operation.vue.d.ts.map +0 -1
- package/dist/components/Content/Operation/Operation.vue.js +0 -7
- package/dist/components/Content/Operation/Operation.vue2.js +0 -105
- package/dist/components/Content/Operation/OperationAccordion.vue.d.ts.map +0 -1
- package/dist/components/Content/Operation/OperationAccordion.vue.js +0 -7
- package/dist/components/Content/Operation/OperationAccordion.vue2.js +0 -103
- package/dist/components/Content/Operation/ParameterHeaders.vue.d.ts.map +0 -1
- package/dist/components/Content/Operation/ParameterHeaders.vue.js +0 -7
- package/dist/components/Content/Operation/ParameterItem.vue.d.ts.map +0 -1
- package/dist/components/Content/Operation/ParameterItem.vue.js +0 -7
- package/dist/components/Content/Operation/Parameters.vue.d.ts.map +0 -1
- package/dist/components/Content/Operation/Parameters.vue.js +0 -7
- package/dist/components/Content/Operation/RequestBody.vue.d.ts.map +0 -1
- package/dist/components/Content/Operation/RequestBodyPropertiesChild.vue.d.ts.map +0 -1
- package/dist/components/Content/Operation/TestRequestButton.vue.d.ts.map +0 -1
- package/dist/components/Content/Operation/TestRequestButton.vue.js +0 -7
- package/dist/components/Content/Operation/index.d.ts +0 -3
- package/dist/components/Content/Operation/index.d.ts.map +0 -1
- package/dist/components/Content/Webhooks/Webhook.vue.d.ts.map +0 -1
- package/dist/components/Content/Webhooks/Webhook.vue2.js +0 -39
- package/dist/components/Content/Webhooks/Webhooks.vue.d.ts.map +0 -1
- package/dist/components/Content/Webhooks/Webhooks.vue.js +0 -7
- package/dist/hooks/useResponses.d.ts.map +0 -1
- /package/dist/{components/Content/Webhooks → features/Operation}/Webhooks.vue.d.ts +0 -0
- /package/dist/{components/Content/Operation → features/Operation/components}/ContentTypeSelect.vue.d.ts +0 -0
- /package/dist/{components/Content/Operation → features/Operation/components}/ParameterHeaders.vue.d.ts +0 -0
- /package/dist/{components/Content/Operation → features/Operation/components}/RequestBody.vue.d.ts +0 -0
- /package/dist/{components/Content/Operation → features/Operation/components}/RequestBodyPropertiesChild.vue.d.ts +0 -0
- /package/dist/{components/Content/Webhooks → features/Operation/components}/Webhook.vue.d.ts +0 -0
- /package/dist/{hooks → features/Operation/hooks}/useResponses.js +0 -0
- /package/dist/{components/Content/Operation → features/TestRequestButton}/TestRequestButton.vue.d.ts +0 -0
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"vue",
|
|
21
21
|
"vue3"
|
|
22
22
|
],
|
|
23
|
-
"version": "1.25.
|
|
23
|
+
"version": "1.25.71",
|
|
24
24
|
"engines": {
|
|
25
25
|
"node": ">=18"
|
|
26
26
|
},
|
|
@@ -55,20 +55,21 @@
|
|
|
55
55
|
"httpsnippet-lite": "^3.0.5",
|
|
56
56
|
"nanoid": "^5.0.7",
|
|
57
57
|
"vue": "^3.5.12",
|
|
58
|
-
"@scalar/api-client": "2.2.
|
|
59
|
-
"@scalar/
|
|
60
|
-
"@scalar/
|
|
61
|
-
"@scalar/oas-utils": "0.2.
|
|
58
|
+
"@scalar/api-client": "2.2.3",
|
|
59
|
+
"@scalar/components": "0.12.76",
|
|
60
|
+
"@scalar/code-highlight": "0.0.17",
|
|
61
|
+
"@scalar/oas-utils": "0.2.81",
|
|
62
62
|
"@scalar/openapi-parser": "0.8.10",
|
|
63
63
|
"@scalar/openapi-types": "0.1.5",
|
|
64
|
-
"@scalar/types": "0.0.20",
|
|
65
64
|
"@scalar/snippetz": "0.2.4",
|
|
66
|
-
"@scalar/themes": "0.9.
|
|
67
|
-
"@scalar/
|
|
65
|
+
"@scalar/themes": "0.9.52",
|
|
66
|
+
"@scalar/types": "0.0.21",
|
|
67
|
+
"@scalar/use-hooks": "0.1.5",
|
|
68
68
|
"@scalar/use-toasts": "0.7.7"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
72
|
+
"@vue/server-renderer": "^3.5.13",
|
|
72
73
|
"@vue/test-utils": "^2.4.1",
|
|
73
74
|
"autoprefixer": "^10.4.19",
|
|
74
75
|
"postcss": "^8.4.38",
|
|
@@ -78,8 +79,8 @@
|
|
|
78
79
|
"vite-plugin-banner": "^0.7.1",
|
|
79
80
|
"vite-plugin-css-injected-by-js": "^3.4.0",
|
|
80
81
|
"vitest": "^1.6.0",
|
|
81
|
-
"@scalar/
|
|
82
|
-
"@scalar/
|
|
82
|
+
"@scalar/galaxy": "0.2.16",
|
|
83
|
+
"@scalar/build-tooling": "0.1.12"
|
|
83
84
|
},
|
|
84
85
|
"scripts": {
|
|
85
86
|
"analyze:default": "pnpm dlx vite-bundle-visualizer",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ContentTypeSelect.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/ContentTypeSelect.vue"],"names":[],"mappings":"AAgHA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAKpE,KAAK,WAAW,GAAG;IACjB,WAAW,CAAC,EAAE,WAAW,CAAA;IACzB,YAAY,CAAC,EAAE,WAAW,CAAA;CAC3B,CAAC;;;qBAGiD,WAAW;;;;qBAAX,WAAW;;;AAqG9D,wBAQG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EndpointDetails.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/EndpointDetails.vue"],"names":[],"mappings":"AAsDA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAQhE,KAAK,WAAW,GAAG;IAAE,SAAS,EAAE,oBAAoB,CAAA;CAAE,CAAC;;AAmJvD,wBAOG"}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { defineComponent as y, openBlock as l, createElementBlock as B, createElementVNode as q, createVNode as t, unref as r, withCtx as o, createTextVNode as a, createBlock as k, createCommentVNode as P } from "vue";
|
|
2
|
-
import { ScalarMarkdown as v } from "@scalar/components";
|
|
3
|
-
import s from "./Parameters.vue.js";
|
|
4
|
-
import w from "./RequestBody.vue.js";
|
|
5
|
-
import { useResponses as C } from "../../../hooks/useResponses.js";
|
|
6
|
-
import { useOperation as N } from "../../../hooks/useOperation.js";
|
|
7
|
-
const V = { class: "endpoint-details" }, D = { class: "endpoint-description" }, x = /* @__PURE__ */ y({
|
|
8
|
-
__name: "EndpointDetails",
|
|
9
|
-
props: {
|
|
10
|
-
operation: {}
|
|
11
|
-
},
|
|
12
|
-
setup(u) {
|
|
13
|
-
const n = u, { parameterMap: p } = N(n), { responses: f } = C(n.operation);
|
|
14
|
-
return (m, e) => {
|
|
15
|
-
var i, d;
|
|
16
|
-
return l(), B("div", V, [
|
|
17
|
-
q("div", D, [
|
|
18
|
-
t(r(v), {
|
|
19
|
-
value: m.operation.description,
|
|
20
|
-
withImages: ""
|
|
21
|
-
}, null, 8, ["value"])
|
|
22
|
-
]),
|
|
23
|
-
t(s, {
|
|
24
|
-
parameters: r(p).path
|
|
25
|
-
}, {
|
|
26
|
-
title: o(() => e[0] || (e[0] = [
|
|
27
|
-
a("Path Parameters")
|
|
28
|
-
])),
|
|
29
|
-
_: 1
|
|
30
|
-
}, 8, ["parameters"]),
|
|
31
|
-
t(s, {
|
|
32
|
-
parameters: r(p).query
|
|
33
|
-
}, {
|
|
34
|
-
title: o(() => e[1] || (e[1] = [
|
|
35
|
-
a("Query Parameters")
|
|
36
|
-
])),
|
|
37
|
-
_: 1
|
|
38
|
-
}, 8, ["parameters"]),
|
|
39
|
-
t(s, {
|
|
40
|
-
parameters: r(p).header
|
|
41
|
-
}, {
|
|
42
|
-
title: o(() => e[2] || (e[2] = [
|
|
43
|
-
a("Headers")
|
|
44
|
-
])),
|
|
45
|
-
_: 1
|
|
46
|
-
}, 8, ["parameters"]),
|
|
47
|
-
t(s, {
|
|
48
|
-
parameters: r(p).body,
|
|
49
|
-
showChildren: ""
|
|
50
|
-
}, {
|
|
51
|
-
title: o(() => e[3] || (e[3] = [
|
|
52
|
-
a("Body Parameters")
|
|
53
|
-
])),
|
|
54
|
-
_: 1
|
|
55
|
-
}, 8, ["parameters"]),
|
|
56
|
-
t(s, {
|
|
57
|
-
parameters: r(p).formData
|
|
58
|
-
}, {
|
|
59
|
-
title: o(() => e[4] || (e[4] = [
|
|
60
|
-
a("Form Data")
|
|
61
|
-
])),
|
|
62
|
-
_: 1
|
|
63
|
-
}, 8, ["parameters"]),
|
|
64
|
-
(i = m.operation.information) != null && i.requestBody ? (l(), k(w, {
|
|
65
|
-
key: 0,
|
|
66
|
-
requestBody: (d = m.operation.information) == null ? void 0 : d.requestBody
|
|
67
|
-
}, {
|
|
68
|
-
title: o(() => e[5] || (e[5] = [
|
|
69
|
-
a("Body")
|
|
70
|
-
])),
|
|
71
|
-
_: 1
|
|
72
|
-
}, 8, ["requestBody"])) : P("", !0),
|
|
73
|
-
t(s, {
|
|
74
|
-
collapsableItems: !0,
|
|
75
|
-
parameters: r(f)
|
|
76
|
-
}, {
|
|
77
|
-
title: o(() => e[6] || (e[6] = [
|
|
78
|
-
a("Responses")
|
|
79
|
-
])),
|
|
80
|
-
_: 1
|
|
81
|
-
}, 8, ["parameters"])
|
|
82
|
-
]);
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
export {
|
|
87
|
-
x as default
|
|
88
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EndpointDetailsCard.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/EndpointDetailsCard.vue"],"names":[],"mappings":"AAyFA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAQhE,KAAK,WAAW,GAAG;IAAE,SAAS,EAAE,oBAAoB,CAAA;CAAE,CAAC;;AA+IvD,wBAOG"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, openBlock as f, createElementBlock as y, createVNode as t, unref as a, withCtx as r, createTextVNode as s } from "vue";
|
|
2
|
-
import o from "./Parameters.vue.js";
|
|
3
|
-
import B from "./RequestBody.vue.js";
|
|
4
|
-
import { useOperation as c } from "../../../hooks/useOperation.js";
|
|
5
|
-
import { useResponses as q } from "../../../hooks/useResponses.js";
|
|
6
|
-
const P = { class: "endpoint-details-card" }, N = /* @__PURE__ */ u({
|
|
7
|
-
__name: "EndpointDetailsCard",
|
|
8
|
-
props: {
|
|
9
|
-
operation: {}
|
|
10
|
-
},
|
|
11
|
-
setup(d) {
|
|
12
|
-
const n = d, { parameterMap: i } = c(n), { responses: m } = q(n.operation);
|
|
13
|
-
return (l, e) => {
|
|
14
|
-
var p;
|
|
15
|
-
return f(), y("div", P, [
|
|
16
|
-
t(o, {
|
|
17
|
-
class: "endpoint-details-card-item",
|
|
18
|
-
parameters: a(i).path
|
|
19
|
-
}, {
|
|
20
|
-
title: r(() => e[0] || (e[0] = [
|
|
21
|
-
s("Path Parameters")
|
|
22
|
-
])),
|
|
23
|
-
_: 1
|
|
24
|
-
}, 8, ["parameters"]),
|
|
25
|
-
t(o, {
|
|
26
|
-
class: "endpoint-details-card-item",
|
|
27
|
-
parameters: a(i).query
|
|
28
|
-
}, {
|
|
29
|
-
title: r(() => e[1] || (e[1] = [
|
|
30
|
-
s("Query Parameters")
|
|
31
|
-
])),
|
|
32
|
-
_: 1
|
|
33
|
-
}, 8, ["parameters"]),
|
|
34
|
-
t(o, {
|
|
35
|
-
class: "endpoint-details-card-item",
|
|
36
|
-
parameters: a(i).header
|
|
37
|
-
}, {
|
|
38
|
-
title: r(() => e[2] || (e[2] = [
|
|
39
|
-
s("Headers")
|
|
40
|
-
])),
|
|
41
|
-
_: 1
|
|
42
|
-
}, 8, ["parameters"]),
|
|
43
|
-
t(B, {
|
|
44
|
-
class: "endpoint-details-card-item",
|
|
45
|
-
requestBody: (p = l.operation.information) == null ? void 0 : p.requestBody
|
|
46
|
-
}, {
|
|
47
|
-
title: r(() => e[3] || (e[3] = [
|
|
48
|
-
s("Body")
|
|
49
|
-
])),
|
|
50
|
-
_: 1
|
|
51
|
-
}, 8, ["requestBody"]),
|
|
52
|
-
t(o, {
|
|
53
|
-
class: "endpoint-details-card-item",
|
|
54
|
-
parameters: a(m)
|
|
55
|
-
}, {
|
|
56
|
-
title: r(() => e[4] || (e[4] = [
|
|
57
|
-
s("Responses")
|
|
58
|
-
])),
|
|
59
|
-
_: 1
|
|
60
|
-
}, 8, ["parameters"])
|
|
61
|
-
]);
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
export {
|
|
66
|
-
N as default
|
|
67
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EndpointPath.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/EndpointPath.vue"],"names":[],"mappings":"AA0CA,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB,CAAC;;AA4EF,wBAOG"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { defineComponent as l, computed as m, openBlock as e, createElementBlock as t, normalizeClass as h, Fragment as o, renderList as u, toDisplayString as s, createTextVNode as _ } from "vue";
|
|
2
|
-
const k = { key: 0 }, B = /* @__PURE__ */ l({
|
|
3
|
-
__name: "EndpointPath",
|
|
4
|
-
props: {
|
|
5
|
-
path: {},
|
|
6
|
-
deprecated: { type: Boolean }
|
|
7
|
-
},
|
|
8
|
-
setup(r) {
|
|
9
|
-
const p = r, c = (n) => n.startsWith("{") && n.endsWith("}"), d = m(() => p.path.split(/({[^}]+})/));
|
|
10
|
-
return (n, y) => (e(), t("span", {
|
|
11
|
-
class: h(["endpoint-path", { deprecated: n.deprecated }])
|
|
12
|
-
}, [
|
|
13
|
-
(e(!0), t(o, null, u(d.value, (a, i) => (e(), t(o, { key: i }, [
|
|
14
|
-
c(a) ? (e(), t("em", k, s(a), 1)) : (e(), t(o, { key: 1 }, [
|
|
15
|
-
_(s(a), 1)
|
|
16
|
-
], 64))
|
|
17
|
-
], 64))), 128))
|
|
18
|
-
], 2));
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
export {
|
|
22
|
-
B as default
|
|
23
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Operation.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/Operation.vue"],"names":[],"mappings":"AAoFA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAmBhE,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,oBAAoB,CAAA;CAChC,CAAC;;AAoLF,wBAOG"}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { defineComponent as s, openBlock as p, createBlock as l, unref as t, withCtx as r, createVNode as o, createTextVNode as m, createCommentVNode as u, createElementVNode as d, normalizeClass as c, toDisplayString as h } from "vue";
|
|
2
|
-
import C from "./EndpointDetails.vue.js";
|
|
3
|
-
import _ from "./EndpointPath.vue.js";
|
|
4
|
-
import S from "./TestRequestButton.vue.js";
|
|
5
|
-
import k from "../../Section/Section.vue.js";
|
|
6
|
-
import B from "../../Section/SectionContent.vue.js";
|
|
7
|
-
import E from "../../Section/SectionColumns.vue.js";
|
|
8
|
-
import f from "../../Section/SectionColumn.vue.js";
|
|
9
|
-
import N from "../../Badge/Badge.vue.js";
|
|
10
|
-
import V from "../../Section/SectionHeader.vue.js";
|
|
11
|
-
import b from "../../Anchor/Anchor.vue.js";
|
|
12
|
-
import g from "../../../features/ExampleRequest/ExampleRequest.vue.js";
|
|
13
|
-
import v from "../../../features/ExampleResponses/ExampleResponses.vue.js";
|
|
14
|
-
const y = { class: "examples" }, I = /* @__PURE__ */ s({
|
|
15
|
-
__name: "Operation",
|
|
16
|
-
props: {
|
|
17
|
-
id: {},
|
|
18
|
-
operation: {}
|
|
19
|
-
},
|
|
20
|
-
setup(R) {
|
|
21
|
-
return (e, n) => (p(), l(t(k), {
|
|
22
|
-
id: e.id,
|
|
23
|
-
label: e.operation.name
|
|
24
|
-
}, {
|
|
25
|
-
default: r(() => [
|
|
26
|
-
o(t(B), null, {
|
|
27
|
-
default: r(() => [
|
|
28
|
-
o(t(E), null, {
|
|
29
|
-
default: r(() => [
|
|
30
|
-
o(t(f), null, {
|
|
31
|
-
default: r(() => {
|
|
32
|
-
var a, i;
|
|
33
|
-
return [
|
|
34
|
-
(a = e.operation.information) != null && a.deprecated ? (p(), l(t(N), { key: 0 }, {
|
|
35
|
-
default: r(() => n[0] || (n[0] = [
|
|
36
|
-
m(" Deprecated ")
|
|
37
|
-
])),
|
|
38
|
-
_: 1
|
|
39
|
-
})) : u("", !0),
|
|
40
|
-
d("div", {
|
|
41
|
-
class: c((i = e.operation.information) != null && i.deprecated ? "deprecated" : "")
|
|
42
|
-
}, [
|
|
43
|
-
o(t(V), { level: 3 }, {
|
|
44
|
-
default: r(() => [
|
|
45
|
-
o(t(b), {
|
|
46
|
-
id: e.id ?? ""
|
|
47
|
-
}, {
|
|
48
|
-
default: r(() => [
|
|
49
|
-
m(h(e.operation.name), 1)
|
|
50
|
-
]),
|
|
51
|
-
_: 1
|
|
52
|
-
}, 8, ["id"])
|
|
53
|
-
]),
|
|
54
|
-
_: 1
|
|
55
|
-
})
|
|
56
|
-
], 2),
|
|
57
|
-
o(C, { operation: e.operation }, null, 8, ["operation"])
|
|
58
|
-
];
|
|
59
|
-
}),
|
|
60
|
-
_: 1
|
|
61
|
-
}),
|
|
62
|
-
o(t(f), null, {
|
|
63
|
-
default: r(() => [
|
|
64
|
-
d("div", y, [
|
|
65
|
-
o(t(g), {
|
|
66
|
-
fallback: "",
|
|
67
|
-
operation: e.operation
|
|
68
|
-
}, {
|
|
69
|
-
header: r(() => {
|
|
70
|
-
var a;
|
|
71
|
-
return [
|
|
72
|
-
o(_, {
|
|
73
|
-
class: "example-path",
|
|
74
|
-
deprecated: (a = e.operation.information) == null ? void 0 : a.deprecated,
|
|
75
|
-
path: e.operation.path
|
|
76
|
-
}, null, 8, ["deprecated", "path"])
|
|
77
|
-
];
|
|
78
|
-
}),
|
|
79
|
-
footer: r(() => [
|
|
80
|
-
o(S, { operation: e.operation }, null, 8, ["operation"])
|
|
81
|
-
]),
|
|
82
|
-
_: 1
|
|
83
|
-
}, 8, ["operation"]),
|
|
84
|
-
o(t(v), {
|
|
85
|
-
operation: e.operation,
|
|
86
|
-
style: { "margin-top": "12px" }
|
|
87
|
-
}, null, 8, ["operation"])
|
|
88
|
-
])
|
|
89
|
-
]),
|
|
90
|
-
_: 1
|
|
91
|
-
})
|
|
92
|
-
]),
|
|
93
|
-
_: 1
|
|
94
|
-
})
|
|
95
|
-
]),
|
|
96
|
-
_: 1
|
|
97
|
-
})
|
|
98
|
-
]),
|
|
99
|
-
_: 1
|
|
100
|
-
}, 8, ["id", "label"]));
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
export {
|
|
104
|
-
I as default
|
|
105
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OperationAccordion.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/OperationAccordion.vue"],"names":[],"mappings":"AA0NA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAgBhE,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,oBAAoB,CAAA;CAChC,CAAC;;AAqNF,wBAOG"}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { defineComponent as m, inject as h, openBlock as p, createBlock as s, unref as e, createSlots as f, withCtx as i, createElementVNode as t, createVNode as n, toDisplayString as u, createCommentVNode as _, withModifiers as v } from "vue";
|
|
2
|
-
import { ScalarIcon as y, ScalarIconButton as C, ScalarMarkdown as E } from "@scalar/components";
|
|
3
|
-
import { useClipboard as S } from "@scalar/use-hooks/useClipboard";
|
|
4
|
-
import b from "./EndpointDetailsCard.vue.js";
|
|
5
|
-
import k from "./EndpointPath.vue.js";
|
|
6
|
-
import T from "./TestRequestButton.vue.js";
|
|
7
|
-
import B from "../../Section/SectionAccordion.vue.js";
|
|
8
|
-
import w from "../../HttpMethod/HttpMethod.vue.js";
|
|
9
|
-
import I from "../../Anchor/Anchor.vue.js";
|
|
10
|
-
import N from "../../../features/ExampleResponses/ExampleResponses.vue.js";
|
|
11
|
-
import R from "../../../features/ExampleRequest/ExampleRequest.vue.js";
|
|
12
|
-
import { HIDE_TEST_REQUEST_BUTTON_SYMBOL as V } from "../../../helpers/provideSymbols.js";
|
|
13
|
-
const g = { class: "endpoint-header" }, A = { class: "endpoint-details" }, D = { class: "endpoint-label" }, M = { class: "endpoint-label-path" }, O = { class: "endpoint-label-name" }, U = { class: "endpoint-content" }, X = /* @__PURE__ */ m({
|
|
14
|
-
__name: "OperationAccordion",
|
|
15
|
-
props: {
|
|
16
|
-
id: {},
|
|
17
|
-
operation: {}
|
|
18
|
-
},
|
|
19
|
-
setup(L) {
|
|
20
|
-
const { copyToClipboard: c } = S(), r = h(V);
|
|
21
|
-
return console.log(!(r != null && r())), (o, d) => (p(), s(e(B), {
|
|
22
|
-
id: o.id,
|
|
23
|
-
class: "reference-endpoint",
|
|
24
|
-
transparent: ""
|
|
25
|
-
}, f({
|
|
26
|
-
title: i(() => [
|
|
27
|
-
t("h3", g, [
|
|
28
|
-
t("div", A, [
|
|
29
|
-
n(e(w), {
|
|
30
|
-
class: "endpoint-type",
|
|
31
|
-
method: o.operation.httpVerb,
|
|
32
|
-
short: ""
|
|
33
|
-
}, null, 8, ["method"]),
|
|
34
|
-
n(e(I), {
|
|
35
|
-
id: o.id ?? "",
|
|
36
|
-
class: "endpoint-anchor"
|
|
37
|
-
}, {
|
|
38
|
-
default: i(() => {
|
|
39
|
-
var a;
|
|
40
|
-
return [
|
|
41
|
-
t("div", D, [
|
|
42
|
-
t("div", M, [
|
|
43
|
-
n(k, {
|
|
44
|
-
deprecated: (a = o.operation.information) == null ? void 0 : a.deprecated,
|
|
45
|
-
path: o.operation.path
|
|
46
|
-
}, null, 8, ["deprecated", "path"])
|
|
47
|
-
]),
|
|
48
|
-
t("div", O, u(o.operation.name), 1)
|
|
49
|
-
])
|
|
50
|
-
];
|
|
51
|
-
}),
|
|
52
|
-
_: 1
|
|
53
|
-
}, 8, ["id"])
|
|
54
|
-
])
|
|
55
|
-
])
|
|
56
|
-
]),
|
|
57
|
-
actions: i(({ active: a }) => {
|
|
58
|
-
var l;
|
|
59
|
-
return [
|
|
60
|
-
a ? (p(), s(T, {
|
|
61
|
-
key: 0,
|
|
62
|
-
operation: o.operation
|
|
63
|
-
}, null, 8, ["operation"])) : (l = e(r)) != null && l() ? _("", !0) : (p(), s(e(y), {
|
|
64
|
-
key: 1,
|
|
65
|
-
class: "endpoint-try-hint",
|
|
66
|
-
icon: "Play",
|
|
67
|
-
thickness: "1.75px"
|
|
68
|
-
})),
|
|
69
|
-
n(e(C), {
|
|
70
|
-
class: "endpoint-copy",
|
|
71
|
-
icon: "Clipboard",
|
|
72
|
-
label: "Copy endpoint URL",
|
|
73
|
-
size: "xs",
|
|
74
|
-
variant: "ghost",
|
|
75
|
-
onClick: d[0] || (d[0] = v((P) => e(c)(o.operation.path), ["stop"]))
|
|
76
|
-
})
|
|
77
|
-
];
|
|
78
|
-
}),
|
|
79
|
-
default: i(() => [
|
|
80
|
-
t("div", U, [
|
|
81
|
-
n(b, { operation: o.operation }, null, 8, ["operation"]),
|
|
82
|
-
n(e(N), { operation: o.operation }, null, 8, ["operation"]),
|
|
83
|
-
n(e(R), { operation: o.operation }, null, 8, ["operation"])
|
|
84
|
-
])
|
|
85
|
-
]),
|
|
86
|
-
_: 2
|
|
87
|
-
}, [
|
|
88
|
-
o.operation.description ? {
|
|
89
|
-
name: "description",
|
|
90
|
-
fn: i(() => [
|
|
91
|
-
n(e(E), {
|
|
92
|
-
value: o.operation.description,
|
|
93
|
-
withImages: ""
|
|
94
|
-
}, null, 8, ["value"])
|
|
95
|
-
]),
|
|
96
|
-
key: "0"
|
|
97
|
-
} : void 0
|
|
98
|
-
]), 1032, ["id"]));
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
export {
|
|
102
|
-
X as default
|
|
103
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ParameterHeaders.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/ParameterHeaders.vue"],"names":[],"mappings":"AA4HA,OAAO,KAAK,EAAE,OAAO,EAA0B,MAAM,uBAAuB,CAAA;AAM5E,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAA;KAAE,CAAA;CACjD,CAAC;;AAiJF,wBAOG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ParameterItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/ParameterItem.vue"],"names":[],"mappings":"AA+NA,OAAO,KAAK,EAAe,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAUnE,KAAK,WAAW,GAAG;IACf,SAAS,EAAE,UAAU,CAAA;IACrB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAC;;kBAFe,OAAO;sBACH,OAAO;;AA6O9B,wBAQG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Parameters.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/Parameters.vue"],"names":[],"mappings":"AA0DA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAMtD,KAAK,WAAW,GAAG;IACf,UAAU,CAAC,EAAE,UAAU,EAAE,CAAA;IACzB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B,CAAC;AAkBJ,iBAAS,cAAc;WAsDT,OAAO,IAA6B;;uBARvB,GAAG;;;;EAa7B;AAUD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;kBA1FF,OAAO;sBACH,OAAO;6EAgG5B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RequestBody.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/RequestBody.vue"],"names":[],"mappings":"AAgJA,OAAO,KAAK,EAAe,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAOpE,KAAK,WAAW,GAAG;IAAE,WAAW,CAAC,EAAE,WAAW,CAAA;CAAE,CAAC;AAsBjD,iBAAS,cAAc;WAuFT,OAAO,IAA6B;;uBARvB,GAAG;;;;EAa7B;AAYD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,kSAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RequestBodyPropertiesChild.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/RequestBodyPropertiesChild.vue"],"names":[],"mappings":"AAsCA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AAIvD,KAAK,WAAW,GAAG;IAAE,iBAAiB,EAAE,iBAAiB,CAAA;CAAE,CAAC;;AAsF5D,wBAMG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TestRequestButton.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/TestRequestButton.vue"],"names":[],"mappings":"AA0EA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAShE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,oBAAoB,CAAA;CAChC,CAAC;;AAiGF,wBAMG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Operation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Webhook.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Webhooks/Webhook.vue"],"names":[],"mappings":"AAmCA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAQhE,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,oBAAoB,CAAA;CAC9B,CAAC;;AAsFF,wBAMG"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, openBlock as d, createElementBlock as i, Fragment as k, createVNode as t, withCtx as s, createTextVNode as n, unref as f, createCommentVNode as l } from "vue";
|
|
2
|
-
import b from "../Operation/Parameters.vue.js";
|
|
3
|
-
import w from "../Operation/RequestBody.vue.js";
|
|
4
|
-
import { useResponses as y } from "../../../hooks/useResponses.js";
|
|
5
|
-
const C = /* @__PURE__ */ u({
|
|
6
|
-
__name: "Webhook",
|
|
7
|
-
props: {
|
|
8
|
-
webhook: {}
|
|
9
|
-
},
|
|
10
|
-
setup(m) {
|
|
11
|
-
const a = m, { responses: p } = y(a.webhook);
|
|
12
|
-
return (o, e) => {
|
|
13
|
-
var r;
|
|
14
|
-
return o.webhook ? (d(), i(k, { key: 0 }, [
|
|
15
|
-
t(w, {
|
|
16
|
-
class: "webhook-request-body",
|
|
17
|
-
requestBody: (r = o.webhook.information) == null ? void 0 : r.requestBody
|
|
18
|
-
}, {
|
|
19
|
-
title: s(() => e[0] || (e[0] = [
|
|
20
|
-
n("Payload")
|
|
21
|
-
])),
|
|
22
|
-
_: 1
|
|
23
|
-
}, 8, ["requestBody"]),
|
|
24
|
-
t(b, {
|
|
25
|
-
class: "webhook-response-parameters",
|
|
26
|
-
parameters: f(p)
|
|
27
|
-
}, {
|
|
28
|
-
title: s(() => e[1] || (e[1] = [
|
|
29
|
-
n("Responses")
|
|
30
|
-
])),
|
|
31
|
-
_: 1
|
|
32
|
-
}, 8, ["parameters"])
|
|
33
|
-
], 64)) : l("", !0);
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
export {
|
|
38
|
-
C as default
|
|
39
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Webhooks.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Webhooks/Webhooks.vue"],"names":[],"mappings":"AAwHA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAgBpD,KAAK,WAAW,GAAG;IACjB,QAAQ,EAAE,QAAQ,CAAA;CACnB,CAAC;;AAwLF,wBAMG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useResponses.d.ts","sourceRoot":"","sources":["../../src/hooks/useResponses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,sBAAsB,CAAA;AAG7B;;GAEG;AACH,wBAAgB,YAAY,CAAC,SAAS,EAAE,oBAAoB;;cAOhD,MAAM;qBACC,MAAM;iBACV,oBAAoB;kBACnB;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAA;SAAE;;EAkBtD"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{components/Content/Operation → features/Operation/components}/RequestBody.vue.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/{components/Content/Webhooks → features/Operation/components}/Webhook.vue.d.ts
RENAMED
|
File without changes
|
|
File without changes
|