@scalar/api-reference 1.32.0 → 1.32.4

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 (102) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/README.md +1 -1
  3. package/dist/browser/standalone.js +15732 -15435
  4. package/dist/browser/webpack-stats.json +1 -1
  5. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  6. package/dist/components/ApiReferenceLayout.vue.js +1 -1
  7. package/dist/components/ApiReferenceLayout.vue2.js +163 -158
  8. package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
  9. package/dist/components/Badge/Badge.vue.js +1 -1
  10. package/dist/components/Card/CardHeader.vue.d.ts.map +1 -1
  11. package/dist/components/Card/CardHeader.vue.js +2 -2
  12. package/dist/components/Card/CardTab.vue.d.ts.map +1 -1
  13. package/dist/components/Card/CardTab.vue.js +3 -3
  14. package/dist/components/Card/CardTabHeader.vue.d.ts.map +1 -1
  15. package/dist/components/Card/CardTabHeader.vue.js +2 -2
  16. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +1 -1
  17. package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +1 -1
  18. package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
  19. package/dist/components/Content/Lazy/Loading.vue.d.ts +1 -3
  20. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
  21. package/dist/components/Content/Lazy/Loading.vue.js +92 -91
  22. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  23. package/dist/components/Content/Models/Models.vue.js +2 -2
  24. package/dist/components/Content/Models/Models.vue2.js +59 -56
  25. package/dist/components/Content/Schema/RenderString.vue.d.ts +6 -0
  26. package/dist/components/Content/Schema/RenderString.vue.d.ts.map +1 -0
  27. package/dist/components/Content/Schema/RenderString.vue.js +14 -0
  28. package/dist/components/Content/Schema/RenderString.vue2.js +4 -0
  29. package/dist/components/Content/Schema/Schema.vue.d.ts +1 -1
  30. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  31. package/dist/components/Content/Schema/Schema.vue.js +2 -2
  32. package/dist/components/Content/Schema/Schema.vue2.js +76 -75
  33. package/dist/components/Content/Schema/SchemaComposition.vue.d.ts.map +1 -1
  34. package/dist/components/Content/Schema/SchemaComposition.vue.js +58 -66
  35. package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts +19 -0
  36. package/dist/components/Content/Schema/SchemaEnumValues.vue.d.ts.map +1 -0
  37. package/dist/components/Content/Schema/SchemaEnumValues.vue.js +7 -0
  38. package/dist/components/Content/Schema/SchemaEnumValues.vue2.js +125 -0
  39. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +2 -2
  40. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  41. package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
  42. package/dist/components/Content/Schema/SchemaProperty.vue2.js +96 -170
  43. package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts +18 -0
  44. package/dist/components/Content/Schema/SchemaPropertyDescription.vue.d.ts.map +1 -0
  45. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  46. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
  47. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +155 -160
  48. package/dist/components/Content/Schema/helpers/get-schema-type.d.ts +6 -0
  49. package/dist/components/Content/Schema/helpers/get-schema-type.d.ts.map +1 -0
  50. package/dist/components/Content/Schema/helpers/get-schema-type.js +20 -0
  51. package/dist/components/Content/Schema/helpers/merge-all-of-schemas.js +1 -1
  52. package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +1 -1
  53. package/dist/components/Content/Schema/helpers/schema-name.d.ts.map +1 -1
  54. package/dist/components/Content/Schema/helpers/schema-name.js +20 -46
  55. package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
  56. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  57. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  58. package/dist/features/Operation/layouts/ModernLayout.vue2.js +13 -13
  59. package/dist/features/Search/SearchButton.vue.d.ts +1 -0
  60. package/dist/features/Search/SearchButton.vue.d.ts.map +1 -1
  61. package/dist/features/Search/SearchButton.vue.js +36 -34
  62. package/dist/features/Search/SearchModal.vue.d.ts +1 -0
  63. package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
  64. package/dist/features/Search/SearchModal.vue.js +1 -1
  65. package/dist/features/Search/SearchModal.vue2.js +112 -112
  66. package/dist/features/Search/useSearchIndex.d.ts +4 -3
  67. package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
  68. package/dist/features/Search/useSearchIndex.js +119 -82
  69. package/dist/features/api-client-modal/ApiClientModal.vue.d.ts +2 -2
  70. package/dist/features/api-client-modal/ApiClientModal.vue.d.ts.map +1 -1
  71. package/dist/features/api-client-modal/ApiClientModal.vue.js +47 -38
  72. package/dist/features/api-client-modal/useApiClient.d.ts +334 -334
  73. package/dist/features/api-client-modal/useApiClient.d.ts.map +1 -1
  74. package/dist/features/base-url/BaseUrl.vue.js +1 -1
  75. package/dist/features/example-responses/ExampleResponse.vue.js +3 -3
  76. package/dist/features/example-responses/ExampleResponse.vue2.js +7 -7
  77. package/dist/features/example-responses/ExampleResponses.vue.d.ts +1 -1
  78. package/dist/features/example-responses/ExampleResponses.vue.d.ts.map +1 -1
  79. package/dist/features/example-responses/ExampleResponses.vue.js +2 -2
  80. package/dist/features/sidebar/components/SidebarElement.vue.d.ts.map +1 -1
  81. package/dist/features/sidebar/components/SidebarElement.vue.js +1 -1
  82. package/dist/features/sidebar/components/SidebarElement.vue2.js +23 -21
  83. package/dist/features/sidebar/components/SidebarHttpBadge.vue.d.ts.map +1 -1
  84. package/dist/features/sidebar/components/SidebarHttpBadge.vue.js +2 -2
  85. package/dist/features/sidebar/components/SidebarHttpBadge.vue2.js +5 -6
  86. package/dist/features/test-request-button/TestRequestButton.vue.js +2 -2
  87. package/dist/features/traverse-schema/helpers/traverse-tags.js +26 -26
  88. package/dist/features/traverse-schema/index.d.ts +1 -1
  89. package/dist/features/traverse-schema/index.d.ts.map +1 -1
  90. package/dist/index.js +1 -1
  91. package/dist/libs/openapi.d.ts +15 -1
  92. package/dist/libs/openapi.d.ts.map +1 -1
  93. package/dist/libs/openapi.js +66 -47
  94. package/dist/standalone/lib/html-api.d.ts.map +1 -1
  95. package/dist/stores/useHttpClientStore.js +2 -2
  96. package/dist/style.css +1 -1
  97. package/dist/types.d.ts +3 -3
  98. package/dist/v2/blocks/scalar-request-example-block/components/RequestExample.vue.d.ts +2 -2
  99. package/package.json +18 -18
  100. package/dist/hooks/useOperation.d.ts +0 -16
  101. package/dist/hooks/useOperation.d.ts.map +0 -1
  102. package/dist/hooks/useOperation.js +0 -27
@@ -1,12 +1,14 @@
1
- import { defineComponent as F, computed as B, createElementBlock as n, openBlock as u, createCommentVNode as i, createBlock as d, normalizeClass as j, renderSlot as A, Fragment as k, createTextVNode as l, withCtx as a, createVNode as g, toDisplayString as m, unref as v } from "vue";
2
- import { isDefined as p } from "@scalar/helpers/array/is-defined";
3
- import z from "./SchemaPropertyExamples.vue.js";
4
- import S from "../../ScreenReader.vue.js";
5
- import { getDiscriminatorSchemaName as H } from "../../../hooks/useDiscriminator.js";
6
- import { getModelName as J } from "./helpers/schema-name.js";
7
- import o from "./SchemaPropertyDetail.vue.js";
8
- import C from "../../Badge/Badge.vue.js";
9
- const R = { class: "property-heading" }, G = {
1
+ import { defineComponent as b, computed as C, createElementBlock as i, openBlock as r, createCommentVNode as a, createBlock as n, normalizeClass as A, renderSlot as E, Fragment as f, createTextVNode as l, withCtx as u, createVNode as p, toDisplayString as o, unref as s } from "vue";
2
+ import { isDefined as y } from "@scalar/helpers/array/is-defined";
3
+ import B from "../../ScreenReader.vue.js";
4
+ import { getDiscriminatorSchemaName as F } from "../../../hooks/useDiscriminator.js";
5
+ import { getSchemaType as z } from "./helpers/get-schema-type.js";
6
+ import { getModelName as H } from "./helpers/schema-name.js";
7
+ import J from "./RenderString.vue.js";
8
+ import m from "./SchemaPropertyDetail.vue.js";
9
+ import R from "./SchemaPropertyExamples.vue.js";
10
+ import L from "../../Badge/Badge.vue.js";
11
+ const j = { class: "property-heading" }, G = {
10
12
  key: 1,
11
13
  class: "property-discriminator"
12
14
  }, K = {
@@ -30,7 +32,7 @@ const R = { class: "property-heading" }, G = {
30
32
  }, Z = {
31
33
  key: 10,
32
34
  class: "property-required"
33
- }, ae = /* @__PURE__ */ F({
35
+ }, ie = /* @__PURE__ */ b({
34
36
  __name: "SchemaPropertyHeading",
35
37
  props: {
36
38
  value: {},
@@ -42,237 +44,230 @@ const R = { class: "property-heading" }, G = {
42
44
  hideModelNames: { type: Boolean, default: !1 },
43
45
  schemas: {}
44
46
  },
45
- setup(r) {
46
- const L = (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" ? JSON.stringify(e.default) : e == null ? void 0 : e.default, D = B(() => {
47
- var e, t, s, f, y, N;
48
- if (p((e = r.value) == null ? void 0 : e.const))
49
- return (t = r.value) == null ? void 0 : t.const;
50
- if (((f = (s = r.value) == null ? void 0 : s.enum) == null ? void 0 : f.length) === 1)
51
- return r.value.enum[0];
52
- if ((y = r.value) != null && y.items) {
53
- if (p(r.value.items.const))
54
- return r.value.items.const;
55
- if (((N = r.value.items.enum) == null ? void 0 : N.length) === 1)
56
- return r.value.items.enum[0];
47
+ setup(d) {
48
+ const T = (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" ? JSON.stringify(e.default) : e == null ? void 0 : e.default, S = C(() => {
49
+ var e, t, v, k, g, N;
50
+ if (((e = d.value) == null ? void 0 : e.const) !== void 0)
51
+ return (t = d.value) == null ? void 0 : t.const;
52
+ if (((k = (v = d.value) == null ? void 0 : v.enum) == null ? void 0 : k.length) === 1)
53
+ return d.value.enum[0];
54
+ if ((g = d.value) != null && g.items) {
55
+ if (y(d.value.items.const))
56
+ return d.value.items.const;
57
+ if (((N = d.value.items.enum) == null ? void 0 : N.length) === 1)
58
+ return d.value.items.enum[0];
57
59
  }
58
- return null;
59
- }), T = B(() => {
60
- var e, t, s, f, y;
61
- return Array.isArray((e = r.value) == null ? void 0 : e.type) ? r.value.type.join(" | ") : (t = r.value) != null && t.title ? r.value.title : (s = r.value) != null && s.name ? r.value.name : (f = r.value) != null && f.type && r.value.contentEncoding ? `${r.value.type} • ${r.value.contentEncoding}` : ((y = r.value) == null ? void 0 : y.type) ?? "";
62
- }), M = B(() => r.value ? J(
63
- r.value,
64
- r.schemas,
65
- r.hideModelNames,
66
- H
60
+ }), D = C(() => d.value ? H(
61
+ d.value,
62
+ d.schemas,
63
+ d.hideModelNames,
64
+ F
67
65
  ) : null);
68
66
  return (e, t) => {
69
- var s, f, y, N, q, w, E, P, $, I, O, V;
70
- return u(), n("div", R, [
71
- e.$slots.name ? (u(), n("div", {
67
+ var v, k, g, N, M, q, w, P, I, O, V, $;
68
+ return r(), i("div", j, [
69
+ e.$slots.name ? (r(), i("div", {
72
70
  key: 0,
73
- class: j(["property-name", { deprecated: (s = e.value) == null ? void 0 : s.deprecated }])
71
+ class: A(["property-name", { deprecated: (v = e.value) == null ? void 0 : v.deprecated }])
74
72
  }, [
75
- e.pattern ? (u(), n(k, { key: 1 }, [
73
+ e.pattern ? (r(), i(f, { key: 1 }, [
76
74
  t[0] || (t[0] = l("/")),
77
- A(e.$slots, "name", {}, void 0, !0),
75
+ E(e.$slots, "name", {}, void 0, !0),
78
76
  t[1] || (t[1] = l("/"))
79
- ], 64)) : A(e.$slots, "name", { key: 0 }, void 0, !0)
80
- ], 2)) : i("", !0),
81
- (f = e.value) != null && f.isDiscriminator ? (u(), n("div", G, " Discriminator ")) : i("", !0),
82
- e.value ? (u(), n(k, { key: 2 }, [
83
- (y = e.value) != null && y.type ? (u(), d(o, { key: 0 }, {
84
- default: a(() => {
85
- var b;
86
- return [
87
- g(S, null, {
88
- default: a(() => t[2] || (t[2] = [
89
- l("Type:")
90
- ])),
91
- _: 1
92
- }),
93
- M.value ? (u(), n(k, { key: 0 }, [
94
- l(m(M.value), 1)
95
- ], 64)) : (u(), n(k, { key: 1 }, [
96
- l(m(T.value) + " " + m((b = e.value) != null && b.nullable ? " | nullable" : ""), 1)
97
- ], 64))
98
- ];
99
- }),
77
+ ], 64)) : E(e.$slots, "name", { key: 0 }, void 0, !0)
78
+ ], 2)) : a("", !0),
79
+ (k = e.value) != null && k.isDiscriminator ? (r(), i("div", G, " Discriminator ")) : a("", !0),
80
+ e.value ? (r(), i(f, { key: 2 }, [
81
+ (g = e.value) != null && g.type ? (r(), n(m, { key: 0 }, {
82
+ default: u(() => [
83
+ p(B, null, {
84
+ default: u(() => t[2] || (t[2] = [
85
+ l("Type: ")
86
+ ])),
87
+ _: 1
88
+ }),
89
+ D.value ? (r(), i(f, { key: 0 }, [
90
+ l(o(D.value), 1)
91
+ ], 64)) : (r(), i(f, { key: 1 }, [
92
+ l(o(s(z)(e.value)), 1)
93
+ ], 64))
94
+ ]),
100
95
  _: 1
101
- })) : i("", !0),
102
- e.value.minItems || e.value.maxItems ? (u(), d(o, { key: 1 }, {
103
- default: a(() => [
104
- l(m(e.value.minItems) + "…" + m(e.value.maxItems), 1)
96
+ })) : a("", !0),
97
+ e.value.minItems || e.value.maxItems ? (r(), n(m, { key: 1 }, {
98
+ default: u(() => [
99
+ l(o(e.value.minItems) + "…" + o(e.value.maxItems), 1)
105
100
  ]),
106
101
  _: 1
107
- })) : i("", !0),
108
- e.value.minLength ? (u(), d(o, { key: 2 }, {
109
- prefix: a(() => t[3] || (t[3] = [
110
- l("min:")
102
+ })) : a("", !0),
103
+ e.value.minLength ? (r(), n(m, { key: 2 }, {
104
+ prefix: u(() => t[3] || (t[3] = [
105
+ l("min: ")
111
106
  ])),
112
- default: a(() => [
113
- l(" " + m(e.value.minLength), 1)
107
+ default: u(() => [
108
+ l(" " + o(e.value.minLength), 1)
114
109
  ]),
115
110
  _: 1
116
- })) : i("", !0),
117
- e.value.maxLength ? (u(), d(o, { key: 3 }, {
118
- prefix: a(() => t[4] || (t[4] = [
119
- l("max:")
111
+ })) : a("", !0),
112
+ e.value.maxLength ? (r(), n(m, { key: 3 }, {
113
+ prefix: u(() => t[4] || (t[4] = [
114
+ l("max: ")
120
115
  ])),
121
- default: a(() => [
122
- l(" " + m(e.value.maxLength), 1)
116
+ default: u(() => [
117
+ l(" " + o(e.value.maxLength), 1)
123
118
  ]),
124
119
  _: 1
125
- })) : i("", !0),
126
- e.value.uniqueItems ? (u(), d(o, { key: 4 }, {
127
- default: a(() => t[5] || (t[5] = [
120
+ })) : a("", !0),
121
+ e.value.uniqueItems ? (r(), n(m, { key: 4 }, {
122
+ default: u(() => t[5] || (t[5] = [
128
123
  l(" unique! ")
129
124
  ])),
130
125
  _: 1
131
- })) : i("", !0),
132
- e.value.format ? (u(), d(o, { key: 5 }, {
133
- default: a(() => [
134
- g(S, null, {
135
- default: a(() => t[6] || (t[6] = [
126
+ })) : a("", !0),
127
+ e.value.format ? (r(), n(m, { key: 5 }, {
128
+ default: u(() => [
129
+ p(B, null, {
130
+ default: u(() => t[6] || (t[6] = [
136
131
  l("Format:")
137
132
  ])),
138
133
  _: 1
139
134
  }),
140
- l(" " + m(e.value.format), 1)
135
+ l(" " + o(e.value.format), 1)
141
136
  ]),
142
137
  _: 1
143
- })) : i("", !0),
144
- v(p)(e.value.minimum) && e.value.exclusiveMinimum ? (u(), d(o, { key: 6 }, {
145
- prefix: a(() => t[7] || (t[7] = [
146
- l("greater than:")
138
+ })) : a("", !0),
139
+ s(y)(e.value.exclusiveMinimum) ? (r(), n(m, { key: 6 }, {
140
+ prefix: u(() => t[7] || (t[7] = [
141
+ l("greater than: ")
147
142
  ])),
148
- default: a(() => [
149
- l(" " + m(e.value.minimum), 1)
143
+ default: u(() => [
144
+ l(" " + o(e.value.exclusiveMinimum), 1)
150
145
  ]),
151
146
  _: 1
152
- })) : i("", !0),
153
- v(p)(e.value.minimum) && !e.value.exclusiveMinimum ? (u(), d(o, { key: 7 }, {
154
- prefix: a(() => t[8] || (t[8] = [
155
- l("min:")
147
+ })) : a("", !0),
148
+ s(y)(e.value.minimum) ? (r(), n(m, { key: 7 }, {
149
+ prefix: u(() => t[8] || (t[8] = [
150
+ l("min: ")
156
151
  ])),
157
- default: a(() => [
158
- l(" " + m(e.value.minimum), 1)
152
+ default: u(() => [
153
+ l(" " + o(e.value.minimum), 1)
159
154
  ]),
160
155
  _: 1
161
- })) : i("", !0),
162
- v(p)(e.value.maximum) && e.value.exclusiveMaximum ? (u(), d(o, { key: 8 }, {
163
- prefix: a(() => t[9] || (t[9] = [
164
- l("less than:")
156
+ })) : a("", !0),
157
+ s(y)(e.value.exclusiveMaximum) ? (r(), n(m, { key: 8 }, {
158
+ prefix: u(() => t[9] || (t[9] = [
159
+ l("less than: ")
165
160
  ])),
166
- default: a(() => [
167
- l(" " + m(e.value.maximum), 1)
161
+ default: u(() => [
162
+ l(" " + o(e.value.exclusiveMaximum), 1)
168
163
  ]),
169
164
  _: 1
170
- })) : i("", !0),
171
- v(p)(e.value.maximum) && !e.value.exclusiveMaximum ? (u(), d(o, { key: 9 }, {
172
- prefix: a(() => t[10] || (t[10] = [
173
- l("max:")
165
+ })) : a("", !0),
166
+ s(y)(e.value.maximum) ? (r(), n(m, { key: 9 }, {
167
+ prefix: u(() => t[10] || (t[10] = [
168
+ l("max: ")
174
169
  ])),
175
- default: a(() => [
176
- l(" " + m(e.value.maximum), 1)
170
+ default: u(() => [
171
+ l(" " + o(e.value.maximum), 1)
177
172
  ]),
178
173
  _: 1
179
- })) : i("", !0),
180
- v(p)(e.value.multipleOf) ? (u(), d(o, { key: 10 }, {
181
- prefix: a(() => t[11] || (t[11] = [
182
- l("multiple of:")
174
+ })) : a("", !0),
175
+ s(y)(e.value.multipleOf) ? (r(), n(m, { key: 10 }, {
176
+ prefix: u(() => t[11] || (t[11] = [
177
+ l("multiple of: ")
183
178
  ])),
184
- default: a(() => [
185
- l(" " + m(e.value.multipleOf), 1)
179
+ default: u(() => [
180
+ l(" " + o(e.value.multipleOf), 1)
186
181
  ]),
187
182
  _: 1
188
- })) : i("", !0),
189
- e.value.pattern ? (u(), d(o, {
183
+ })) : a("", !0),
184
+ e.value.pattern ? (r(), n(m, {
190
185
  key: 11,
191
186
  code: "",
192
187
  truncate: ""
193
188
  }, {
194
- default: a(() => [
195
- g(S, null, {
196
- default: a(() => t[12] || (t[12] = [
189
+ default: u(() => [
190
+ p(B, null, {
191
+ default: u(() => t[12] || (t[12] = [
197
192
  l("Pattern:")
198
193
  ])),
199
194
  _: 1
200
195
  }),
201
- l(" " + m(e.value.pattern), 1)
196
+ l(" " + o(e.value.pattern), 1)
202
197
  ]),
203
198
  _: 1
204
- })) : i("", !0),
205
- e.$props.enum ? (u(), d(o, { key: 12 }, {
206
- default: a(() => t[13] || (t[13] = [
199
+ })) : a("", !0),
200
+ e.$props.enum ? (r(), n(m, { key: 12 }, {
201
+ default: u(() => t[13] || (t[13] = [
207
202
  l("enum")
208
203
  ])),
209
204
  _: 1
210
- })) : i("", !0),
211
- e.value.default !== void 0 ? (u(), d(o, {
205
+ })) : a("", !0),
206
+ e.value.default !== void 0 ? (r(), n(m, {
212
207
  key: 13,
213
208
  truncate: ""
214
209
  }, {
215
- prefix: a(() => t[14] || (t[14] = [
216
- l("default:")
210
+ prefix: u(() => t[14] || (t[14] = [
211
+ l("default: ")
217
212
  ])),
218
- default: a(() => [
219
- l(" " + m(L(e.value)), 1)
213
+ default: u(() => [
214
+ l(" " + o(T(e.value)), 1)
220
215
  ]),
221
216
  _: 1
222
- })) : i("", !0)
223
- ], 64)) : i("", !0),
224
- e.additional ? (u(), n("div", K, [
225
- (N = e.value) != null && N["x-additionalPropertiesName"] ? (u(), n(k, { key: 0 }, [
226
- l(m(e.value["x-additionalPropertiesName"]), 1)
227
- ], 64)) : (u(), n(k, { key: 1 }, [
217
+ })) : a("", !0)
218
+ ], 64)) : a("", !0),
219
+ e.additional ? (r(), i("div", K, [
220
+ (N = e.value) != null && N["x-additionalPropertiesName"] ? (r(), i(f, { key: 0 }, [
221
+ l(o(e.value["x-additionalPropertiesName"]), 1)
222
+ ], 64)) : (r(), i(f, { key: 1 }, [
228
223
  l("additional properties")
229
224
  ], 64))
230
- ])) : i("", !0),
231
- e.pattern ? (u(), n("div", Q, [
232
- g(v(C), null, {
233
- default: a(() => t[15] || (t[15] = [
225
+ ])) : a("", !0),
226
+ e.pattern ? (r(), i("div", Q, [
227
+ p(s(L), null, {
228
+ default: u(() => t[15] || (t[15] = [
234
229
  l("pattern")
235
230
  ])),
236
231
  _: 1
237
232
  })
238
- ])) : i("", !0),
239
- (q = e.value) != null && q.deprecated ? (u(), n("div", U, [
240
- g(v(C), null, {
241
- default: a(() => t[16] || (t[16] = [
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] = [
242
237
  l("deprecated")
243
238
  ])),
244
239
  _: 1
245
240
  })
246
- ])) : i("", !0),
247
- v(p)(D.value) ? (u(), n("div", W, [
248
- g(o, { truncate: "" }, {
249
- prefix: a(() => t[17] || (t[17] = [
250
- l("const:")
241
+ ])) : a("", !0),
242
+ S.value !== void 0 ? (r(), i("div", W, [
243
+ p(m, { truncate: "" }, {
244
+ prefix: u(() => t[17] || (t[17] = [
245
+ l("const: ")
251
246
  ])),
252
- default: a(() => [
253
- l(" " + m(D.value), 1)
247
+ default: u(() => [
248
+ p(J, { value: S.value }, null, 8, ["value"])
254
249
  ]),
255
250
  _: 1
256
251
  })
257
- ])) : (u(), n(k, { key: 7 }, [
258
- ((w = e.value) == null ? void 0 : w.nullable) === !0 ? (u(), d(o, { key: 0 }, {
259
- default: a(() => t[18] || (t[18] = [
252
+ ])) : (r(), i(f, { key: 7 }, [
253
+ ((q = e.value) == null ? void 0 : q.nullable) === !0 ? (r(), n(m, { key: 0 }, {
254
+ default: u(() => t[18] || (t[18] = [
260
255
  l(" nullable ")
261
256
  ])),
262
257
  _: 1
263
- })) : i("", !0)
258
+ })) : a("", !0)
264
259
  ], 64)),
265
- (E = e.value) != null && E.writeOnly ? (u(), n("div", X, " write-only ")) : (P = e.value) != null && P.readOnly ? (u(), n("div", Y, " read-only ")) : i("", !0),
266
- e.required ? (u(), n("div", Z, " required ")) : i("", !0),
267
- e.withExamples ? (u(), d(z, {
260
+ (w = e.value) != null && w.writeOnly ? (r(), i("div", X, " write-only ")) : (P = e.value) != null && P.readOnly ? (r(), i("div", Y, " read-only ")) : a("", !0),
261
+ e.required ? (r(), i("div", Z, " required ")) : a("", !0),
262
+ e.withExamples ? (r(), n(R, {
268
263
  key: 11,
269
- examples: ($ = e.value) == null ? void 0 : $.examples,
270
- example: ((I = e.value) == null ? void 0 : I.example) || ((V = (O = e.value) == null ? void 0 : O.items) == null ? void 0 : V.example)
271
- }, null, 8, ["examples", "example"])) : i("", !0)
264
+ examples: (I = e.value) == null ? void 0 : I.examples,
265
+ example: ((O = e.value) == null ? void 0 : O.example) || (($ = (V = e.value) == null ? void 0 : V.items) == null ? void 0 : $.example)
266
+ }, null, 8, ["examples", "example"])) : a("", !0)
272
267
  ]);
273
268
  };
274
269
  }
275
270
  });
276
271
  export {
277
- ae as default
272
+ ie as default
278
273
  };
@@ -0,0 +1,6 @@
1
+ import type { OpenAPIV3_1 } from '@scalar/openapi-types';
2
+ /**
3
+ * Computes the human-readable type for a schema.
4
+ **/
5
+ export declare const getSchemaType: (value: OpenAPIV3_1.SchemaObject) => string;
6
+ //# sourceMappingURL=get-schema-type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-schema-type.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/get-schema-type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAExD;;IAEI;AACJ,eAAO,MAAM,aAAa,UAAW,WAAW,CAAC,YAAY,KAAG,MAuD/D,CAAA"}
@@ -0,0 +1,20 @@
1
+ const o = (t) => {
2
+ var s;
3
+ if ((t == null ? void 0 : t.const) !== void 0)
4
+ return "const";
5
+ if (Array.isArray(t == null ? void 0 : t.type)) {
6
+ if (t.type.includes("array") && t.items) {
7
+ const r = o(t.items), i = r != null && r.includes(" | ") ? `(${r})` : r, n = r ? `array ${i}[]` : "array", y = t.type.filter((c) => c !== "array");
8
+ return y.length > 0 ? `${n} | ${y.join(" | ")}` : n;
9
+ }
10
+ return t.type.join(" | ");
11
+ }
12
+ if ((t == null ? void 0 : t.type) === "array" && t.items) {
13
+ const r = o(t.items), i = r != null && r.includes(" | ") ? `(${r})` : r, n = r ? `array ${i}[]` : "array";
14
+ return t.nullable ? `${n} | null` : n;
15
+ }
16
+ return t != null && t.title ? t.title : t != null && t.name ? t.name : (s = t == null ? void 0 : t.xml) != null && s.name ? t.xml.name : t != null && t.type && t.contentEncoding ? `${t.type} • ${t.contentEncoding}` : (t == null ? void 0 : t.type) ?? "";
17
+ };
18
+ export {
19
+ o as getSchemaType
20
+ };
@@ -10,7 +10,7 @@ function o(f, e = 0) {
10
10
  if (r.properties && (t.properties = n(t.properties || {}, r.properties, e + 1)), r.items) {
11
11
  if (r.type === "array")
12
12
  t.items = O(t.items || {}, r.items, e + 1);
13
- else if (r.type === "object" && r.items.allOf) {
13
+ else if (typeof r.type == "string" && ["object", "string"].includes(r.type) && r.items.allOf) {
14
14
  const i = o(r.items.allOf, e + 1);
15
15
  t.properties = n(
16
16
  t.properties || {},
@@ -1 +1 @@
1
- {"version":3,"file":"optimizeValueForDisplay.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/optimizeValueForDisplay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAG9D,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
+ {"version":3,"file":"optimizeValueForDisplay.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/optimizeValueForDisplay.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":"schema-name.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/schema-name.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAGxD;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,GAAG,MAAM,GAAG,IAAI,CA6CtF;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAwB3G;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAE3E;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC1B,OAAO,CAAC,EAAE,OAAO,EACjB,cAAc,UAAQ,EACtB,0BAA0B,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,OAAO,KAAK,MAAM,GAAG,IAAI,GAC7E,MAAM,GAAG,IAAI,CA2Df;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAgBpD;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,WAAW,CAAC,YAAY,EAAE,EACvC,kBAAkB,EAAE,WAAW,CAAC,YAAY,EAAE,EAC9C,OAAO,CAAC,EAAE,OAAO,GAChB,WAAW,CAAC,YAAY,EAAE,CA0B5B"}
1
+ {"version":3,"file":"schema-name.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/schema-name.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAGxD;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,GAAG,MAAM,GAAG,IAAI,CAyBtF;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAwB3G;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAE3E;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC1B,OAAO,CAAC,EAAE,OAAO,EACjB,cAAc,UAAQ,EACtB,0BAA0B,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,OAAO,KAAK,MAAM,GAAG,IAAI,GAC7E,MAAM,GAAG,IAAI,CAmDf;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAgBpD;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,WAAW,CAAC,YAAY,EAAE,EACvC,kBAAkB,EAAE,WAAW,CAAC,YAAY,EAAE,EAC9C,OAAO,CAAC,EAAE,OAAO,GAChB,WAAW,CAAC,YAAY,EAAE,CA0B5B"}
@@ -1,5 +1,4 @@
1
- import { stringify as $ } from "flatted";
2
- function s(t) {
1
+ function o(t) {
3
2
  if (!t)
4
3
  return null;
5
4
  if ("title" in t && t.title)
@@ -7,61 +6,36 @@ function s(t) {
7
6
  if ("name" in t && t.name)
8
7
  return t.name;
9
8
  if ("$ref" in t) {
10
- const n = t.$ref.match(/\/([^\/]+)$/);
11
- if (n)
12
- return n[1];
9
+ const i = t.$ref.match(/\/([^\/]+)$/);
10
+ if (i)
11
+ return i[1];
13
12
  }
14
- if ("type" in t && t.type === "array" && "items" in t && t.items)
15
- return `Array of ${"type" in t.items && t.items.type || "any"}`;
16
- if ("type" in t && t.type)
17
- return Array.isArray(t.type) ? t.type.join(" | ") : t.type;
18
- if (typeof t == "object") {
19
- const r = Object.keys(t);
20
- if (r.length > 0)
21
- return r[0];
22
- }
23
- return null;
24
- }
25
- function b(t, r) {
26
- var n, y;
27
- if (!t || !r || typeof r != "object" || t.type !== "array" && t.type !== "object")
28
- return null;
29
- for (const [e, i] of Object.entries(r))
30
- if (i.type === t.type && (t.type === "array" && ((n = i.items) == null ? void 0 : n.type) === ((y = t.items) == null ? void 0 : y.type) || t.type === "object" && i.properties && t.properties && $(i.properties) === $(t.properties)))
31
- return e;
32
13
  return null;
33
14
  }
34
- function p(t, r) {
35
- return t === "array" ? `${t} ${r}[]` : `${t} ${r}`;
15
+ function e(t, n) {
16
+ return t === "array" ? `${t} ${n}[]` : `${t} ${n}`;
36
17
  }
37
- function u(t, r, n = !1, y) {
38
- var o;
39
- if (!(t != null && t.type))
18
+ function p(t, n, i = !1, y) {
19
+ if (!(t != null && t.type) || i)
40
20
  return null;
41
- if (n)
42
- return t.type === "array" && ((o = t.items) != null && o.type) ? `array ${t.items.type}[]` : null;
43
- const e = s(t);
44
- if (e && (t.title || t.name))
45
- return t.type === "array" ? `array ${e}[]` : e;
46
- const i = b(t, r);
47
- if (i)
48
- return t.type === "array" ? `array ${i}[]` : i;
21
+ const r = o(t);
22
+ if (r && (t.title || t.name))
23
+ return t.type === "array" ? `array ${r}[]` : r;
49
24
  if (t.type === "array" && t.items) {
50
25
  if (y) {
51
- const m = y(t.items, r);
26
+ const m = y(t.items, n);
52
27
  if (m)
53
- return p(t.type, m);
28
+ return e(t.type, m);
54
29
  }
55
30
  if (t.items.title || t.items.name)
56
- return p(t.type, t.items.title || t.items.name);
57
- const f = s(t.items);
58
- return f && f !== t.items.type ? p(t.type, f) : t.items.type ? p(t.type, t.items.type) : p(t.type, "object");
31
+ return e(t.type, t.items.title || t.items.name);
32
+ const f = o(t.items);
33
+ return f && f !== t.items.type ? e(t.type, f) : t.items.type ? e(t.type, t.items.type) : e(t.type, "object");
59
34
  }
60
- return e && e !== t.type ? e.startsWith("Array of ") ? `array ${e.replace("Array of ", "")}[]` : e : null;
35
+ return r && r !== t.type ? r.startsWith("Array of ") ? `array ${r.replace("Array of ", "")}[]` : r : null;
61
36
  }
62
37
  export {
63
- p as formatTypeWithModel,
64
- u as getModelName,
65
- s as getModelNameFromSchema,
66
- b as getSchemaNameFromSchemas
38
+ e as formatTypeWithModel,
39
+ p as getModelName,
40
+ o as getModelNameFromSchema
67
41
  };
@@ -1,7 +1,7 @@
1
1
  import t from "./ParameterListItem.vue2.js";
2
2
  /* empty css */
3
- import e from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ e(t, [["__scopeId", "data-v-5d044e0e"]]);
3
+ import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-df3b54dc"]]);
5
5
  export {
6
- a as default
6
+ e as default
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AAsLA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AA2BvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAI/C,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,WAAW,CAAC,WAAW,CAAA;IAC/B,SAAS,EAAE,WAAW,CAAC,eAAe,CAAA;IACtC,SAAS,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;;;;;AA4TF,wBAQG"}
1
+ {"version":3,"file":"ModernLayout.vue.d.ts","sourceRoot":"","sources":["../../../../src/features/Operation/layouts/ModernLayout.vue"],"names":[],"mappings":"AAuLA,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EACP,MAAM,EACP,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AA2BvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAI/C,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,WAAW,CAAC,WAAW,CAAA;IAC/B,SAAS,EAAE,WAAW,CAAC,eAAe,CAAA;IACtC,SAAS,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,OAAO,EAAE,OAAO,GAAG,SAAS,CAAA;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;;;;;AA6TF,wBAQG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ModernLayout.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-199f4e09"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-d34fa883"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };