@scalar/api-reference 1.28.11 → 1.28.12

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.
Files changed (33) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/browser/standalone.js +5740 -5724
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Content/Schema/Schema.preview.d.ts +232 -0
  5. package/dist/components/Content/Schema/Schema.preview.d.ts.map +1 -0
  6. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  7. package/dist/components/Content/Schema/Schema.vue.js +3 -3
  8. package/dist/components/Content/Schema/Schema.vue2.js +52 -51
  9. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -1
  10. package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +2 -2
  11. package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +9 -7
  12. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  13. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  14. package/dist/components/Content/Schema/SchemaProperty.vue2.js +55 -51
  15. package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
  16. package/dist/components/ShowMoreButton.vue.js +2 -2
  17. package/dist/components/ShowMoreButton.vue2.js +15 -11
  18. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  19. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  20. package/dist/components/Sidebar/Sidebar.vue2.js +55 -55
  21. package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
  22. package/dist/components/Sidebar/SidebarElement.vue.js +2 -2
  23. package/dist/components/Sidebar/SidebarElement.vue2.js +53 -53
  24. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  25. package/dist/features/ExampleRequest/ExampleRequest.vue.js +4 -4
  26. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +76 -76
  27. package/dist/hooks/useMultipleDocuments.d.ts +3 -1
  28. package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
  29. package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
  30. package/dist/hooks/useReactiveSpec.js +36 -36
  31. package/dist/index.js +1 -1
  32. package/dist/style.css +1 -1
  33. package/package.json +10 -9
@@ -0,0 +1,232 @@
1
+ export declare const stringSchema: {
2
+ component: import("vue").DefineComponent<{
3
+ value?: import("@scalar/openapi-types").OpenAPIV2.DefinitionsObject | import("@scalar/openapi-types").OpenAPIV3.SchemaObject | import("@scalar/openapi-types").OpenAPIV3.ArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3.NonArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.SchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.ArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.NonArraySchemaObject;
4
+ level?: number;
5
+ name?: string;
6
+ compact?: boolean;
7
+ noncollapsible?: boolean;
8
+ hideHeading?: boolean;
9
+ additionalProperties?: boolean;
10
+ schemas?: import("@scalar/openapi-types").OpenAPIV2.DefinitionsObject | Record<string, import("@scalar/openapi-types").OpenAPIV3.SchemaObject> | Record<string, import("@scalar/openapi-types").OpenAPIV3_1.SchemaObject> | unknown;
11
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
12
+ value?: import("@scalar/openapi-types").OpenAPIV2.DefinitionsObject | import("@scalar/openapi-types").OpenAPIV3.SchemaObject | import("@scalar/openapi-types").OpenAPIV3.ArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3.NonArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.SchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.ArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.NonArraySchemaObject;
13
+ level?: number;
14
+ name?: string;
15
+ compact?: boolean;
16
+ noncollapsible?: boolean;
17
+ hideHeading?: boolean;
18
+ additionalProperties?: boolean;
19
+ schemas?: import("@scalar/openapi-types").OpenAPIV2.DefinitionsObject | Record<string, import("@scalar/openapi-types").OpenAPIV3.SchemaObject> | Record<string, import("@scalar/openapi-types").OpenAPIV3_1.SchemaObject> | unknown;
20
+ }> & Readonly<{}>, {
21
+ level: number;
22
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
+ noncollapsible: boolean;
24
+ props: {
25
+ name: string;
26
+ noncollapsible: boolean;
27
+ value: {
28
+ type: string;
29
+ example: string;
30
+ };
31
+ };
32
+ };
33
+ export declare const objectSchema: {
34
+ component: import("vue").DefineComponent<{
35
+ value?: import("@scalar/openapi-types").OpenAPIV2.DefinitionsObject | import("@scalar/openapi-types").OpenAPIV3.SchemaObject | import("@scalar/openapi-types").OpenAPIV3.ArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3.NonArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.SchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.ArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.NonArraySchemaObject;
36
+ level?: number;
37
+ name?: string;
38
+ compact?: boolean;
39
+ noncollapsible?: boolean;
40
+ hideHeading?: boolean;
41
+ additionalProperties?: boolean;
42
+ schemas?: import("@scalar/openapi-types").OpenAPIV2.DefinitionsObject | Record<string, import("@scalar/openapi-types").OpenAPIV3.SchemaObject> | Record<string, import("@scalar/openapi-types").OpenAPIV3_1.SchemaObject> | unknown;
43
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
44
+ value?: import("@scalar/openapi-types").OpenAPIV2.DefinitionsObject | import("@scalar/openapi-types").OpenAPIV3.SchemaObject | import("@scalar/openapi-types").OpenAPIV3.ArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3.NonArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.SchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.ArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.NonArraySchemaObject;
45
+ level?: number;
46
+ name?: string;
47
+ compact?: boolean;
48
+ noncollapsible?: boolean;
49
+ hideHeading?: boolean;
50
+ additionalProperties?: boolean;
51
+ schemas?: import("@scalar/openapi-types").OpenAPIV2.DefinitionsObject | Record<string, import("@scalar/openapi-types").OpenAPIV3.SchemaObject> | Record<string, import("@scalar/openapi-types").OpenAPIV3_1.SchemaObject> | unknown;
52
+ }> & Readonly<{}>, {
53
+ level: number;
54
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
55
+ noncollapsible: boolean;
56
+ props: {
57
+ name: string;
58
+ noncollapsible: boolean;
59
+ value: {
60
+ type: string;
61
+ properties: {
62
+ name: {
63
+ type: string;
64
+ example: string;
65
+ };
66
+ age: {
67
+ type: string;
68
+ example: number;
69
+ };
70
+ };
71
+ };
72
+ };
73
+ };
74
+ export declare const recursiveSchema: {
75
+ component: import("vue").DefineComponent<{
76
+ value?: import("@scalar/openapi-types").OpenAPIV2.DefinitionsObject | import("@scalar/openapi-types").OpenAPIV3.SchemaObject | import("@scalar/openapi-types").OpenAPIV3.ArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3.NonArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.SchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.ArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.NonArraySchemaObject;
77
+ level?: number;
78
+ name?: string;
79
+ compact?: boolean;
80
+ noncollapsible?: boolean;
81
+ hideHeading?: boolean;
82
+ additionalProperties?: boolean;
83
+ schemas?: import("@scalar/openapi-types").OpenAPIV2.DefinitionsObject | Record<string, import("@scalar/openapi-types").OpenAPIV3.SchemaObject> | Record<string, import("@scalar/openapi-types").OpenAPIV3_1.SchemaObject> | unknown;
84
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
85
+ value?: import("@scalar/openapi-types").OpenAPIV2.DefinitionsObject | import("@scalar/openapi-types").OpenAPIV3.SchemaObject | import("@scalar/openapi-types").OpenAPIV3.ArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3.NonArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.SchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.ArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.NonArraySchemaObject;
86
+ level?: number;
87
+ name?: string;
88
+ compact?: boolean;
89
+ noncollapsible?: boolean;
90
+ hideHeading?: boolean;
91
+ additionalProperties?: boolean;
92
+ schemas?: import("@scalar/openapi-types").OpenAPIV2.DefinitionsObject | Record<string, import("@scalar/openapi-types").OpenAPIV3.SchemaObject> | Record<string, import("@scalar/openapi-types").OpenAPIV3_1.SchemaObject> | unknown;
93
+ }> & Readonly<{}>, {
94
+ level: number;
95
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
96
+ props: {
97
+ name: string;
98
+ noncollapsible: boolean;
99
+ value: {
100
+ type: string;
101
+ properties: {
102
+ circularReference: {};
103
+ };
104
+ };
105
+ };
106
+ };
107
+ export declare const enumSchema: {
108
+ component: import("vue").DefineComponent<{
109
+ value?: import("@scalar/openapi-types").OpenAPIV2.DefinitionsObject | import("@scalar/openapi-types").OpenAPIV3.SchemaObject | import("@scalar/openapi-types").OpenAPIV3.ArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3.NonArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.SchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.ArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.NonArraySchemaObject;
110
+ level?: number;
111
+ name?: string;
112
+ compact?: boolean;
113
+ noncollapsible?: boolean;
114
+ hideHeading?: boolean;
115
+ additionalProperties?: boolean;
116
+ schemas?: import("@scalar/openapi-types").OpenAPIV2.DefinitionsObject | Record<string, import("@scalar/openapi-types").OpenAPIV3.SchemaObject> | Record<string, import("@scalar/openapi-types").OpenAPIV3_1.SchemaObject> | unknown;
117
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
118
+ value?: import("@scalar/openapi-types").OpenAPIV2.DefinitionsObject | import("@scalar/openapi-types").OpenAPIV3.SchemaObject | import("@scalar/openapi-types").OpenAPIV3.ArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3.NonArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.SchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.ArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.NonArraySchemaObject;
119
+ level?: number;
120
+ name?: string;
121
+ compact?: boolean;
122
+ noncollapsible?: boolean;
123
+ hideHeading?: boolean;
124
+ additionalProperties?: boolean;
125
+ schemas?: import("@scalar/openapi-types").OpenAPIV2.DefinitionsObject | Record<string, import("@scalar/openapi-types").OpenAPIV3.SchemaObject> | Record<string, import("@scalar/openapi-types").OpenAPIV3_1.SchemaObject> | unknown;
126
+ }> & Readonly<{}>, {
127
+ level: number;
128
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
129
+ props: {
130
+ name: string;
131
+ noncollapsible: boolean;
132
+ value: {
133
+ type: string;
134
+ enum: string[];
135
+ description: string;
136
+ };
137
+ };
138
+ };
139
+ export declare const objectWithEnumSchema: {
140
+ component: import("vue").DefineComponent<{
141
+ value?: import("@scalar/openapi-types").OpenAPIV2.DefinitionsObject | import("@scalar/openapi-types").OpenAPIV3.SchemaObject | import("@scalar/openapi-types").OpenAPIV3.ArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3.NonArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.SchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.ArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.NonArraySchemaObject;
142
+ level?: number;
143
+ name?: string;
144
+ compact?: boolean;
145
+ noncollapsible?: boolean;
146
+ hideHeading?: boolean;
147
+ additionalProperties?: boolean;
148
+ schemas?: import("@scalar/openapi-types").OpenAPIV2.DefinitionsObject | Record<string, import("@scalar/openapi-types").OpenAPIV3.SchemaObject> | Record<string, import("@scalar/openapi-types").OpenAPIV3_1.SchemaObject> | unknown;
149
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
150
+ value?: import("@scalar/openapi-types").OpenAPIV2.DefinitionsObject | import("@scalar/openapi-types").OpenAPIV3.SchemaObject | import("@scalar/openapi-types").OpenAPIV3.ArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3.NonArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.SchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.ArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.NonArraySchemaObject;
151
+ level?: number;
152
+ name?: string;
153
+ compact?: boolean;
154
+ noncollapsible?: boolean;
155
+ hideHeading?: boolean;
156
+ additionalProperties?: boolean;
157
+ schemas?: import("@scalar/openapi-types").OpenAPIV2.DefinitionsObject | Record<string, import("@scalar/openapi-types").OpenAPIV3.SchemaObject> | Record<string, import("@scalar/openapi-types").OpenAPIV3_1.SchemaObject> | unknown;
158
+ }> & Readonly<{}>, {
159
+ level: number;
160
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
161
+ props: {
162
+ name: string;
163
+ noncollapsible: boolean;
164
+ value: {
165
+ type: string;
166
+ properties: {
167
+ enumValue: {
168
+ type: string;
169
+ enum: string[];
170
+ description: string;
171
+ };
172
+ };
173
+ };
174
+ };
175
+ };
176
+ export declare const discriminatorsSchema: {
177
+ component: import("vue").DefineComponent<{
178
+ value?: import("@scalar/openapi-types").OpenAPIV2.DefinitionsObject | import("@scalar/openapi-types").OpenAPIV3.SchemaObject | import("@scalar/openapi-types").OpenAPIV3.ArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3.NonArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.SchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.ArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.NonArraySchemaObject;
179
+ level?: number;
180
+ name?: string;
181
+ compact?: boolean;
182
+ noncollapsible?: boolean;
183
+ hideHeading?: boolean;
184
+ additionalProperties?: boolean;
185
+ schemas?: import("@scalar/openapi-types").OpenAPIV2.DefinitionsObject | Record<string, import("@scalar/openapi-types").OpenAPIV3.SchemaObject> | Record<string, import("@scalar/openapi-types").OpenAPIV3_1.SchemaObject> | unknown;
186
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
187
+ value?: import("@scalar/openapi-types").OpenAPIV2.DefinitionsObject | import("@scalar/openapi-types").OpenAPIV3.SchemaObject | import("@scalar/openapi-types").OpenAPIV3.ArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3.NonArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.SchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.ArraySchemaObject | import("@scalar/openapi-types").OpenAPIV3_1.NonArraySchemaObject;
188
+ level?: number;
189
+ name?: string;
190
+ compact?: boolean;
191
+ noncollapsible?: boolean;
192
+ hideHeading?: boolean;
193
+ additionalProperties?: boolean;
194
+ schemas?: import("@scalar/openapi-types").OpenAPIV2.DefinitionsObject | Record<string, import("@scalar/openapi-types").OpenAPIV3.SchemaObject> | Record<string, import("@scalar/openapi-types").OpenAPIV3_1.SchemaObject> | unknown;
195
+ }> & Readonly<{}>, {
196
+ level: number;
197
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
198
+ props: {
199
+ name: string;
200
+ noncollapsible: boolean;
201
+ value: {
202
+ anyOf: ({
203
+ name: string;
204
+ type: string;
205
+ properties: {
206
+ type: {
207
+ type: string;
208
+ enum: string[];
209
+ };
210
+ fooProperty: {
211
+ type: string;
212
+ };
213
+ barProperty?: undefined;
214
+ };
215
+ } | {
216
+ name: string;
217
+ type: string;
218
+ properties: {
219
+ type: {
220
+ type: string;
221
+ enum: string[];
222
+ };
223
+ barProperty: {
224
+ type: string;
225
+ };
226
+ fooProperty?: undefined;
227
+ };
228
+ })[];
229
+ };
230
+ };
231
+ };
232
+ //# sourceMappingURL=Schema.preview.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Schema.preview.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.preview.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWxB,CAAA;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBxB,CAAA;AAWD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAO3B,CAAA;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAWtB,CAAA;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBhC,CAAA;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BhC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Schema.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/Schema.vue"],"names":[],"mappings":"AA8UA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAQ9E,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EACF,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,YAAY,GACtB,SAAS,CAAC,iBAAiB,GAC3B,SAAS,CAAC,oBAAoB,GAC9B,WAAW,CAAC,YAAY,GACxB,WAAW,CAAC,iBAAiB,GAC7B,WAAW,CAAC,oBAAoB,CAAA;IACp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AM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;CACZ,CAAC;;WAfQ,MAAM;;AA0WlB,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Schema.vue2.js";
2
2
  /* empty css */
3
- import a from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ a(o, [["__scopeId", "data-v-6fa5fa1b"]]);
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5ee841c0"]]);
5
5
  export {
6
- r as default
6
+ a as default
7
7
  };
@@ -1,8 +1,8 @@
1
- import { defineComponent as N, computed as V, openBlock as a, createBlock as s, unref as o, withCtx as h, createElementVNode as B, normalizeClass as m, createElementBlock as i, createVNode as p, createCommentVNode as n, withDirectives as j, createTextVNode as k, vShow as w, normalizeStyle as E, Fragment as t, toDisplayString as z, renderList as A } from "vue";
1
+ import { defineComponent as N, computed as V, openBlock as a, createBlock as i, unref as o, withCtx as v, createElementVNode as B, normalizeClass as m, createElementBlock as s, createCommentVNode as t, withDirectives as j, createVNode as h, createTextVNode as k, vShow as w, normalizeStyle as E, Fragment as r, toDisplayString as z, renderList as A } from "vue";
2
2
  import { Disclosure as T, DisclosureButton as D, DisclosurePanel as $ } from "@headlessui/vue";
3
3
  import { ScalarMarkdown as F, ScalarIcon as g } from "@scalar/components";
4
4
  import I from "./SchemaHeading.vue.js";
5
- import v from "./SchemaProperty.vue.js";
5
+ import p from "./SchemaProperty.vue.js";
6
6
  const L = {
7
7
  key: 0,
8
8
  class: "schema-card-description"
@@ -23,38 +23,39 @@ const L = {
23
23
  },
24
24
  setup(q) {
25
25
  const y = q, f = V(() => !(y.noncollapsible || y.level === 0)), b = (e) => y.noncollapsible && e.stopPropagation();
26
- return (e, H) => typeof e.value == "object" && Object.keys(e.value).length ? (a(), s(o(T), {
26
+ return (e, H) => typeof e.value == "object" && Object.keys(e.value).length ? (a(), i(o(T), {
27
27
  key: 0,
28
28
  defaultOpen: e.noncollapsible
29
29
  }, {
30
- default: h(({ open: r }) => {
30
+ default: v(({ open: n }) => {
31
31
  var P;
32
32
  return [
33
33
  B("div", {
34
34
  class: m(["schema-card", [
35
35
  `schema-card--level-${e.level}`,
36
- { "schema-card--compact": e.compact, "schema-card--open": r },
37
- { "border-t-1/2": e.additionalProperties && r }
36
+ { "schema-card--compact": e.compact, "schema-card--open": n },
37
+ { "border-t-1/2": e.additionalProperties && n }
38
38
  ]])
39
39
  }, [
40
- (P = e.value) != null && P.description && typeof e.value.description == "string" && !e.value.allOf && !e.value.oneOf && !e.value.anyOf && !e.compact ? (a(), i("div", L, [
41
- p(o(F), {
40
+ (P = e.value) != null && P.description && typeof e.value.description == "string" && !e.value.allOf && !e.value.oneOf && !e.value.anyOf && !e.compact ? (a(), s("div", L, [
41
+ e.value.enum ? t("", !0) : (a(), i(o(F), {
42
+ key: 0,
42
43
  value: e.value.description
43
- }, null, 8, ["value"])
44
- ])) : n("", !0),
44
+ }, null, 8, ["value"]))
45
+ ])) : t("", !0),
45
46
  B("div", {
46
47
  class: m(["schema-properties", {
47
- "schema-properties-open": r
48
+ "schema-properties-open": n
48
49
  }])
49
50
  }, [
50
- e.additionalProperties ? j((a(), i("div", M, [
51
- p(o(D), {
51
+ e.additionalProperties ? j((a(), s("div", M, [
52
+ h(o(D), {
52
53
  as: "button",
53
54
  class: "schema-card-title schema-card-title--compact",
54
55
  onClickCapture: b
55
56
  }, {
56
- default: h(() => [
57
- p(o(g), {
57
+ default: v(() => [
58
+ h(o(g), {
58
59
  class: "schema-card-title-icon",
59
60
  icon: "Add",
60
61
  size: "sm"
@@ -64,8 +65,8 @@ const L = {
64
65
  _: 1
65
66
  })
66
67
  ], 512)), [
67
- [w, !r]
68
- ]) : j((a(), s(o(D), {
68
+ [w, !n]
69
+ ]) : j((a(), i(o(D), {
69
70
  key: 1,
70
71
  as: e.noncollapsible ? "div" : "button",
71
72
  class: m(["schema-card-title", { "schema-card-title--compact": e.compact }]),
@@ -74,29 +75,29 @@ const L = {
74
75
  }),
75
76
  onClickCapture: b
76
77
  }, {
77
- default: h(() => {
78
- var d, c, l;
78
+ default: v(() => {
79
+ var d, u, l;
79
80
  return [
80
- e.compact ? (a(), i(t, { key: 0 }, [
81
- f.value ? (a(), s(o(g), {
81
+ e.compact ? (a(), s(r, { key: 0 }, [
82
+ f.value ? (a(), i(o(g), {
82
83
  key: 0,
83
- class: m(["schema-card-title-icon", { "schema-card-title-icon--open": r }]),
84
+ class: m(["schema-card-title-icon", { "schema-card-title-icon--open": n }]),
84
85
  icon: "Add",
85
86
  size: "sm"
86
- }, null, 8, ["class"])) : n("", !0),
87
- r ? (a(), i(t, { key: 1 }, [
87
+ }, null, 8, ["class"])) : t("", !0),
88
+ n ? (a(), s(r, { key: 1 }, [
88
89
  k(" Hide " + z(((d = e.value) == null ? void 0 : d.title) ?? "Child Attributes"), 1)
89
- ], 64)) : (a(), i(t, { key: 2 }, [
90
- k(" Show " + z(((c = e.value) == null ? void 0 : c.title) ?? "Child Attributes"), 1)
90
+ ], 64)) : (a(), s(r, { key: 2 }, [
91
+ k(" Show " + z(((u = e.value) == null ? void 0 : u.title) ?? "Child Attributes"), 1)
91
92
  ], 64))
92
- ], 64)) : (a(), i(t, { key: 1 }, [
93
- f.value ? (a(), s(o(g), {
93
+ ], 64)) : (a(), s(r, { key: 1 }, [
94
+ f.value ? (a(), i(o(g), {
94
95
  key: 0,
95
- class: m(["schema-card-title-icon", { "schema-card-title-icon--open": r }]),
96
+ class: m(["schema-card-title-icon", { "schema-card-title-icon--open": n }]),
96
97
  icon: "Add",
97
98
  size: "sm"
98
- }, null, 8, ["class"])) : n("", !0),
99
- p(I, {
99
+ }, null, 8, ["class"])) : t("", !0),
100
+ h(I, {
100
101
  name: ((l = e.value) == null ? void 0 : l.title) ?? e.name,
101
102
  value: e.value
102
103
  }, null, 8, ["name", "value"])
@@ -107,30 +108,30 @@ const L = {
107
108
  }, 1032, ["as", "class", "style"])), [
108
109
  [w, !e.hideHeading && !(e.noncollapsible && e.compact)]
109
110
  ]),
110
- p(o($), {
111
+ h(o($), {
111
112
  as: "ul",
112
113
  static: e.noncollapsible
113
114
  }, {
114
- default: h(() => {
115
- var d, c;
115
+ default: v(() => {
116
+ var d, u;
116
117
  return [
117
- e.value.properties || e.value.additionalProperties || e.value.patternProperties ? (a(), i(t, { key: 0 }, [
118
- e.value.properties ? (a(!0), i(t, { key: 0 }, A(Object.keys((d = e.value) == null ? void 0 : d.properties), (l) => {
119
- var u, C, S, O;
120
- return a(), s(v, {
118
+ e.value.properties || e.value.additionalProperties || e.value.patternProperties ? (a(), s(r, { key: 0 }, [
119
+ e.value.properties ? (a(!0), s(r, { key: 0 }, A(Object.keys((d = e.value) == null ? void 0 : d.properties), (l) => {
120
+ var c, C, S, O;
121
+ return a(), i(p, {
121
122
  key: l,
122
123
  compact: e.compact,
123
124
  hideHeading: e.hideHeading,
124
125
  level: e.level + 1,
125
126
  name: l,
126
- required: ((u = e.value.required) == null ? void 0 : u.includes(l)) || ((S = (C = e.value.properties) == null ? void 0 : C[l]) == null ? void 0 : S.required) === !0,
127
+ required: ((c = e.value.required) == null ? void 0 : c.includes(l)) || ((S = (C = e.value.properties) == null ? void 0 : C[l]) == null ? void 0 : S.required) === !0,
127
128
  schemas: e.schemas,
128
129
  value: (O = e.value.properties) == null ? void 0 : O[l]
129
130
  }, null, 8, ["compact", "hideHeading", "level", "name", "required", "schemas", "value"]);
130
- }), 128)) : n("", !0),
131
- e.value.patternProperties ? (a(!0), i(t, { key: 1 }, A(Object.keys((c = e.value) == null ? void 0 : c.patternProperties), (l) => {
132
- var u;
133
- return a(), s(v, {
131
+ }), 128)) : t("", !0),
132
+ e.value.patternProperties ? (a(!0), s(r, { key: 1 }, A(Object.keys((u = e.value) == null ? void 0 : u.patternProperties), (l) => {
133
+ var c;
134
+ return a(), i(p, {
134
135
  key: l,
135
136
  compact: e.compact,
136
137
  hideHeading: e.hideHeading,
@@ -138,11 +139,11 @@ const L = {
138
139
  name: l,
139
140
  pattern: "",
140
141
  schemas: e.schemas,
141
- value: (u = e.value.patternProperties) == null ? void 0 : u[l]
142
+ value: (c = e.value.patternProperties) == null ? void 0 : c[l]
142
143
  }, null, 8, ["compact", "hideHeading", "level", "name", "schemas", "value"]);
143
- }), 128)) : n("", !0),
144
- e.value.additionalProperties ? (a(), i(t, { key: 2 }, [
145
- e.value.additionalProperties === !0 || Object.keys(e.value.additionalProperties).length === 0 || !e.value.additionalProperties.type ? (a(), s(v, {
144
+ }), 128)) : t("", !0),
145
+ e.value.additionalProperties ? (a(), s(r, { key: 2 }, [
146
+ e.value.additionalProperties === !0 || Object.keys(e.value.additionalProperties).length === 0 || !e.value.additionalProperties.type ? (a(), i(p, {
146
147
  key: 0,
147
148
  additional: "",
148
149
  compact: e.compact,
@@ -154,7 +155,7 @@ const L = {
154
155
  type: "anything",
155
156
  ...typeof e.value.additionalProperties == "object" ? e.value.additionalProperties : {}
156
157
  }
157
- }, null, 8, ["compact", "hideHeading", "level", "schemas", "value"])) : (a(), s(v, {
158
+ }, null, 8, ["compact", "hideHeading", "level", "schemas", "value"])) : (a(), i(p, {
158
159
  key: 1,
159
160
  additional: "",
160
161
  compact: e.compact,
@@ -164,8 +165,8 @@ const L = {
164
165
  schemas: e.schemas,
165
166
  value: e.value.additionalProperties
166
167
  }, null, 8, ["compact", "hideHeading", "level", "schemas", "value"]))
167
- ], 64)) : n("", !0)
168
- ], 64)) : (a(), s(v, {
168
+ ], 64)) : t("", !0)
169
+ ], 64)) : (a(), i(p, {
169
170
  key: 1,
170
171
  compact: e.compact,
171
172
  hideHeading: e.hideHeading,
@@ -182,7 +183,7 @@ const L = {
182
183
  ];
183
184
  }),
184
185
  _: 1
185
- }, 8, ["defaultOpen"])) : n("", !0);
186
+ }, 8, ["defaultOpen"])) : t("", !0);
186
187
  }
187
188
  });
188
189
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaDiscriminator.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaDiscriminator.vue"],"names":[],"mappings":"AA+KA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAQ9E,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;IACX,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAkQF,wBAOG"}
1
+ {"version":3,"file":"SchemaDiscriminator.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaDiscriminator.vue"],"names":[],"mappings":"AAoLA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAQ9E,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;IACX,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAuQF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./SchemaDiscriminator.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const c = /* @__PURE__ */ r(o, [["__scopeId", "data-v-18cf8f87"]]);
4
+ const i = /* @__PURE__ */ r(o, [["__scopeId", "data-v-5f3b3a79"]]);
5
5
  export {
6
- c as default
6
+ i as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as S, ref as A, openBlock as a, createElementBlock as c, createBlock as n, unref as i, withCtx as l, createVNode as d, createElementVNode as m, toDisplayString as f, Fragment as y, renderList as v, normalizeClass as T, createTextVNode as q } from "vue";
1
+ import { defineComponent as S, ref as A, openBlock as a, createElementBlock as c, createBlock as i, unref as n, withCtx as l, createVNode as d, createElementVNode as m, toDisplayString as f, Fragment as y, renderList as v, normalizeClass as T, createTextVNode as q } from "vue";
2
2
  import { TabGroup as B, TabList as N, Tab as V, TabPanel as j } from "@headlessui/vue";
3
3
  import { cva as w, cx as H } from "@scalar/components";
4
4
  import { stringify as b } from "flatted";
@@ -44,6 +44,8 @@ const L = { class: "property-rule" }, z = { class: "flex items-center gap-1.5 ov
44
44
  }, O = (e) => {
45
45
  if (!e)
46
46
  return null;
47
+ if (e.name)
48
+ return e.name;
47
49
  if (s.schemas && typeof s.schemas == "object") {
48
50
  for (const [o, r] of Object.entries(s.schemas))
49
51
  if (b(r) === b(e))
@@ -53,17 +55,17 @@ const L = { class: "property-rule" }, z = { class: "flex items-center gap-1.5 ov
53
55
  return null;
54
56
  }, C = (e) => e.replace(/([A-Z])/g, " $1").replace(/^./, (o) => o.toUpperCase()).toLowerCase().replace(/^(\w)/, (o) => o.toUpperCase());
55
57
  return (e, o) => (a(), c("div", L, [
56
- e.discriminator === "oneOf" || e.discriminator === "anyOf" ? (a(), n(i(B), { key: 0 }, {
58
+ e.discriminator === "oneOf" || e.discriminator === "anyOf" ? (a(), i(n(B), { key: 0 }, {
57
59
  default: l(() => [
58
- d(i(N), { class: "discriminator-tab-list py-1.25 flex items-center gap-2 rounded-t-lg border border-b-0 px-2 pr-3" }, {
60
+ d(n(N), { class: "discriminator-tab-list py-1.25 flex items-center gap-2 rounded-t-lg border border-b-0 px-2 pr-3" }, {
59
61
  default: l(() => [
60
62
  m("span", null, f(C(e.discriminator)), 1),
61
63
  m("div", z, [
62
- (a(!0), c(y, null, v(e.value[e.discriminator], (r, t) => (a(), n(i(V), {
64
+ (a(!0), c(y, null, v(e.value[e.discriminator], (r, t) => (a(), i(n(V), {
63
65
  key: t,
64
66
  class: T([
65
67
  "cursor-pointer",
66
- i(H)(i(k)({ selected: p.value === t }))
68
+ n(H)(n(k)({ selected: p.value === t }))
67
69
  ]),
68
70
  onClick: (D) => p.value = t
69
71
  }, {
@@ -76,7 +78,7 @@ const L = { class: "property-rule" }, z = { class: "flex items-center gap-1.5 ov
76
78
  ]),
77
79
  _: 1
78
80
  }),
79
- (a(!0), c(y, null, v(e.value[e.discriminator], (r, t) => (a(), n(i(j), {
81
+ (a(!0), c(y, null, v(e.value[e.discriminator], (r, t) => (a(), i(n(j), {
80
82
  key: t,
81
83
  class: "discriminator-panel"
82
84
  }, {
@@ -93,7 +95,7 @@ const L = { class: "property-rule" }, z = { class: "flex items-center gap-1.5 ov
93
95
  }, 1024))), 128))
94
96
  ]),
95
97
  _: 1
96
- })) : (a(), n(g, {
98
+ })) : (a(), i(g, {
97
99
  key: 1,
98
100
  compact: e.compact,
99
101
  level: e.level,
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AAieA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAc9E;;;;;GAKG;AAEH,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,KAAK,CAAC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AC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;IACX,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;cAZW,OAAO;WAFV,MAAM;aAGJ,OAAO;kBAIF,OAAO;;AA4c1B,0BAQG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./SchemaProperty.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-3431ec35"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-eab09a54"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };