@scalar/api-reference 1.30.0 → 1.31.1
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 +50 -0
- package/dist/browser/standalone.js +6690 -6569
- package/dist/browser/webpack-stats.json +1 -1
- package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
- package/dist/components/ApiReferenceLayout.vue.js +1 -1
- package/dist/components/ApiReferenceLayout.vue2.js +164 -181
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
- package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +56 -51
- 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 +5 -5
- package/dist/components/Content/Introduction/Introduction.vue.d.ts +2 -2
- package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
- package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
- package/dist/components/Content/Introduction/Introduction.vue2.js +57 -63
- package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
- package/dist/components/Content/Lazy/Loading.vue.js +46 -46
- package/dist/components/Content/Models/Models.vue.d.ts +2 -2
- package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/Models.vue.js +2 -2
- package/dist/components/Content/Models/Models.vue2.js +9 -7
- package/dist/components/Content/Models/ModelsAccordion.vue.d.ts +2 -2
- package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +1 -1
- package/dist/components/Content/Models/ModelsAccordion.vue.js +2 -2
- package/dist/components/Content/Schema/Schema.preview.d.ts +294 -84
- package/dist/components/Content/Schema/Schema.preview.d.ts.map +1 -1
- package/dist/components/Content/Schema/Schema.vue.d.ts +21 -4
- 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 +158 -131
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts +2 -2
- package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaComposition.vue.js +57 -53
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts +2 -3
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +29 -29
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts +2 -2
- package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaHeading.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +12 -3
- package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
- package/dist/components/Content/Schema/SchemaProperty.vue2.js +133 -103
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +3 -2
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +2 -2
- package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +133 -126
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts +2 -2
- package/dist/components/Content/Schema/helpers/merge-all-of-schemas.d.ts.map +1 -1
- package/dist/components/Content/Tag/TagList.vue.d.ts +2 -2
- package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
- package/dist/components/DocumentSelector/DocumentSelector.vue.js +3 -3
- package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
- package/dist/components/Layouts/ClassicLayout.vue.js +19 -17
- package/dist/components/Layouts/Layouts.vue.js +11 -9
- package/dist/components/Layouts/ModernLayout.vue2.js +22 -20
- package/dist/components/Section/SectionAccordion.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionAccordion.vue.js +2 -2
- package/dist/components/Section/SectionAccordion.vue2.js +1 -1
- 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 +4 -4
- package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
- package/dist/components/Section/SectionHeader.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
- package/dist/components/Sidebar/Sidebar.vue.js +2 -2
- package/dist/components/Sidebar/Sidebar.vue2.js +56 -56
- package/dist/components/SingleApiReference.vue.d.ts.map +1 -1
- package/dist/components/SingleApiReference.vue.js +27 -33
- package/dist/esm.d.ts.map +1 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts +2 -2
- package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
- package/dist/features/ApiClientModal/ApiClientModal.vue.js +49 -50
- package/dist/features/ApiClientModal/useApiClient.d.ts +196 -196
- package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
- package/dist/features/DocumentSource/hooks/useDocumentFetcher.d.ts +11 -0
- package/dist/features/DocumentSource/hooks/useDocumentFetcher.d.ts.map +1 -0
- package/dist/features/DocumentSource/hooks/useDocumentFetcher.js +38 -0
- package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts +21 -0
- package/dist/features/DocumentSource/hooks/useDocumentSource.d.ts.map +1 -0
- package/dist/features/DocumentSource/hooks/useDocumentSource.js +94 -0
- package/dist/features/DocumentSource/index.d.ts +2 -0
- package/dist/features/DocumentSource/index.d.ts.map +1 -0
- package/dist/features/DownloadLink/DownloadLink.vue.d.ts +1 -1
- package/dist/features/DownloadLink/DownloadLink.vue.d.ts.map +1 -1
- package/dist/features/DownloadLink/DownloadLink.vue.js +1 -1
- package/dist/features/DownloadLink/DownloadLink.vue2.js +18 -17
- package/dist/features/DownloadLink/index.d.ts +1 -0
- package/dist/features/DownloadLink/index.d.ts.map +1 -1
- package/dist/features/DownloadLink/openapi-version-symbol.d.ts +2 -0
- package/dist/features/DownloadLink/openapi-version-symbol.d.ts.map +1 -0
- package/dist/features/DownloadLink/openapi-version-symbol.js +4 -0
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts +2 -0
- package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
- package/dist/features/ExampleRequest/ExampleRequest.vue.js +2 -2
- package/dist/features/ExampleRequest/ExampleRequest.vue2.js +178 -127
- package/dist/features/Operation/Operation.vue.d.ts +2 -2
- package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
- package/dist/features/Operation/Operation.vue.js +29 -23
- package/dist/features/Operation/components/OperationParameters.vue.d.ts +7 -3
- package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/OperationParameters.vue.js +28 -24
- package/dist/features/Operation/components/OperationResponses.vue.d.ts +2 -2
- package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterHeaders.vue.d.ts +2 -2
- package/dist/features/Operation/components/ParameterHeaders.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterHeaders.vue.js +2 -2
- package/dist/features/Operation/components/ParameterList.vue.d.ts +2 -2
- package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterList.vue.js +2 -2
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts +2 -2
- package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
- package/dist/features/Operation/components/ParameterListItem.vue2.js +6 -6
- package/dist/features/Operation/components/RequestBody.vue.d.ts +7 -3
- package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
- package/dist/features/Operation/components/RequestBody.vue.js +2 -2
- package/dist/features/Operation/components/RequestBody.vue2.js +41 -36
- package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +7 -3
- 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 +84 -79
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +5 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
- package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
- package/dist/features/Operation/layouts/ModernLayout.vue2.js +66 -57
- package/dist/features/Operation/types/schemas.d.ts +2 -2
- package/dist/features/Operation/types/schemas.d.ts.map +1 -1
- package/dist/features/Search/SearchButton.vue.js +2 -2
- package/dist/helpers/local-storage.d.ts +8 -0
- package/dist/helpers/local-storage.d.ts.map +1 -0
- package/dist/helpers/local-storage.js +6 -0
- package/dist/helpers/measure.d.ts +21 -0
- package/dist/helpers/measure.d.ts.map +1 -0
- package/dist/helpers/measure.js +7 -0
- package/dist/helpers/parse.d.ts +3 -5
- package/dist/helpers/parse.d.ts.map +1 -1
- package/dist/helpers/parse.js +64 -86
- package/dist/helpers/scroll-to-id.d.ts.map +1 -1
- package/dist/helpers/scroll-to-id.js +18 -4
- package/dist/hooks/useDiscriminator.d.ts +53 -0
- package/dist/hooks/useDiscriminator.d.ts.map +1 -0
- package/dist/hooks/useDiscriminator.js +149 -0
- package/dist/hooks/useOperationDiscriminator.d.ts +8 -0
- package/dist/hooks/useOperationDiscriminator.d.ts.map +1 -0
- package/dist/hooks/useOperationDiscriminator.js +57 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +33 -35
- package/dist/libs/openapi.d.ts +3 -3
- package/dist/libs/openapi.d.ts.map +1 -1
- package/dist/libs/openapi.js +35 -42
- package/dist/standalone/lib/html-api.d.ts.map +1 -1
- package/dist/standalone/lib/html-api.js +15 -15
- package/dist/stores/useHttpClientStore.d.ts.map +1 -1
- package/dist/stores/useHttpClientStore.js +19 -18
- package/dist/style.css +1 -1
- package/dist/types.d.ts +27 -3
- package/dist/types.d.ts.map +1 -1
- package/package.json +15 -16
- package/dist/components/Content/Schema/helpers/schema-discriminator.d.ts +0 -12
- package/dist/components/Content/Schema/helpers/schema-discriminator.d.ts.map +0 -1
- package/dist/components/Content/Schema/helpers/schema-discriminator.js +0 -45
- package/dist/hooks/useReactiveSpec.d.ts +0 -448
- package/dist/hooks/useReactiveSpec.d.ts.map +0 -1
- package/dist/hooks/useReactiveSpec.js +0 -59
package/dist/helpers/parse.js
CHANGED
|
@@ -1,119 +1,97 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
import { validRequestMethods as C } from "../legacy/fixtures/httpRequestMethods.js";
|
|
7
|
-
const G = (m, {
|
|
8
|
-
proxyUrl: e
|
|
9
|
-
} = {}) => new Promise(async (n, b) => {
|
|
10
|
-
var h;
|
|
1
|
+
import { shouldIgnoreEntity as u } from "@scalar/oas-utils/helpers";
|
|
2
|
+
import { createEmptySpecification as w } from "../libs/openapi.js";
|
|
3
|
+
import { normalizeRequestMethod as R } from "../legacy/helpers/normalizeRequestMethod.js";
|
|
4
|
+
import { validRequestMethods as q } from "../legacy/fixtures/httpRequestMethods.js";
|
|
5
|
+
const C = (c) => new Promise(async (t, p) => {
|
|
11
6
|
try {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
plugins: [
|
|
16
|
-
D({
|
|
17
|
-
fetch: (o) => fetch(e ? R(e, o) : o)
|
|
18
|
-
})
|
|
19
|
-
]
|
|
20
|
-
}), { schema: a, errors: r } = await q(s), t = performance.now();
|
|
21
|
-
return console.log(`dereference: ${Math.round(t - f)} ms`), r != null && r.length && console.warn(
|
|
22
|
-
`Please open an issue on https://github.com/scalar/scalar
|
|
23
|
-
`,
|
|
24
|
-
`Scalar OpenAPI Parser Warning:
|
|
25
|
-
`,
|
|
26
|
-
r
|
|
27
|
-
), a === void 0 ? (b(((h = r == null ? void 0 : r[0]) == null ? void 0 : h.message) ?? "Failed to parse the OpenAPI file."), n(I(O()))) : n(I(a));
|
|
28
|
-
} catch (f) {
|
|
29
|
-
console.error("[@scalar/api-reference]", "Failed to parse the OpenAPI document. It might be invalid?"), console.error(f), b(f);
|
|
7
|
+
return t(b(c || w()));
|
|
8
|
+
} catch (l) {
|
|
9
|
+
console.error("[@scalar/api-reference]", "Failed to parse the OpenAPI document. It might be invalid?"), console.error(l), p(l);
|
|
30
10
|
}
|
|
31
|
-
return
|
|
32
|
-
}),
|
|
33
|
-
var
|
|
34
|
-
let
|
|
35
|
-
|
|
36
|
-
const
|
|
37
|
-
return Object.keys(
|
|
38
|
-
var
|
|
39
|
-
Object.keys(((
|
|
40
|
-
var
|
|
41
|
-
const
|
|
42
|
-
if (!(!
|
|
43
|
-
if (Array.isArray(
|
|
44
|
-
const
|
|
45
|
-
(
|
|
46
|
-
var
|
|
47
|
-
return (
|
|
11
|
+
return t(b(w()));
|
|
12
|
+
}), b = (c) => {
|
|
13
|
+
var E, O;
|
|
14
|
+
let t = {};
|
|
15
|
+
c && typeof c == "object" ? t = c : t = w(), t.tags || (t.tags = []), t.paths || (t.paths = {}), t.components || (t.components = {}), t.webhooks || (t.webhooks = {}), t.servers || (t.servers = []), t.security || (t.security = []);
|
|
16
|
+
const p = {};
|
|
17
|
+
return Object.keys(t.webhooks ?? {}).forEach((s) => {
|
|
18
|
+
var d;
|
|
19
|
+
Object.keys(((d = t.webhooks) == null ? void 0 : d[s]) ?? {}).forEach((r) => {
|
|
20
|
+
var n, m, h, g;
|
|
21
|
+
const e = (n = t.webhooks) == null ? void 0 : n[s][r];
|
|
22
|
+
if (!(!e || u(e))) {
|
|
23
|
+
if (Array.isArray(e.tags)) {
|
|
24
|
+
const o = (m = e.tags) == null ? void 0 : m.map(
|
|
25
|
+
(a) => {
|
|
26
|
+
var y;
|
|
27
|
+
return (y = t.tags) == null ? void 0 : y.find((i) => i.name === a);
|
|
48
28
|
}
|
|
49
29
|
);
|
|
50
|
-
if (
|
|
30
|
+
if (e.tags = o == null ? void 0 : o.filter((a) => !u(a)), o != null && o.some((a) => u(a)))
|
|
51
31
|
return;
|
|
52
32
|
}
|
|
53
|
-
|
|
33
|
+
p[s] === void 0 && (p[s] = {}), p[s][r] = {
|
|
54
34
|
// Transformed data
|
|
55
|
-
httpVerb:
|
|
35
|
+
httpVerb: R(r),
|
|
56
36
|
path: s,
|
|
57
|
-
operationId: (
|
|
58
|
-
name: (
|
|
59
|
-
description: (
|
|
60
|
-
pathParameters: (
|
|
37
|
+
operationId: (e == null ? void 0 : e.operationId) || s,
|
|
38
|
+
name: (e == null ? void 0 : e.summary) || s || "",
|
|
39
|
+
description: (e == null ? void 0 : e.description) || "",
|
|
40
|
+
pathParameters: (g = (h = t.paths) == null ? void 0 : h[s]) == null ? void 0 : g.parameters,
|
|
61
41
|
// Original webhook
|
|
62
42
|
information: {
|
|
63
|
-
...
|
|
43
|
+
...e
|
|
64
44
|
}
|
|
65
45
|
};
|
|
66
46
|
}
|
|
67
47
|
});
|
|
68
|
-
}), Object.keys(((
|
|
69
|
-
var
|
|
70
|
-
u((r = (
|
|
71
|
-
}), Object.keys(
|
|
72
|
-
Object.keys(
|
|
73
|
-
(r) =>
|
|
48
|
+
}), Object.keys(((E = t.components) == null ? void 0 : E.schemas) ?? {}).forEach((s) => {
|
|
49
|
+
var d, r, e, n;
|
|
50
|
+
u((r = (d = t.components) == null ? void 0 : d.schemas) == null ? void 0 : r[s]) && ((n = (e = t.components) == null ? void 0 : e.schemas) == null || delete n[s]);
|
|
51
|
+
}), Object.keys(t.paths).forEach((s) => {
|
|
52
|
+
Object.keys(t.paths[s]).filter(
|
|
53
|
+
(r) => q.includes(r.toUpperCase())
|
|
74
54
|
).forEach((r) => {
|
|
75
|
-
var
|
|
76
|
-
const
|
|
77
|
-
if (
|
|
55
|
+
var m, h, g, o, a, y;
|
|
56
|
+
const e = t.paths[s][r];
|
|
57
|
+
if (e === void 0 || u(e))
|
|
78
58
|
return;
|
|
79
|
-
const
|
|
80
|
-
httpVerb:
|
|
59
|
+
const n = {
|
|
60
|
+
httpVerb: R(r),
|
|
81
61
|
path: s,
|
|
82
|
-
operationId:
|
|
83
|
-
name:
|
|
84
|
-
description:
|
|
62
|
+
operationId: e.operationId || s,
|
|
63
|
+
name: e.summary || s || "",
|
|
64
|
+
description: e.description || "",
|
|
85
65
|
information: {
|
|
86
|
-
...
|
|
66
|
+
...e
|
|
87
67
|
},
|
|
88
|
-
pathParameters: (
|
|
68
|
+
pathParameters: (h = (m = t.paths) == null ? void 0 : m[s]) == null ? void 0 : h.parameters
|
|
89
69
|
};
|
|
90
|
-
if (!
|
|
91
|
-
(
|
|
70
|
+
if (!e.tags || e.tags.length === 0) {
|
|
71
|
+
(g = t.tags) != null && g.find((f) => f.name === "default") || (o = t.tags) == null || o.push({
|
|
92
72
|
name: "default",
|
|
93
73
|
description: "",
|
|
94
74
|
operations: []
|
|
95
75
|
});
|
|
96
|
-
const
|
|
97
|
-
|
|
98
|
-
);
|
|
99
|
-
p >= 0 && ((w = e.tags[p]) == null || w.operations.push(o));
|
|
76
|
+
const i = (a = t.tags) == null ? void 0 : a.findIndex((f) => f.name === "default");
|
|
77
|
+
i >= 0 && ((y = t.tags[i]) == null || y.operations.push(n));
|
|
100
78
|
} else
|
|
101
|
-
|
|
102
|
-
var
|
|
103
|
-
const
|
|
104
|
-
|
|
105
|
-
name:
|
|
79
|
+
e.tags.forEach((i) => {
|
|
80
|
+
var k, x, j;
|
|
81
|
+
const f = (k = t.tags) == null ? void 0 : k.findIndex((P) => P.name === i);
|
|
82
|
+
f === -1 && ((x = t.tags) == null || x.push({
|
|
83
|
+
name: i,
|
|
106
84
|
description: ""
|
|
107
85
|
}));
|
|
108
|
-
const
|
|
109
|
-
typeof ((
|
|
86
|
+
const I = f !== -1 ? f : t.tags.length - 1;
|
|
87
|
+
typeof ((j = t.tags[I]) == null ? void 0 : j.operations) > "u" && (t.tags[I].operations = []), t.tags[I].operations.push(n);
|
|
110
88
|
});
|
|
111
89
|
});
|
|
112
|
-
}),
|
|
113
|
-
...
|
|
114
|
-
webhooks:
|
|
90
|
+
}), t.tags = (O = t.tags) == null ? void 0 : O.filter((s) => !u(s)), {
|
|
91
|
+
...t,
|
|
92
|
+
webhooks: p
|
|
115
93
|
};
|
|
116
94
|
};
|
|
117
95
|
export {
|
|
118
|
-
|
|
96
|
+
C as parse
|
|
119
97
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scroll-to-id.d.ts","sourceRoot":"","sources":["../../src/helpers/scroll-to-id.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,UAAU,OAAc,MAAM,UAAU,OAAO,
|
|
1
|
+
{"version":3,"file":"scroll-to-id.d.ts","sourceRoot":"","sources":["../../src/helpers/scroll-to-id.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,UAAU,OAAc,MAAM,UAAU,OAAO,kBAkC3D,CAAA"}
|
|
@@ -1,7 +1,21 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
|
|
1
|
+
const l = async (t, r) => {
|
|
2
|
+
const n = (e) => {
|
|
3
|
+
e.scrollIntoView(), r && e.focus();
|
|
4
|
+
}, o = document.getElementById(t);
|
|
5
|
+
if (o) {
|
|
6
|
+
n(o);
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
const s = Date.now() + 1e3, c = () => {
|
|
10
|
+
const e = document.getElementById(t);
|
|
11
|
+
if (e) {
|
|
12
|
+
n(e);
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
Date.now() < s && requestAnimationFrame(c);
|
|
16
|
+
};
|
|
17
|
+
requestAnimationFrame(c);
|
|
4
18
|
};
|
|
5
19
|
export {
|
|
6
|
-
|
|
20
|
+
l as scrollToId
|
|
7
21
|
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { Schemas } from '../features/Operation/types/schemas';
|
|
2
|
+
import type { OpenAPIV3_1 } from '@scalar/openapi-types';
|
|
3
|
+
import { type InjectionKey, type ComputedRef } from 'vue';
|
|
4
|
+
/** Discriminator context type */
|
|
5
|
+
export type DiscriminatorContext = {
|
|
6
|
+
selectedType: string | undefined;
|
|
7
|
+
discriminatorMapping: Record<string, string>;
|
|
8
|
+
discriminatorPropertyName: string;
|
|
9
|
+
hasDiscriminator: boolean;
|
|
10
|
+
mergedSchema: OpenAPIV3_1.SchemaObject | undefined;
|
|
11
|
+
};
|
|
12
|
+
/** Example context type */
|
|
13
|
+
export type ExampleContext = {
|
|
14
|
+
generateExampleValue: (isArray?: boolean) => any;
|
|
15
|
+
};
|
|
16
|
+
/** Injection keys */
|
|
17
|
+
export declare const DISCRIMINATOR_CONTEXT: InjectionKey<ComputedRef<DiscriminatorContext | null>>;
|
|
18
|
+
export declare const EXAMPLE_CONTEXT: InjectionKey<ExampleContext>;
|
|
19
|
+
/** Discriminator mapping */
|
|
20
|
+
export type DiscriminatorMapping = NonNullable<OpenAPIV3_1.DiscriminatorObject['mapping']>;
|
|
21
|
+
/** Discriminator property name */
|
|
22
|
+
export type DiscriminatorPropertyName = OpenAPIV3_1.DiscriminatorObject['propertyName'];
|
|
23
|
+
/** Use discriminator options */
|
|
24
|
+
export type UseDiscriminatorOptions = {
|
|
25
|
+
schema: OpenAPIV3_1.SchemaObject | undefined;
|
|
26
|
+
schemas?: Schemas;
|
|
27
|
+
onSchemaChange?: (newSchema: OpenAPIV3_1.SchemaObject) => void;
|
|
28
|
+
};
|
|
29
|
+
/** Get discriminator mapping from schema */
|
|
30
|
+
export declare function getDiscriminatorMapping(schema: OpenAPIV3_1.SchemaObject | undefined): DiscriminatorMapping | undefined;
|
|
31
|
+
/** Get discriminator property name from schema */
|
|
32
|
+
export declare function getDiscriminatorPropertyName(schema: OpenAPIV3_1.SchemaObject | undefined): DiscriminatorPropertyName | undefined;
|
|
33
|
+
/** Check if schema has a discriminator */
|
|
34
|
+
export declare function hasDiscriminator(schema: OpenAPIV3_1.SchemaObject | undefined): boolean;
|
|
35
|
+
/** Get base discriminator schema name by matching discriminator property */
|
|
36
|
+
export declare function getBaseDiscriminatorSchemaName(discriminatorPropertyName: string, schemas?: Schemas): string | null;
|
|
37
|
+
/** Get base discriminator schema name for array items that might reference a discriminator schema */
|
|
38
|
+
export declare function getDiscriminatorSchemaName(itemsSchema: OpenAPIV3_1.SchemaObject | undefined, schemas?: Schemas): string | null;
|
|
39
|
+
/** Merge discriminator schemas */
|
|
40
|
+
export declare function mergeDiscriminatorSchemas(baseSchema: OpenAPIV3_1.SchemaObject, selectedType: string, schemas: Record<string, OpenAPIV3_1.SchemaObject>): OpenAPIV3_1.SchemaObject | undefined;
|
|
41
|
+
/** Use discriminator hook */
|
|
42
|
+
export declare function useDiscriminator({ schema, schemas, onSchemaChange }: UseDiscriminatorOptions): {
|
|
43
|
+
selectedType: import("vue").Ref<string, string>;
|
|
44
|
+
discriminatorMapping: ComputedRef<{
|
|
45
|
+
[value: string]: string;
|
|
46
|
+
} | undefined>;
|
|
47
|
+
defaultType: ComputedRef<string>;
|
|
48
|
+
discriminatorPropertyName: ComputedRef<string | undefined>;
|
|
49
|
+
hasDiscriminator: ComputedRef<boolean>;
|
|
50
|
+
mergedSchema: ComputedRef<OpenAPIV3_1.SchemaObject | undefined>;
|
|
51
|
+
generateExampleValue: (isArray?: boolean) => any;
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=useDiscriminator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDiscriminator.d.ts","sourceRoot":"","sources":["../../src/hooks/useDiscriminator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD,OAAO,EAAwB,KAAK,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,KAAK,CAAA;AAE/E,iCAAiC;AACjC,MAAM,MAAM,oBAAoB,GAAG;IACjC,YAAY,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC5C,yBAAyB,EAAE,MAAM,CAAA;IACjC,gBAAgB,EAAE,OAAO,CAAA;IACzB,YAAY,EAAE,WAAW,CAAC,YAAY,GAAG,SAAS,CAAA;CACnD,CAAA;AAED,2BAA2B;AAC3B,MAAM,MAAM,cAAc,GAAG;IAC3B,oBAAoB,EAAE,CAAC,OAAO,CAAC,EAAE,OAAO,KAAK,GAAG,CAAA;CACjD,CAAA;AAED,qBAAqB;AACrB,eAAO,MAAM,qBAAqB,EAAsC,YAAY,CAClF,WAAW,CAAC,oBAAoB,GAAG,IAAI,CAAC,CACzC,CAAA;AACD,eAAO,MAAM,eAAe,EAAgC,YAAY,CAAC,cAAc,CAAC,CAAA;AAExF,4BAA4B;AAC5B,MAAM,MAAM,oBAAoB,GAAG,WAAW,CAAC,WAAW,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC,CAAA;AAE1F,kCAAkC;AAClC,MAAM,MAAM,yBAAyB,GAAG,WAAW,CAAC,mBAAmB,CAAC,cAAc,CAAC,CAAA;AAEvF,gCAAgC;AAChC,MAAM,MAAM,uBAAuB,GAAG;IACpC,MAAM,EAAE,WAAW,CAAC,YAAY,GAAG,SAAS,CAAA;IAC5C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,cAAc,CAAC,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC,YAAY,KAAK,IAAI,CAAA;CAC/D,CAAA;AAED,4CAA4C;AAC5C,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,WAAW,CAAC,YAAY,GAAG,SAAS,GAC3C,oBAAoB,GAAG,SAAS,CAKlC;AAED,kDAAkD;AAClD,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,WAAW,CAAC,YAAY,GAAG,SAAS,GAC3C,yBAAyB,GAAG,SAAS,CAEvC;AAED,0CAA0C;AAC1C,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,GAAG,SAAS,GAAG,OAAO,CAEtF;AAED,4EAA4E;AAC5E,wBAAgB,8BAA8B,CAAC,yBAAyB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAiBlH;AAED,qGAAqG;AACrG,wBAAgB,0BAA0B,CACxC,WAAW,EAAE,WAAW,CAAC,YAAY,GAAG,SAAS,EACjD,OAAO,CAAC,EAAE,OAAO,GAChB,MAAM,GAAG,IAAI,CAsBf;AAgBD,kCAAkC;AAClC,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,WAAW,CAAC,YAAY,EACpC,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GAChD,WAAW,CAAC,YAAY,GAAG,SAAS,CA6EtC;AAED,6BAA6B;AAC7B,wBAAgB,gBAAgB,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE,uBAAuB;;;;;;;;;;EAuI5F"}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { computed as c, ref as q, watch as O } from "vue";
|
|
2
|
+
const V = Symbol("discriminator-context"), w = Symbol("example-context");
|
|
3
|
+
function j(r) {
|
|
4
|
+
var e;
|
|
5
|
+
if ((e = r == null ? void 0 : r.discriminator) != null && e.mapping)
|
|
6
|
+
return r.discriminator.mapping;
|
|
7
|
+
}
|
|
8
|
+
function E(r) {
|
|
9
|
+
var e;
|
|
10
|
+
return (e = r == null ? void 0 : r.discriminator) == null ? void 0 : e.propertyName;
|
|
11
|
+
}
|
|
12
|
+
function D(r) {
|
|
13
|
+
return (r == null ? void 0 : r.discriminator) !== void 0;
|
|
14
|
+
}
|
|
15
|
+
function I(r, e) {
|
|
16
|
+
var o;
|
|
17
|
+
if (!r || !e || r.type !== "object" || !r.properties)
|
|
18
|
+
return null;
|
|
19
|
+
for (const [p, i] of Object.entries(e))
|
|
20
|
+
if (typeof i == "object" && i !== null && "discriminator" in i && ((o = i.discriminator) != null && o.propertyName)) {
|
|
21
|
+
const n = i.discriminator.propertyName;
|
|
22
|
+
if (r.properties[n])
|
|
23
|
+
return p;
|
|
24
|
+
}
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
function x(r) {
|
|
28
|
+
if (r)
|
|
29
|
+
return r.type === "array" && r.items && typeof r.items == "object" && !("$ref" in r.items) ? r.items : r;
|
|
30
|
+
}
|
|
31
|
+
function T(r, e, o) {
|
|
32
|
+
var l;
|
|
33
|
+
if (!((l = r.discriminator) != null && l.mapping) || !e)
|
|
34
|
+
return;
|
|
35
|
+
const p = r.discriminator.mapping[e];
|
|
36
|
+
if (!p)
|
|
37
|
+
return;
|
|
38
|
+
const i = p.split("/").pop();
|
|
39
|
+
if (!i || !o[i])
|
|
40
|
+
return;
|
|
41
|
+
const n = o[i];
|
|
42
|
+
if (n.allOf) {
|
|
43
|
+
const d = {
|
|
44
|
+
type: n.type || "object",
|
|
45
|
+
properties: {},
|
|
46
|
+
required: [],
|
|
47
|
+
...r.title ? { title: r.title } : {},
|
|
48
|
+
...r.name ? { name: r.name } : {}
|
|
49
|
+
}, y = {}, a = /* @__PURE__ */ new Set();
|
|
50
|
+
r.required && r.required.forEach((u) => a.add(u));
|
|
51
|
+
for (const u of n.allOf)
|
|
52
|
+
if ("$ref" in u) {
|
|
53
|
+
const s = u.$ref.split("/").pop();
|
|
54
|
+
if (s && o[s]) {
|
|
55
|
+
const t = o[s];
|
|
56
|
+
t.properties && Object.assign(y, t.properties), t.required && t.required.forEach((f) => a.add(f));
|
|
57
|
+
}
|
|
58
|
+
} else "properties" in u && (Object.assign(y, u.properties), "required" in u && Array.isArray(u.required) && u.required.forEach((s) => a.add(s)));
|
|
59
|
+
return d.properties = y, d.required = Array.from(a), d;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
type: n.type || r.type,
|
|
63
|
+
properties: {
|
|
64
|
+
...r.properties || {},
|
|
65
|
+
...n.properties || {}
|
|
66
|
+
},
|
|
67
|
+
required: [...r.required || [], ...n.required || []],
|
|
68
|
+
// Preserve discriminator
|
|
69
|
+
discriminator: r.discriminator,
|
|
70
|
+
// Preserve title and name from base schema
|
|
71
|
+
...r.title ? { title: r.title } : {},
|
|
72
|
+
...r.name ? { name: r.name } : {}
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
function X({ schema: r, schemas: e, onSchemaChange: o }) {
|
|
76
|
+
const p = c(() => x(r)), i = c(() => j(p.value)), n = c(() => i.value && Object.keys(i.value)[0] || ""), l = q(n.value);
|
|
77
|
+
O(
|
|
78
|
+
n,
|
|
79
|
+
(t) => {
|
|
80
|
+
t && !l.value && (l.value = t);
|
|
81
|
+
},
|
|
82
|
+
{ immediate: !0 }
|
|
83
|
+
);
|
|
84
|
+
const d = c(() => E(p.value)), y = c(() => D(p.value)), a = c(() => {
|
|
85
|
+
if (!p.value || !e || !l.value)
|
|
86
|
+
return r;
|
|
87
|
+
const t = T(
|
|
88
|
+
p.value,
|
|
89
|
+
l.value,
|
|
90
|
+
e
|
|
91
|
+
);
|
|
92
|
+
if (!t)
|
|
93
|
+
return r;
|
|
94
|
+
const f = (r == null ? void 0 : r.type) === "array" ? {
|
|
95
|
+
type: "array",
|
|
96
|
+
items: t,
|
|
97
|
+
...r.title ? { title: r.title } : {},
|
|
98
|
+
...r.name ? { name: r.name } : {}
|
|
99
|
+
} : t;
|
|
100
|
+
return o == null || o(f), f;
|
|
101
|
+
}), u = (t) => {
|
|
102
|
+
if ("default" in t)
|
|
103
|
+
return t.default;
|
|
104
|
+
if ("example" in t)
|
|
105
|
+
return t.example;
|
|
106
|
+
switch (t.type) {
|
|
107
|
+
case "string":
|
|
108
|
+
return "";
|
|
109
|
+
case "integer":
|
|
110
|
+
case "number":
|
|
111
|
+
return t.nullable ? null : 0;
|
|
112
|
+
case "boolean":
|
|
113
|
+
return !1;
|
|
114
|
+
case "array":
|
|
115
|
+
return [];
|
|
116
|
+
case "object":
|
|
117
|
+
return {};
|
|
118
|
+
default:
|
|
119
|
+
return null;
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
return {
|
|
123
|
+
selectedType: l,
|
|
124
|
+
discriminatorMapping: i,
|
|
125
|
+
defaultType: n,
|
|
126
|
+
discriminatorPropertyName: d,
|
|
127
|
+
hasDiscriminator: y,
|
|
128
|
+
mergedSchema: a,
|
|
129
|
+
generateExampleValue: (t = !1) => {
|
|
130
|
+
if (!a.value)
|
|
131
|
+
return t ? [] : {};
|
|
132
|
+
const f = {}, v = a.value.type === "array" ? a.value.items : a.value;
|
|
133
|
+
return "properties" in v && v.properties && Object.entries(v.properties).forEach(([g, N]) => {
|
|
134
|
+
const m = N;
|
|
135
|
+
m !== null && (f[g] = u(m));
|
|
136
|
+
}), d.value && l.value && (f[d.value] = l.value), JSON.parse(JSON.stringify(t ? [f] : f));
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
export {
|
|
141
|
+
V as DISCRIMINATOR_CONTEXT,
|
|
142
|
+
w as EXAMPLE_CONTEXT,
|
|
143
|
+
j as getDiscriminatorMapping,
|
|
144
|
+
E as getDiscriminatorPropertyName,
|
|
145
|
+
I as getDiscriminatorSchemaName,
|
|
146
|
+
D as hasDiscriminator,
|
|
147
|
+
T as mergeDiscriminatorSchemas,
|
|
148
|
+
X as useDiscriminator
|
|
149
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { TransformedOperation } from '@scalar/types/legacy';
|
|
2
|
+
import type { Schemas } from '../features/Operation/types/schemas';
|
|
3
|
+
/** Handling discriminator logic in operations */
|
|
4
|
+
export declare function useOperationDiscriminator(transformedOperation: TransformedOperation, schemas?: Schemas): {
|
|
5
|
+
hasSchemaDiscriminator: import("vue").ComputedRef<boolean>;
|
|
6
|
+
handleDiscriminatorChange: (type: string) => void;
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=useOperationDiscriminator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useOperationDiscriminator.d.ts","sourceRoot":"","sources":["../../src/hooks/useOperationDiscriminator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAGhE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAsBjE,iDAAiD;AACjD,wBAAgB,yBAAyB,CAAC,oBAAoB,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,OAAO;;sCA6D5D,MAAM;EAahD"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { computed as i, ref as E, provide as t } from "vue";
|
|
2
|
+
import { useDiscriminator as N, DISCRIMINATOR_CONTEXT as f, EXAMPLE_CONTEXT as h } from "./useDiscriminator.js";
|
|
3
|
+
function x(e) {
|
|
4
|
+
return e ? !!(e.discriminator || e.type === "array" && e.items && typeof e.items == "object" && "discriminator" in e.items) : !1;
|
|
5
|
+
}
|
|
6
|
+
function B(e, y) {
|
|
7
|
+
var s, c, m, u;
|
|
8
|
+
const n = (u = (m = (c = (s = e.information) == null ? void 0 : s.requestBody) == null ? void 0 : c.content) == null ? void 0 : m["application/json"]) == null ? void 0 : u.schema, a = i(() => x(n)), g = a.value ? N({
|
|
9
|
+
schema: n,
|
|
10
|
+
schemas: y,
|
|
11
|
+
onSchemaChange: (r) => {
|
|
12
|
+
var l, p, d;
|
|
13
|
+
(d = (p = (l = e.information) == null ? void 0 : l.requestBody) == null ? void 0 : p.content) != null && d["application/json"] && (e.information.requestBody.content["application/json"].schema = r);
|
|
14
|
+
}
|
|
15
|
+
}) : {
|
|
16
|
+
selectedType: E(""),
|
|
17
|
+
discriminatorMapping: i(() => ({})),
|
|
18
|
+
discriminatorPropertyName: i(() => ""),
|
|
19
|
+
hasDiscriminator: i(() => !1),
|
|
20
|
+
mergedSchema: i(() => n),
|
|
21
|
+
generateExampleValue: () => ({})
|
|
22
|
+
}, {
|
|
23
|
+
selectedType: o,
|
|
24
|
+
discriminatorMapping: v,
|
|
25
|
+
discriminatorPropertyName: D,
|
|
26
|
+
hasDiscriminator: S,
|
|
27
|
+
mergedSchema: T,
|
|
28
|
+
generateExampleValue: C
|
|
29
|
+
} = g;
|
|
30
|
+
if (a.value) {
|
|
31
|
+
const r = i(() => ({
|
|
32
|
+
selectedType: o.value || void 0,
|
|
33
|
+
discriminatorMapping: v.value || {},
|
|
34
|
+
discriminatorPropertyName: D.value || "",
|
|
35
|
+
hasDiscriminator: S.value,
|
|
36
|
+
mergedSchema: T.value
|
|
37
|
+
}));
|
|
38
|
+
t(f, r), t(h, {
|
|
39
|
+
generateExampleValue: C
|
|
40
|
+
});
|
|
41
|
+
} else
|
|
42
|
+
t(
|
|
43
|
+
f,
|
|
44
|
+
i(() => null)
|
|
45
|
+
), t(h, {
|
|
46
|
+
generateExampleValue: () => ({})
|
|
47
|
+
});
|
|
48
|
+
return {
|
|
49
|
+
hasSchemaDiscriminator: a,
|
|
50
|
+
handleDiscriminatorChange: (r) => {
|
|
51
|
+
a.value && (o.value = r);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export {
|
|
56
|
+
B as useOperationDiscriminator
|
|
57
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ export { default as ApiReferenceLayout } from './components/ApiReferenceLayout.v
|
|
|
4
4
|
export { default as ModernLayout } from './components/Layouts/ModernLayout.vue.js';
|
|
5
5
|
export { SearchButton, SearchModal } from './features/Search';
|
|
6
6
|
export { default as GettingStarted } from './components/GettingStarted.vue.js';
|
|
7
|
-
export { useReactiveSpec } from './hooks/useReactiveSpec.js';
|
|
8
7
|
export { createApiReference } from './standalone/lib/html-api.js';
|
|
9
8
|
export { Sidebar } from './components/Sidebar';
|
|
10
9
|
export { Card, CardHeader, CardContent, CardFooter, CardTabHeader, CardTab } from './components/Card';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACvE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;AACnF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;AACnF,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uCAAuC,CAAA;AAC/E,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE7D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAE3E,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACvE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;AACnF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,qCAAqC,CAAA;AACnF,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uCAAuC,CAAA;AAC/E,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE7D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAA;AAE3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAE9D,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAC9C,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AACrG,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAG9C,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAA;AAChE,YAAY,EACV,yBAAyB,EACzB,cAAc,GACf,MAAM,SAAS,CAAA"}
|