@scalar/api-reference 1.32.6 → 1.32.8
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 +53 -0
- package/dist/browser/standalone.js +16427 -16210
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/Anchor/Anchor.vue2.js +2 -1
- package/dist/components/ApiReference.vue.d.ts.map +1 -1
- package/dist/components/ApiReference.vue.js +8 -8
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +2 -2
- package/dist/components/ApiReferenceLayout.vue2.js +164 -176
- package/dist/components/Badge/Badge.vue.js +1 -1
- package/dist/components/Content/Content.vue.d.ts.map +1 -1
- package/dist/components/Content/Content.vue.js +2 -2
- package/dist/components/Content/Content.vue2.js +20 -20
- package/dist/components/Content/Models/Models.vue2.js +5 -4
- package/dist/components/Content/Models/ModelsAccordion.vue2.js +2 -1
- package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.js +2 -2
- package/dist/components/Content/Schema/Schema.vue2.js +99 -157
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.d.ts +7 -0
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.d.ts.map +1 -0
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue.js +7 -0
- package/dist/components/Content/Schema/SchemaEnumPropertyItem.vue2.js +25 -0
- package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaEnumValues.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +73 -90
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts +21 -0
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.d.ts.map +1 -0
- package/dist/components/Content/Schema/SchemaObjectProperties.vue.js +92 -0
- package/dist/components/Content/Schema/SchemaObjectProperties.vue2.js +4 -0
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +1 -2
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +54 -55
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaPropertyExamples.vue2.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +0 -2
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +95 -104
- package/dist/components/Content/Schema/helpers/{formatExample.d.ts → format-example.d.ts} +1 -1
- package/dist/components/Content/Schema/helpers/format-example.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/is-type-object.d.ts +3 -0
- package/dist/components/Content/Schema/helpers/is-type-object.d.ts.map +1 -0
- package/dist/components/Content/Schema/helpers/is-type-object.js +17 -0
- package/dist/components/Content/Schema/helpers/{optimizeValueForDisplay.d.ts → optimize-value-for-display.d.ts} +1 -1
- package/dist/components/Content/Schema/helpers/optimize-value-for-display.d.ts.map +1 -0
- package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/OperationsList.vue.js +1 -1
- package/dist/components/Content/Tag/OperationsList.vue2.js +18 -22
- package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -1
- package/dist/components/Content/Tag/OperationsListItem.vue.js +2 -2
- package/dist/components/Content/Tag/OperationsListItem.vue2.js +33 -34
- package/dist/components/Content/Tag/Tag.vue.js +2 -1
- package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -1
- package/dist/components/GettingStarted.vue2.js +8 -6
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts +2 -2
- package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionAccordion.vue.js +1 -1
- package/dist/components/Section/SectionAccordion.vue2.js +28 -29
- package/dist/components/Section/SectionContainerAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionContainerAccordion.vue.js +2 -2
- package/dist/components/Section/SectionContainerAccordion.vue2.js +17 -18
- package/dist/features/Operation/Operation.vue.d.ts +6 -6
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +50 -49
- package/dist/features/Operation/components/ContentTypeSelect.vue.js +8 -7
- package/dist/features/Operation/components/ParameterListItem.vue.js +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts +8 -6
- package/dist/features/Operation/components/callbacks/Callback.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue.js +1 -1
- package/dist/features/Operation/components/callbacks/Callback.vue2.js +21 -28
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts +5 -3
- package/dist/features/Operation/components/callbacks/Callbacks.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/callbacks/Callbacks.vue.js +33 -18
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +11 -12
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ClassicLayout.vue2.js +168 -154
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +12 -13
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +113 -117
- package/dist/features/Search/SearchButton.vue.js +2 -1
- package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
- package/dist/features/Search/SearchModal.vue.js +2 -2
- package/dist/features/Search/SearchModal.vue2.js +16 -16
- package/dist/features/api-client-modal/useApiClient.d.ts +5338 -5258
- package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
- package/dist/features/download-link/DownloadLink.vue2.js +4 -2
- package/dist/features/example-responses/ExampleResponse.vue.js +2 -2
- package/dist/{components/Card/CardTab.vue.d.ts → features/example-responses/ExampleResponseTab.vue.d.ts} +1 -1
- package/dist/features/example-responses/ExampleResponseTab.vue.d.ts.map +1 -0
- package/dist/features/example-responses/ExampleResponseTab.vue.js +7 -0
- package/dist/{components/Card/CardTab.vue2.js → features/example-responses/ExampleResponseTab.vue2.js} +6 -6
- package/dist/{components/Card/CardTabHeader.vue.d.ts → features/example-responses/ExampleResponseTabList.vue.d.ts} +3 -3
- package/dist/features/example-responses/ExampleResponseTabList.vue.d.ts.map +1 -0
- package/dist/features/example-responses/ExampleResponseTabList.vue.js +7 -0
- package/dist/{components/Card/CardTabHeader.vue2.js → features/example-responses/ExampleResponseTabList.vue2.js} +9 -9
- package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
- package/dist/features/example-responses/ExampleResponses.vue.js +2 -2
- package/dist/features/example-responses/ExampleResponses.vue2.js +89 -96
- package/dist/features/test-request-button/TestRequestButton.vue.d.ts +3 -2
- package/dist/features/test-request-button/TestRequestButton.vue.d.ts.map +1 -1
- package/dist/features/test-request-button/TestRequestButton.vue.js +2 -2
- package/dist/features/test-request-button/TestRequestButton.vue2.js +26 -24
- package/dist/helpers/convert-security-scheme.d.ts +9 -0
- package/dist/helpers/convert-security-scheme.d.ts.map +1 -0
- package/dist/helpers/convert-security-scheme.js +23 -0
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -29
- package/dist/style.css +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts +3 -1
- package/dist/v2/ApiReferenceWorkspace.vue.d.ts.map +1 -1
- package/dist/v2/ApiReferenceWorkspace.vue.js +114 -86
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts +6 -1
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue.js +4 -0
- package/dist/v2/blocks/scalar-request-example-block/components/ExamplePicker.vue2.js +64 -0
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.js +7 -0
- package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue2.js +212 -0
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts +3 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.d.ts.map +1 -1
- package/dist/v2/blocks/scalar-request-example-block/helpers/find-client.js +22 -0
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-client-options.js +35 -0
- package/dist/v2/blocks/scalar-request-example-block/helpers/generate-code-snippet.js +29 -0
- package/dist/v2/blocks/scalar-request-example-block/helpers/get-secrets.js +10 -0
- package/dist/v2/blocks/scalar-request-example-block/index.d.ts +2 -1
- package/dist/v2/blocks/scalar-request-example-block/index.d.ts.map +1 -1
- package/dist/v2/events/definitions.d.ts +6 -6
- package/dist/v2/events/definitions.d.ts.map +1 -1
- package/dist/v2/events/definitions.js +7 -0
- package/dist/v2/events/index.d.ts +1 -1
- package/dist/v2/events/listeners.d.ts +1 -1
- package/dist/v2/hooks/useStore.d.ts +9 -0
- package/dist/v2/hooks/useStore.d.ts.map +1 -0
- package/dist/v2/hooks/useStore.js +14 -0
- package/package.json +24 -24
- package/dist/blocks/constants.js +0 -6
- package/dist/blocks/helpers/getPointer.js +0 -12
- package/dist/blocks/hooks/useBlockProps.d.ts +0 -31
- package/dist/blocks/hooks/useBlockProps.d.ts.map +0 -1
- package/dist/blocks/hooks/useBlockProps.js +0 -24
- package/dist/components/Card/Card.vue.d.ts +0 -18
- package/dist/components/Card/Card.vue.d.ts.map +0 -1
- package/dist/components/Card/Card.vue.js +0 -13
- package/dist/components/Card/CardContent.vue.d.ts +0 -19
- package/dist/components/Card/CardContent.vue.d.ts.map +0 -1
- package/dist/components/Card/CardContent.vue.js +0 -7
- package/dist/components/Card/CardContent.vue2.js +0 -27
- package/dist/components/Card/CardFooter.vue.d.ts +0 -19
- package/dist/components/Card/CardFooter.vue.d.ts.map +0 -1
- package/dist/components/Card/CardFooter.vue.js +0 -7
- package/dist/components/Card/CardFooter.vue2.js +0 -24
- package/dist/components/Card/CardHeader.vue.d.ts +0 -20
- package/dist/components/Card/CardHeader.vue.d.ts.map +0 -1
- package/dist/components/Card/CardHeader.vue.js +0 -7
- package/dist/components/Card/CardHeader.vue2.js +0 -31
- package/dist/components/Card/CardTab.vue.d.ts.map +0 -1
- package/dist/components/Card/CardTab.vue.js +0 -7
- package/dist/components/Card/CardTabHeader.vue.d.ts.map +0 -1
- package/dist/components/Card/CardTabHeader.vue.js +0 -7
- package/dist/components/Card/index.d.ts +0 -7
- package/dist/components/Card/index.d.ts.map +0 -1
- package/dist/components/Card/types.d.ts +0 -8
- package/dist/components/Card/types.d.ts.map +0 -1
- package/dist/components/Content/Schema/helpers/formatExample.d.ts.map +0 -1
- package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +0 -1
- package/dist/features/example-request/ExamplePicker.vue.d.ts +0 -13
- package/dist/features/example-request/ExamplePicker.vue.d.ts.map +0 -1
- package/dist/features/example-request/ExamplePicker.vue.js +0 -7
- package/dist/features/example-request/ExamplePicker.vue2.js +0 -56
- package/dist/features/example-request/ExampleRequest.vue.d.ts +0 -79
- package/dist/features/example-request/ExampleRequest.vue.d.ts.map +0 -1
- package/dist/features/example-request/ExampleRequest.vue.js +0 -7
- package/dist/features/example-request/ExampleRequest.vue2.js +0 -359
- package/dist/features/example-request/TextSelect.vue.d.ts +0 -34
- package/dist/features/example-request/TextSelect.vue.d.ts.map +0 -1
- package/dist/features/example-request/TextSelect.vue.js +0 -48
- package/dist/features/example-request/TextSelect.vue3.js +0 -5
- package/dist/features/example-request/index.d.ts +0 -3
- package/dist/features/example-request/index.d.ts.map +0 -1
- /package/dist/components/Content/Schema/helpers/{formatExample.js → format-example.js} +0 -0
- /package/dist/components/Content/Schema/helpers/{optimizeValueForDisplay.js → optimize-value-for-display.js} +0 -0
|
@@ -4,7 +4,6 @@ type __VLS_Props = {
|
|
|
4
4
|
enum?: boolean;
|
|
5
5
|
required?: boolean;
|
|
6
6
|
additional?: boolean;
|
|
7
|
-
pattern?: boolean;
|
|
8
7
|
withExamples?: boolean;
|
|
9
8
|
hideModelNames?: boolean;
|
|
10
9
|
schemas?: Schemas;
|
|
@@ -13,7 +12,6 @@ declare function __VLS_template(): {
|
|
|
13
12
|
attrs: Partial<{}>;
|
|
14
13
|
slots: {
|
|
15
14
|
name?(_: {}): any;
|
|
16
|
-
name?(_: {}): any;
|
|
17
15
|
};
|
|
18
16
|
refs: {};
|
|
19
17
|
rootEl: HTMLDivElement;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AA2SA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAWjE,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;AAuEF,iBAAS,cAAc;WA2UT,OAAO,IAA6B;;sBARxB,GAAG;;;;EAa5B;AAkBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,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,7 +1,7 @@
|
|
|
1
1
|
import o from "./SchemaPropertyHeading.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-10b9288a"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { isDefined as
|
|
3
|
-
import
|
|
4
|
-
import { getDiscriminatorSchemaName as
|
|
5
|
-
import { getSchemaType as
|
|
6
|
-
import { getModelName as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
1
|
+
import { defineComponent as L, computed as C, createElementBlock as m, openBlock as r, createCommentVNode as a, createBlock as i, normalizeClass as $, renderSlot as T, Fragment as f, withCtx as u, createVNode as y, createTextVNode as l, toDisplayString as o, unref as s } from "vue";
|
|
2
|
+
import { isDefined as p } from "@scalar/helpers/array/is-defined";
|
|
3
|
+
import S from "../../ScreenReader.vue.js";
|
|
4
|
+
import { getDiscriminatorSchemaName as b } from "../../../hooks/useDiscriminator.js";
|
|
5
|
+
import { getSchemaType as F } from "./helpers/get-schema-type.js";
|
|
6
|
+
import { getModelName as J } from "./helpers/schema-name.js";
|
|
7
|
+
import z from "./RenderString.vue.js";
|
|
8
|
+
import n from "./SchemaPropertyDetail.vue.js";
|
|
9
|
+
import H from "./SchemaPropertyExamples.vue.js";
|
|
10
|
+
import R from "../../Badge/Badge.vue.js";
|
|
11
11
|
const j = { class: "property-heading" }, G = {
|
|
12
12
|
key: 1,
|
|
13
13
|
class: "property-discriminator"
|
|
@@ -16,92 +16,85 @@ const j = { class: "property-heading" }, G = {
|
|
|
16
16
|
class: "property-additional"
|
|
17
17
|
}, Q = {
|
|
18
18
|
key: 4,
|
|
19
|
-
class: "property-
|
|
19
|
+
class: "property-deprecated"
|
|
20
20
|
}, U = {
|
|
21
21
|
key: 5,
|
|
22
|
-
class: "property-deprecated"
|
|
23
|
-
}, W = {
|
|
24
|
-
key: 6,
|
|
25
22
|
class: "property-const"
|
|
23
|
+
}, W = {
|
|
24
|
+
key: 7,
|
|
25
|
+
class: "property-write-only"
|
|
26
26
|
}, X = {
|
|
27
27
|
key: 8,
|
|
28
|
-
class: "property-
|
|
28
|
+
class: "property-read-only"
|
|
29
29
|
}, Y = {
|
|
30
30
|
key: 9,
|
|
31
|
-
class: "property-read-only"
|
|
32
|
-
}, Z = {
|
|
33
|
-
key: 10,
|
|
34
31
|
class: "property-required"
|
|
35
|
-
},
|
|
32
|
+
}, ae = /* @__PURE__ */ L({
|
|
36
33
|
__name: "SchemaPropertyHeading",
|
|
37
34
|
props: {
|
|
38
35
|
value: {},
|
|
39
36
|
enum: { type: Boolean },
|
|
40
37
|
required: { type: Boolean, default: !1 },
|
|
41
38
|
additional: { type: Boolean },
|
|
42
|
-
pattern: { type: Boolean },
|
|
43
39
|
withExamples: { type: Boolean, default: !0 },
|
|
44
40
|
hideModelNames: { type: Boolean, default: !1 },
|
|
45
41
|
schemas: {}
|
|
46
42
|
},
|
|
47
43
|
setup(d) {
|
|
48
|
-
const
|
|
44
|
+
const E = (e) => (e == null ? void 0 : e.default) === null ? "null" : Array.isArray(e == null ? void 0 : e.default) && e.default.length === 1 ? e.default[0] : typeof (e == null ? void 0 : e.default) == "string" || Array.isArray(e == null ? void 0 : e.default) ? JSON.stringify(e.default) : e == null ? void 0 : e.default, B = C(() => {
|
|
49
45
|
var e, t, v, k, g, N;
|
|
50
46
|
if (((e = d.value) == null ? void 0 : e.const) !== void 0)
|
|
51
47
|
return (t = d.value) == null ? void 0 : t.const;
|
|
52
48
|
if (((k = (v = d.value) == null ? void 0 : v.enum) == null ? void 0 : k.length) === 1)
|
|
53
49
|
return d.value.enum[0];
|
|
54
50
|
if ((g = d.value) != null && g.items) {
|
|
55
|
-
if (
|
|
51
|
+
if (p(d.value.items.const))
|
|
56
52
|
return d.value.items.const;
|
|
57
53
|
if (((N = d.value.items.enum) == null ? void 0 : N.length) === 1)
|
|
58
54
|
return d.value.items.enum[0];
|
|
59
55
|
}
|
|
60
|
-
}), D = C(() => d.value ?
|
|
56
|
+
}), D = C(() => d.value ? J(
|
|
61
57
|
d.value,
|
|
62
58
|
d.schemas,
|
|
63
59
|
d.hideModelNames,
|
|
64
|
-
|
|
60
|
+
b
|
|
65
61
|
) : null);
|
|
66
62
|
return (e, t) => {
|
|
67
|
-
var v, k, g, N, M, q, w, P, I,
|
|
68
|
-
return r(),
|
|
69
|
-
e.$slots.name ? (r(),
|
|
63
|
+
var v, k, g, N, M, q, w, O, P, I, V, A;
|
|
64
|
+
return r(), m("div", j, [
|
|
65
|
+
e.$slots.name ? (r(), m("div", {
|
|
70
66
|
key: 0,
|
|
71
|
-
class:
|
|
67
|
+
class: $(["property-name", { deprecated: (v = e.value) == null ? void 0 : v.deprecated }])
|
|
72
68
|
}, [
|
|
73
|
-
e
|
|
74
|
-
t[0] || (t[0] = l("/")),
|
|
75
|
-
E(e.$slots, "name", {}, void 0, !0),
|
|
76
|
-
t[1] || (t[1] = l("/"))
|
|
77
|
-
], 64)) : E(e.$slots, "name", { key: 0 }, void 0, !0)
|
|
69
|
+
T(e.$slots, "name", {}, void 0, !0)
|
|
78
70
|
], 2)) : a("", !0),
|
|
79
|
-
(k = e.value) != null && k.isDiscriminator ? (r(),
|
|
80
|
-
e.value ? (r(),
|
|
81
|
-
(g = e.value) != null && g.type ? (r(), n
|
|
71
|
+
(k = e.value) != null && k.isDiscriminator ? (r(), m("div", G, " Discriminator ")) : a("", !0),
|
|
72
|
+
e.value ? (r(), m(f, { key: 2 }, [
|
|
73
|
+
(g = e.value) != null && g.type ? (r(), i(n, { key: 0 }, {
|
|
82
74
|
default: u(() => [
|
|
83
|
-
|
|
84
|
-
default: u(() => t[
|
|
75
|
+
y(S, null, {
|
|
76
|
+
default: u(() => t[0] || (t[0] = [
|
|
85
77
|
l("Type: ")
|
|
86
78
|
])),
|
|
87
|
-
_: 1
|
|
79
|
+
_: 1,
|
|
80
|
+
__: [0]
|
|
88
81
|
}),
|
|
89
|
-
D.value ? (r(),
|
|
82
|
+
D.value ? (r(), m(f, { key: 0 }, [
|
|
90
83
|
l(o(D.value), 1)
|
|
91
|
-
], 64)) : (r(),
|
|
92
|
-
l(o(s(
|
|
84
|
+
], 64)) : (r(), m(f, { key: 1 }, [
|
|
85
|
+
l(o(s(F)(e.value)), 1)
|
|
93
86
|
], 64))
|
|
94
87
|
]),
|
|
95
88
|
_: 1
|
|
96
89
|
})) : a("", !0),
|
|
97
|
-
e.value.minItems || e.value.maxItems ? (r(), n
|
|
90
|
+
e.value.minItems || e.value.maxItems ? (r(), i(n, { key: 1 }, {
|
|
98
91
|
default: u(() => [
|
|
99
92
|
l(o(e.value.minItems) + "…" + o(e.value.maxItems), 1)
|
|
100
93
|
]),
|
|
101
94
|
_: 1
|
|
102
95
|
})) : a("", !0),
|
|
103
|
-
e.value.minLength ? (r(), n
|
|
104
|
-
prefix: u(() => t[
|
|
96
|
+
e.value.minLength ? (r(), i(n, { key: 2 }, {
|
|
97
|
+
prefix: u(() => t[1] || (t[1] = [
|
|
105
98
|
l("min: ")
|
|
106
99
|
])),
|
|
107
100
|
default: u(() => [
|
|
@@ -109,8 +102,8 @@ const j = { class: "property-heading" }, G = {
|
|
|
109
102
|
]),
|
|
110
103
|
_: 1
|
|
111
104
|
})) : a("", !0),
|
|
112
|
-
e.value.maxLength ? (r(), n
|
|
113
|
-
prefix: u(() => t[
|
|
105
|
+
e.value.maxLength ? (r(), i(n, { key: 3 }, {
|
|
106
|
+
prefix: u(() => t[2] || (t[2] = [
|
|
114
107
|
l("max: ")
|
|
115
108
|
])),
|
|
116
109
|
default: u(() => [
|
|
@@ -118,26 +111,28 @@ const j = { class: "property-heading" }, G = {
|
|
|
118
111
|
]),
|
|
119
112
|
_: 1
|
|
120
113
|
})) : a("", !0),
|
|
121
|
-
e.value.uniqueItems ? (r(), n
|
|
122
|
-
default: u(() => t[
|
|
114
|
+
e.value.uniqueItems ? (r(), i(n, { key: 4 }, {
|
|
115
|
+
default: u(() => t[3] || (t[3] = [
|
|
123
116
|
l(" unique! ")
|
|
124
117
|
])),
|
|
125
|
-
_: 1
|
|
118
|
+
_: 1,
|
|
119
|
+
__: [3]
|
|
126
120
|
})) : a("", !0),
|
|
127
|
-
e.value.format ? (r(), n
|
|
121
|
+
e.value.format ? (r(), i(n, { key: 5 }, {
|
|
128
122
|
default: u(() => [
|
|
129
|
-
|
|
130
|
-
default: u(() => t[
|
|
123
|
+
y(S, null, {
|
|
124
|
+
default: u(() => t[4] || (t[4] = [
|
|
131
125
|
l("Format:")
|
|
132
126
|
])),
|
|
133
|
-
_: 1
|
|
127
|
+
_: 1,
|
|
128
|
+
__: [4]
|
|
134
129
|
}),
|
|
135
130
|
l(" " + o(e.value.format), 1)
|
|
136
131
|
]),
|
|
137
132
|
_: 1
|
|
138
133
|
})) : a("", !0),
|
|
139
|
-
s(
|
|
140
|
-
prefix: u(() => t[
|
|
134
|
+
s(p)(e.value.exclusiveMinimum) ? (r(), i(n, { key: 6 }, {
|
|
135
|
+
prefix: u(() => t[5] || (t[5] = [
|
|
141
136
|
l("greater than: ")
|
|
142
137
|
])),
|
|
143
138
|
default: u(() => [
|
|
@@ -145,8 +140,8 @@ const j = { class: "property-heading" }, G = {
|
|
|
145
140
|
]),
|
|
146
141
|
_: 1
|
|
147
142
|
})) : a("", !0),
|
|
148
|
-
s(
|
|
149
|
-
prefix: u(() => t[
|
|
143
|
+
s(p)(e.value.minimum) ? (r(), i(n, { key: 7 }, {
|
|
144
|
+
prefix: u(() => t[6] || (t[6] = [
|
|
150
145
|
l("min: ")
|
|
151
146
|
])),
|
|
152
147
|
default: u(() => [
|
|
@@ -154,8 +149,8 @@ const j = { class: "property-heading" }, G = {
|
|
|
154
149
|
]),
|
|
155
150
|
_: 1
|
|
156
151
|
})) : a("", !0),
|
|
157
|
-
s(
|
|
158
|
-
prefix: u(() => t[
|
|
152
|
+
s(p)(e.value.exclusiveMaximum) ? (r(), i(n, { key: 8 }, {
|
|
153
|
+
prefix: u(() => t[7] || (t[7] = [
|
|
159
154
|
l("less than: ")
|
|
160
155
|
])),
|
|
161
156
|
default: u(() => [
|
|
@@ -163,8 +158,8 @@ const j = { class: "property-heading" }, G = {
|
|
|
163
158
|
]),
|
|
164
159
|
_: 1
|
|
165
160
|
})) : a("", !0),
|
|
166
|
-
s(
|
|
167
|
-
prefix: u(() => t[
|
|
161
|
+
s(p)(e.value.maximum) ? (r(), i(n, { key: 9 }, {
|
|
162
|
+
prefix: u(() => t[8] || (t[8] = [
|
|
168
163
|
l("max: ")
|
|
169
164
|
])),
|
|
170
165
|
default: u(() => [
|
|
@@ -172,8 +167,8 @@ const j = { class: "property-heading" }, G = {
|
|
|
172
167
|
]),
|
|
173
168
|
_: 1
|
|
174
169
|
})) : a("", !0),
|
|
175
|
-
s(
|
|
176
|
-
prefix: u(() => t[
|
|
170
|
+
s(p)(e.value.multipleOf) ? (r(), i(n, { key: 10 }, {
|
|
171
|
+
prefix: u(() => t[9] || (t[9] = [
|
|
177
172
|
l("multiple of: ")
|
|
178
173
|
])),
|
|
179
174
|
default: u(() => [
|
|
@@ -181,93 +176,89 @@ const j = { class: "property-heading" }, G = {
|
|
|
181
176
|
]),
|
|
182
177
|
_: 1
|
|
183
178
|
})) : a("", !0),
|
|
184
|
-
e.value.pattern ? (r(), n
|
|
179
|
+
e.value.pattern ? (r(), i(n, {
|
|
185
180
|
key: 11,
|
|
186
181
|
code: "",
|
|
187
182
|
truncate: ""
|
|
188
183
|
}, {
|
|
189
184
|
default: u(() => [
|
|
190
|
-
|
|
191
|
-
default: u(() => t[
|
|
185
|
+
y(S, null, {
|
|
186
|
+
default: u(() => t[10] || (t[10] = [
|
|
192
187
|
l("Pattern:")
|
|
193
188
|
])),
|
|
194
|
-
_: 1
|
|
189
|
+
_: 1,
|
|
190
|
+
__: [10]
|
|
195
191
|
}),
|
|
196
192
|
l(" " + o(e.value.pattern), 1)
|
|
197
193
|
]),
|
|
198
194
|
_: 1
|
|
199
195
|
})) : a("", !0),
|
|
200
|
-
e.$props.enum ? (r(), n
|
|
201
|
-
default: u(() => t[
|
|
196
|
+
e.$props.enum ? (r(), i(n, { key: 12 }, {
|
|
197
|
+
default: u(() => t[11] || (t[11] = [
|
|
202
198
|
l("enum")
|
|
203
199
|
])),
|
|
204
|
-
_: 1
|
|
200
|
+
_: 1,
|
|
201
|
+
__: [11]
|
|
205
202
|
})) : a("", !0),
|
|
206
|
-
e.value.default !== void 0 ? (r(), n
|
|
203
|
+
e.value.default !== void 0 ? (r(), i(n, {
|
|
207
204
|
key: 13,
|
|
208
205
|
truncate: ""
|
|
209
206
|
}, {
|
|
210
|
-
prefix: u(() => t[
|
|
207
|
+
prefix: u(() => t[12] || (t[12] = [
|
|
211
208
|
l("default: ")
|
|
212
209
|
])),
|
|
213
210
|
default: u(() => [
|
|
214
|
-
l(" " + o(
|
|
211
|
+
l(" " + o(E(e.value)), 1)
|
|
215
212
|
]),
|
|
216
213
|
_: 1
|
|
217
214
|
})) : a("", !0)
|
|
218
215
|
], 64)) : a("", !0),
|
|
219
|
-
e.additional ? (r(),
|
|
220
|
-
(N = e.value) != null && N["x-additionalPropertiesName"] ? (r(),
|
|
216
|
+
e.additional ? (r(), m("div", K, [
|
|
217
|
+
(N = e.value) != null && N["x-additionalPropertiesName"] ? (r(), m(f, { key: 0 }, [
|
|
221
218
|
l(o(e.value["x-additionalPropertiesName"]), 1)
|
|
222
|
-
], 64)) : (r(),
|
|
219
|
+
], 64)) : (r(), m(f, { key: 1 }, [
|
|
223
220
|
l("additional properties")
|
|
224
221
|
], 64))
|
|
225
222
|
])) : a("", !0),
|
|
226
|
-
e.
|
|
227
|
-
|
|
228
|
-
default: u(() => t[
|
|
229
|
-
l("pattern")
|
|
230
|
-
])),
|
|
231
|
-
_: 1
|
|
232
|
-
})
|
|
233
|
-
])) : a("", !0),
|
|
234
|
-
(M = e.value) != null && M.deprecated ? (r(), i("div", U, [
|
|
235
|
-
p(s(L), null, {
|
|
236
|
-
default: u(() => t[16] || (t[16] = [
|
|
223
|
+
(M = e.value) != null && M.deprecated ? (r(), m("div", Q, [
|
|
224
|
+
y(s(R), null, {
|
|
225
|
+
default: u(() => t[13] || (t[13] = [
|
|
237
226
|
l("deprecated")
|
|
238
227
|
])),
|
|
239
|
-
_: 1
|
|
228
|
+
_: 1,
|
|
229
|
+
__: [13]
|
|
240
230
|
})
|
|
241
231
|
])) : a("", !0),
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
prefix: u(() => t[
|
|
232
|
+
B.value !== void 0 ? (r(), m("div", U, [
|
|
233
|
+
y(n, { truncate: "" }, {
|
|
234
|
+
prefix: u(() => t[14] || (t[14] = [
|
|
245
235
|
l("const: ")
|
|
246
236
|
])),
|
|
247
237
|
default: u(() => [
|
|
248
|
-
|
|
238
|
+
y(z, { value: B.value }, null, 8, ["value"])
|
|
249
239
|
]),
|
|
250
240
|
_: 1
|
|
251
241
|
})
|
|
252
|
-
])) : (r(),
|
|
253
|
-
((q = e.value) == null ? void 0 : q.nullable) === !0 ? (r(), n
|
|
254
|
-
default: u(() => t[
|
|
242
|
+
])) : (r(), m(f, { key: 6 }, [
|
|
243
|
+
((q = e.value) == null ? void 0 : q.nullable) === !0 ? (r(), i(n, { key: 0 }, {
|
|
244
|
+
default: u(() => t[15] || (t[15] = [
|
|
255
245
|
l(" nullable ")
|
|
256
246
|
])),
|
|
257
|
-
_: 1
|
|
247
|
+
_: 1,
|
|
248
|
+
__: [15]
|
|
258
249
|
})) : a("", !0)
|
|
259
250
|
], 64)),
|
|
260
|
-
(w = e.value) != null && w.writeOnly ? (r(),
|
|
261
|
-
e.required ? (r(),
|
|
262
|
-
e.withExamples ? (r(),
|
|
263
|
-
key:
|
|
264
|
-
examples: (
|
|
265
|
-
example: ((
|
|
251
|
+
(w = e.value) != null && w.writeOnly ? (r(), m("div", W, " write-only ")) : (O = e.value) != null && O.readOnly ? (r(), m("div", X, " read-only ")) : a("", !0),
|
|
252
|
+
e.required ? (r(), m("div", Y, " required ")) : a("", !0),
|
|
253
|
+
e.withExamples ? (r(), i(H, {
|
|
254
|
+
key: 10,
|
|
255
|
+
examples: (P = e.value) == null ? void 0 : P.examples,
|
|
256
|
+
example: ((I = e.value) == null ? void 0 : I.example) || ((A = (V = e.value) == null ? void 0 : V.items) == null ? void 0 : A.example)
|
|
266
257
|
}, null, 8, ["examples", "example"])) : a("", !0)
|
|
267
258
|
]);
|
|
268
259
|
};
|
|
269
260
|
}
|
|
270
261
|
});
|
|
271
262
|
export {
|
|
272
|
-
|
|
263
|
+
ae as default
|
|
273
264
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-example.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/format-example.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAkD/D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-type-object.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/is-type-object.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAKxD,eAAO,MAAM,YAAY,WAAY,OAAO,KAAG,MAAM,IAAI,WAAW,CAAC,YAsCpE,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const s = (t) => {
|
|
2
|
+
if (t === null || typeof t != "object" || Array.isArray(t) || "oneOf" in t || "anyOf" in t || "allOf" in t || "not" in t)
|
|
3
|
+
return !1;
|
|
4
|
+
const r = "type" in t;
|
|
5
|
+
if (r && Array.isArray(t.type))
|
|
6
|
+
return t.type.includes("object");
|
|
7
|
+
const n = r && t.type === "object";
|
|
8
|
+
if (n)
|
|
9
|
+
return !0;
|
|
10
|
+
if (r && !n)
|
|
11
|
+
return !1;
|
|
12
|
+
const i = "properties" in t, o = "additionalProperties" in t, e = "patternProperties" in t;
|
|
13
|
+
return i || o || e;
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
s as isTypeObject
|
|
17
|
+
};
|
|
@@ -5,4 +5,4 @@ export declare const compositions: CompositionKeyword[];
|
|
|
5
5
|
* Optimize the value by removing nulls from compositions.
|
|
6
6
|
*/
|
|
7
7
|
export declare function optimizeValueForDisplay(value: UnknownObject | undefined): Record<string, any> | undefined;
|
|
8
|
-
//# sourceMappingURL=
|
|
8
|
+
//# sourceMappingURL=optimize-value-for-display.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"optimize-value-for-display.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/optimize-value-for-display.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAExD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAE9D,eAAO,MAAM,YAAY,EAAE,kBAAkB,EAAuC,CAAA;AAEpF;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,aAAa,GAAG,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAuEzG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationsList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/OperationsList.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OperationsList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/OperationsList.vue"],"names":[],"mappings":"AAiEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAS/C,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,GAAG,CAAA;IACR,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AA+GF,wBAMG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./OperationsList.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d9656fb3"]]);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
|
@@ -1,28 +1,26 @@
|
|
|
1
|
-
import { defineComponent as u, computed as f, createBlock as
|
|
2
|
-
import O from "
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
import b from "../../Card/CardContent.vue.js";
|
|
7
|
-
const h = ["aria-label"], F = /* @__PURE__ */ u({
|
|
1
|
+
import { defineComponent as u, computed as f, createBlock as c, createCommentVNode as C, openBlock as a, unref as o, withCtx as t, createVNode as l, createTextVNode as p, toDisplayString as g, createElementVNode as _, createElementBlock as N, Fragment as S, renderList as k } from "vue";
|
|
2
|
+
import { ScalarCard as y, ScalarCardHeader as O, ScalarCardSection as B } from "@scalar/components";
|
|
3
|
+
import V from "../../ScreenReader.vue.js";
|
|
4
|
+
import L from "./OperationsListItem.vue.js";
|
|
5
|
+
const b = ["aria-label"], x = /* @__PURE__ */ u({
|
|
8
6
|
__name: "OperationsList",
|
|
9
7
|
props: {
|
|
10
8
|
tag: {},
|
|
11
9
|
collection: {},
|
|
12
10
|
isCollapsed: { type: Boolean }
|
|
13
11
|
},
|
|
14
|
-
setup(
|
|
15
|
-
const
|
|
12
|
+
setup(m) {
|
|
13
|
+
const r = m, n = f(() => r.tag["x-displayName"] ?? r.tag.name);
|
|
16
14
|
return (e, s) => {
|
|
17
15
|
var i;
|
|
18
|
-
return ((i = e.tag.operations) == null ? void 0 : i.length) > 0 ? (
|
|
16
|
+
return ((i = e.tag.operations) == null ? void 0 : i.length) > 0 ? (a(), c(o(y), {
|
|
19
17
|
key: 0,
|
|
20
|
-
class: "
|
|
18
|
+
class: "endpoints-card"
|
|
21
19
|
}, {
|
|
22
20
|
default: t(() => [
|
|
23
|
-
|
|
21
|
+
l(o(O), null, {
|
|
24
22
|
default: t(() => [
|
|
25
|
-
|
|
23
|
+
l(V, null, {
|
|
26
24
|
default: t(() => [
|
|
27
25
|
p(g(n.value), 1)
|
|
28
26
|
]),
|
|
@@ -30,24 +28,22 @@ const h = ["aria-label"], F = /* @__PURE__ */ u({
|
|
|
30
28
|
}),
|
|
31
29
|
s[0] || (s[0] = p(" Operations "))
|
|
32
30
|
]),
|
|
33
|
-
_: 1
|
|
31
|
+
_: 1,
|
|
32
|
+
__: [0]
|
|
34
33
|
}),
|
|
35
|
-
|
|
36
|
-
class: "custom-scroll",
|
|
37
|
-
muted: ""
|
|
38
|
-
}, {
|
|
34
|
+
l(o(B), { class: "custom-scroll" }, {
|
|
39
35
|
default: t(() => [
|
|
40
|
-
|
|
36
|
+
_("ul", {
|
|
41
37
|
"aria-label": `${n.value} endpoints`,
|
|
42
38
|
class: "endpoints"
|
|
43
39
|
}, [
|
|
44
|
-
(
|
|
40
|
+
(a(!0), N(S, null, k(e.tag.operations, (d) => (a(), c(L, {
|
|
45
41
|
key: d.id,
|
|
46
42
|
collection: e.collection,
|
|
47
43
|
isCollapsed: e.isCollapsed,
|
|
48
44
|
transformedOperation: d
|
|
49
45
|
}, null, 8, ["collection", "isCollapsed", "transformedOperation"]))), 128))
|
|
50
|
-
], 8,
|
|
46
|
+
], 8, b)
|
|
51
47
|
]),
|
|
52
48
|
_: 1
|
|
53
49
|
})
|
|
@@ -58,5 +54,5 @@ const h = ["aria-label"], F = /* @__PURE__ */ u({
|
|
|
58
54
|
}
|
|
59
55
|
});
|
|
60
56
|
export {
|
|
61
|
-
|
|
57
|
+
x as default
|
|
62
58
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/OperationsListItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/OperationsListItem.vue"],"names":[],"mappings":"AAsHA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAEjE,OAAO,KAAK,EAEV,oBAAoB,EAErB,MAAM,sBAAsB,CAAA;AAS7B,KAAK,WAAW,GAAG;IACjB,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AA4IF,wBAOG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./OperationsListItem.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-19af3744"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|