@scalar/api-reference 1.28.4 → 1.28.6

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 (139) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/dist/browser/standalone.js +6206 -6147
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  5. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  6. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  7. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
  8. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  9. package/dist/components/Content/Content.vue.js +2 -2
  10. package/dist/components/Content/Content.vue2.js +57 -55
  11. package/dist/components/Content/Introduction/Description.vue.d.ts.map +1 -1
  12. package/dist/components/Content/Introduction/Description.vue.js +2 -2
  13. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  14. package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
  15. package/dist/components/Content/Introduction/Introduction.vue2.js +24 -24
  16. package/dist/components/Content/Lazy/Lazy.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
  18. package/dist/components/Content/Lazy/Loading.vue.js +4 -2
  19. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  20. package/dist/components/Content/Models/Models.vue.js +2 -2
  21. package/dist/components/Content/Models/Models.vue2.js +18 -17
  22. package/dist/components/Content/Schema/Schema.vue.d.ts +1 -0
  23. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  24. package/dist/components/Content/Schema/Schema.vue.js +4 -4
  25. package/dist/components/Content/Schema/Schema.vue2.js +79 -67
  26. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts +12 -0
  27. package/dist/components/Content/Schema/SchemaDiscriminator.vue.d.ts.map +1 -0
  28. package/dist/components/Content/Schema/SchemaDiscriminator.vue.js +7 -0
  29. package/dist/components/Content/Schema/SchemaDiscriminator.vue2.js +109 -0
  30. package/dist/components/Content/Schema/SchemaHeading.vue.d.ts.map +1 -1
  31. package/dist/components/Content/Schema/SchemaHeading.vue.js +2 -2
  32. package/dist/components/Content/Schema/SchemaHeading.vue2.js +26 -31
  33. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts +3 -0
  34. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  35. package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
  36. package/dist/components/Content/Schema/SchemaProperty.vue2.js +143 -141
  37. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  38. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
  39. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +83 -99
  40. package/dist/components/Content/Tag/OperationsList.vue.js +2 -2
  41. package/dist/components/Content/Tag/OperationsList.vue2.js +3 -3
  42. package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
  43. package/dist/components/Content/Tag/Tag.vue.js +41 -36
  44. package/dist/components/Content/Tag/TagList.vue.d.ts +2 -0
  45. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  46. package/dist/components/Content/Tag/TagList.vue.js +38 -36
  47. package/dist/components/Content/Tag/TagSection.vue.js +2 -2
  48. package/dist/components/Content/Tag/TagSection.vue2.js +3 -3
  49. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  50. package/dist/components/Layouts/ModernLayout.vue.d.ts.map +1 -1
  51. package/dist/components/Layouts/ModernLayout.vue.js +1 -1
  52. package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
  53. package/dist/components/Section/CompactSection.vue.js +2 -2
  54. package/dist/components/Section/Section.vue.d.ts.map +1 -1
  55. package/dist/components/Section/Section.vue.js +2 -2
  56. package/dist/components/Section/SectionHeaderTag.vue.d.ts.map +1 -1
  57. package/dist/components/Section/SectionHeaderTag.vue.js +2 -2
  58. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  59. package/dist/components/Sidebar/Sidebar.vue.js +2 -2
  60. package/dist/components/Sidebar/Sidebar.vue2.js +2 -1
  61. package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
  62. package/dist/components/Sidebar/SidebarElement.vue.js +1 -1
  63. package/dist/components/Sidebar/SidebarElement.vue2.js +2 -1
  64. package/dist/esm.d.ts.map +1 -1
  65. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
  66. package/dist/features/ApiClientModal/useApiClient.d.ts +2 -4
  67. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  68. package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
  69. package/dist/features/BaseUrl/BaseUrl.vue.js +2 -1
  70. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  71. package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
  72. package/dist/features/ExampleRequest/ExampleRequest.vue2.js +2 -1
  73. package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
  74. package/dist/features/ExampleResponses/ExampleResponses.vue.js +3 -3
  75. package/dist/features/ExampleResponses/ExampleResponses.vue2.js +6 -8
  76. package/dist/features/Operation/Operation.vue.d.ts +2 -0
  77. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  78. package/dist/features/Operation/Operation.vue.js +13 -10
  79. package/dist/features/Operation/Webhooks.vue.d.ts.map +1 -1
  80. package/dist/features/Operation/Webhooks.vue.js +2 -2
  81. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
  82. package/dist/features/Operation/components/ContentTypeSelect.vue.js +4 -4
  83. package/dist/features/Operation/components/OperationParameters.vue.d.ts +2 -0
  84. package/dist/features/Operation/components/OperationParameters.vue.d.ts.map +1 -1
  85. package/dist/features/Operation/components/OperationParameters.vue.js +37 -31
  86. package/dist/features/Operation/components/OperationResponses.vue.d.ts +2 -0
  87. package/dist/features/Operation/components/OperationResponses.vue.d.ts.map +1 -1
  88. package/dist/features/Operation/components/OperationResponses.vue.js +15 -13
  89. package/dist/features/Operation/components/ParameterList.vue.d.ts +2 -0
  90. package/dist/features/Operation/components/ParameterList.vue.d.ts.map +1 -1
  91. package/dist/features/Operation/components/ParameterList.vue.js +2 -2
  92. package/dist/features/Operation/components/ParameterList.vue2.js +14 -12
  93. package/dist/features/Operation/components/ParameterListItem.vue.d.ts +2 -0
  94. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  95. package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
  96. package/dist/features/Operation/components/ParameterListItem.vue2.js +20 -18
  97. package/dist/features/Operation/components/RequestBody.vue.d.ts +2 -0
  98. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  99. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  100. package/dist/features/Operation/components/RequestBody.vue2.js +20 -18
  101. package/dist/features/Operation/hooks/useResponses.d.ts.map +1 -1
  102. package/dist/features/Operation/hooks/useResponses.js +2 -1
  103. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts +2 -0
  104. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  105. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  106. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +29 -24
  107. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts +2 -0
  108. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  109. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  110. package/dist/features/Operation/layouts/ModernLayout.vue2.js +66 -56
  111. package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
  112. package/dist/features/Search/SearchModal.vue.js +2 -2
  113. package/dist/features/Search/SearchModal.vue2.js +2 -1
  114. package/dist/helpers/index.d.ts +4 -4
  115. package/dist/helpers/scrollToId.d.ts.map +1 -1
  116. package/dist/helpers/specHelpers.js +15 -14
  117. package/dist/hooks/index.d.ts +2 -2
  118. package/dist/hooks/useMultipleDocuments.d.ts +1 -0
  119. package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
  120. package/dist/hooks/useNavState.d.ts.map +1 -1
  121. package/dist/hooks/useNavState.js +2 -1
  122. package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
  123. package/dist/hooks/useSidebar.d.ts.map +1 -1
  124. package/dist/hooks/useSidebar.js +3 -2
  125. package/dist/index.d.ts +6 -4
  126. package/dist/index.d.ts.map +1 -1
  127. package/dist/index.js +39 -76
  128. package/dist/libs/operation.d.ts.map +1 -1
  129. package/dist/standalone/lib/html-api.d.ts +4 -4
  130. package/dist/standalone/lib/html-api.d.ts.map +1 -1
  131. package/dist/stores/useHttpClientStore.d.ts.map +1 -1
  132. package/dist/style.css +1 -1
  133. package/package.json +10 -9
  134. package/dist/helpers/getVariableNames.js +0 -7
  135. package/dist/helpers/hasSecuritySchemes.js +0 -7
  136. package/dist/helpers/mapFromObject.js +0 -7
  137. package/dist/helpers/mergeAllObjects.js +0 -7
  138. package/dist/hooks/useClientStore.js +0 -5
  139. package/dist/hooks/useRefOnMount.js +0 -10
@@ -1,29 +1,29 @@
1
- import { defineComponent as V, openBlock as r, createElementBlock as n, normalizeClass as $, renderSlot as A, Fragment as m, createTextVNode as u, createCommentVNode as a, toDisplayString as i, createVNode as v, unref as f, withCtx as t, createBlock as d, renderList as D } from "vue";
2
- import k from "../../ScreenReader.vue.js";
1
+ import { defineComponent as M, openBlock as r, createElementBlock as n, normalizeClass as V, renderSlot as w, Fragment as m, createTextVNode as u, createCommentVNode as t, toDisplayString as i, createVNode as s, unref as A, withCtx as a, createBlock as d } from "vue";
2
+ import p from "../../ScreenReader.vue.js";
3
3
  import o from "./SchemaPropertyDetail.vue.js";
4
- import g from "../../Badge/Badge.vue.js";
5
- const F = { class: "property-heading" }, T = {
4
+ import C from "../../Badge/Badge.vue.js";
5
+ const $ = { class: "property-heading" }, D = {
6
6
  key: 1,
7
7
  class: "property-additional"
8
- }, j = {
8
+ }, F = {
9
9
  key: 2,
10
10
  class: "property-pattern"
11
- }, z = {
11
+ }, O = {
12
12
  key: 3,
13
13
  class: "property-deprecated"
14
- }, E = {
14
+ }, T = {
15
15
  key: 4,
16
16
  class: "property-const"
17
- }, H = {
17
+ }, j = {
18
18
  key: 7,
19
19
  class: "property-write-only"
20
- }, R = {
20
+ }, z = {
21
21
  key: 8,
22
22
  class: "property-read-only"
23
- }, G = {
23
+ }, E = {
24
24
  key: 9,
25
25
  class: "property-required"
26
- }, X = /* @__PURE__ */ V({
26
+ }, Q = /* @__PURE__ */ M({
27
27
  __name: "SchemaPropertyHeading",
28
28
  props: {
29
29
  value: {},
@@ -32,105 +32,105 @@ const F = { class: "property-heading" }, T = {
32
32
  additional: { type: Boolean },
33
33
  pattern: { type: Boolean }
34
34
  },
35
- setup(J) {
36
- const C = ["oneOf", "anyOf", "allOf", "not"], M = (e) => Array.isArray(e == null ? void 0 : e.default) && e.default.length === 1 ? e.default[0] : e == null ? void 0 : e.default;
35
+ setup(H) {
36
+ const L = (e) => Array.isArray(e == null ? void 0 : e.default) && e.default.length === 1 ? e.default[0] : e == null ? void 0 : e.default;
37
37
  return (e, l) => {
38
- var B, q, I, L, N, O, P, S, b;
39
- return r(), n("div", F, [
38
+ var y, v, f, k, g, B, q, I, N;
39
+ return r(), n("div", $, [
40
40
  e.$slots.name ? (r(), n("div", {
41
41
  key: 0,
42
- class: $(["property-name", { deprecated: (B = e.value) == null ? void 0 : B.deprecated }])
42
+ class: V(["property-name", { deprecated: (y = e.value) == null ? void 0 : y.deprecated }])
43
43
  }, [
44
44
  e.pattern ? (r(), n(m, { key: 1 }, [
45
45
  l[0] || (l[0] = u("/")),
46
- A(e.$slots, "name", {}, void 0, !0),
46
+ w(e.$slots, "name", {}, void 0, !0),
47
47
  l[1] || (l[1] = u("/"))
48
- ], 64)) : A(e.$slots, "name", { key: 0 }, void 0, !0)
49
- ], 2)) : a("", !0),
50
- e.additional ? (r(), n("div", T, [
51
- (q = e.value) != null && q["x-additionalPropertiesName"] ? (r(), n(m, { key: 0 }, [
48
+ ], 64)) : w(e.$slots, "name", { key: 0 }, void 0, !0)
49
+ ], 2)) : t("", !0),
50
+ e.additional ? (r(), n("div", D, [
51
+ (v = e.value) != null && v["x-additionalPropertiesName"] ? (r(), n(m, { key: 0 }, [
52
52
  u(i(e.value["x-additionalPropertiesName"]), 1)
53
53
  ], 64)) : (r(), n(m, { key: 1 }, [
54
54
  u("additional properties")
55
55
  ], 64))
56
- ])) : a("", !0),
57
- e.pattern ? (r(), n("div", j, [
58
- v(f(g), null, {
59
- default: t(() => l[2] || (l[2] = [
56
+ ])) : t("", !0),
57
+ e.pattern ? (r(), n("div", F, [
58
+ s(A(C), null, {
59
+ default: a(() => l[2] || (l[2] = [
60
60
  u("pattern")
61
61
  ])),
62
62
  _: 1
63
63
  })
64
- ])) : a("", !0),
65
- (I = e.value) != null && I.deprecated ? (r(), n("div", z, [
66
- v(f(g), null, {
67
- default: t(() => l[3] || (l[3] = [
64
+ ])) : t("", !0),
65
+ (f = e.value) != null && f.deprecated ? (r(), n("div", O, [
66
+ s(A(C), null, {
67
+ default: a(() => l[3] || (l[3] = [
68
68
  u("deprecated")
69
69
  ])),
70
70
  _: 1
71
71
  })
72
- ])) : a("", !0),
73
- (L = e.value) != null && L.const || (N = e.value) != null && N.enum && e.value.enum.length === 1 ? (r(), n("div", E, [
74
- v(o, { truncate: "" }, {
75
- prefix: t(() => l[4] || (l[4] = [
72
+ ])) : t("", !0),
73
+ (k = e.value) != null && k.const || (g = e.value) != null && g.enum && e.value.enum.length === 1 ? (r(), n("div", T, [
74
+ s(o, { truncate: "" }, {
75
+ prefix: a(() => l[4] || (l[4] = [
76
76
  u("const:")
77
77
  ])),
78
- default: t(() => [
78
+ default: a(() => [
79
79
  u(" " + i(e.value.const ?? e.value.enum[0]), 1)
80
80
  ]),
81
81
  _: 1
82
82
  })
83
- ])) : (O = e.value) != null && O.type ? (r(), n(m, { key: 5 }, [
84
- v(o, null, {
85
- default: t(() => {
86
- var s, p, y;
83
+ ])) : (B = e.value) != null && B.type ? (r(), n(m, { key: 5 }, [
84
+ s(o, null, {
85
+ default: a(() => {
86
+ var P, S, b;
87
87
  return [
88
- v(k, null, {
89
- default: t(() => l[5] || (l[5] = [
88
+ s(p, null, {
89
+ default: a(() => l[5] || (l[5] = [
90
90
  u("Type:")
91
91
  ])),
92
92
  _: 1
93
93
  }),
94
- (p = (s = e.value) == null ? void 0 : s.items) != null && p.type ? (r(), n(m, { key: 0 }, [
94
+ (S = (P = e.value) == null ? void 0 : P.items) != null && S.type ? (r(), n(m, { key: 0 }, [
95
95
  u(i(e.value.type) + " " + i(e.value.items.type) + "[] ", 1)
96
96
  ], 64)) : (r(), n(m, { key: 1 }, [
97
- u(i(Array.isArray(e.value.type) ? e.value.type.join(" | ") : e.value.type) + " " + i((y = e.value) != null && y.nullable ? " | nullable" : ""), 1)
97
+ u(i(Array.isArray(e.value.type) ? e.value.type.join(" | ") : e.value.type) + " " + i((b = e.value) != null && b.nullable ? " | nullable" : ""), 1)
98
98
  ], 64)),
99
99
  e.value.minItems || e.value.maxItems ? (r(), n(m, { key: 2 }, [
100
100
  u(i(e.value.minItems) + "…" + i(e.value.maxItems), 1)
101
- ], 64)) : a("", !0)
101
+ ], 64)) : t("", !0)
102
102
  ];
103
103
  }),
104
104
  _: 1
105
105
  }),
106
106
  e.value.minLength ? (r(), d(o, { key: 0 }, {
107
- prefix: t(() => l[6] || (l[6] = [
107
+ prefix: a(() => l[6] || (l[6] = [
108
108
  u("min:")
109
109
  ])),
110
- default: t(() => [
110
+ default: a(() => [
111
111
  u(" " + i(e.value.minLength), 1)
112
112
  ]),
113
113
  _: 1
114
- })) : a("", !0),
114
+ })) : t("", !0),
115
115
  e.value.maxLength ? (r(), d(o, { key: 1 }, {
116
- prefix: t(() => l[7] || (l[7] = [
116
+ prefix: a(() => l[7] || (l[7] = [
117
117
  u("max:")
118
118
  ])),
119
- default: t(() => [
119
+ default: a(() => [
120
120
  u(" " + i(e.value.maxLength), 1)
121
121
  ]),
122
122
  _: 1
123
- })) : a("", !0),
123
+ })) : t("", !0),
124
124
  e.value.uniqueItems ? (r(), d(o, { key: 2 }, {
125
- default: t(() => l[8] || (l[8] = [
125
+ default: a(() => l[8] || (l[8] = [
126
126
  u(" unique! ")
127
127
  ])),
128
128
  _: 1
129
- })) : a("", !0),
129
+ })) : t("", !0),
130
130
  e.value.format ? (r(), d(o, { key: 3 }, {
131
- default: t(() => [
132
- v(k, null, {
133
- default: t(() => l[9] || (l[9] = [
131
+ default: a(() => [
132
+ s(p, null, {
133
+ default: a(() => l[9] || (l[9] = [
134
134
  u("Format:")
135
135
  ])),
136
136
  _: 1
@@ -138,51 +138,51 @@ const F = { class: "property-heading" }, T = {
138
138
  u(" " + i(e.value.format), 1)
139
139
  ]),
140
140
  _: 1
141
- })) : a("", !0),
141
+ })) : t("", !0),
142
142
  e.value.minimum !== void 0 && e.value.exclusiveMinimum ? (r(), d(o, { key: 4 }, {
143
- prefix: t(() => l[10] || (l[10] = [
143
+ prefix: a(() => l[10] || (l[10] = [
144
144
  u("greater than:")
145
145
  ])),
146
- default: t(() => [
146
+ default: a(() => [
147
147
  u(" " + i(e.value.minimum), 1)
148
148
  ]),
149
149
  _: 1
150
- })) : a("", !0),
150
+ })) : t("", !0),
151
151
  e.value.minimum !== void 0 && !e.value.exclusiveMinimum ? (r(), d(o, { key: 5 }, {
152
- prefix: t(() => l[11] || (l[11] = [
152
+ prefix: a(() => l[11] || (l[11] = [
153
153
  u("min:")
154
154
  ])),
155
- default: t(() => [
155
+ default: a(() => [
156
156
  u(" " + i(e.value.minimum), 1)
157
157
  ]),
158
158
  _: 1
159
- })) : a("", !0),
159
+ })) : t("", !0),
160
160
  e.value.maximum !== void 0 && e.value.exclusiveMaximum ? (r(), d(o, { key: 6 }, {
161
- prefix: t(() => l[12] || (l[12] = [
161
+ prefix: a(() => l[12] || (l[12] = [
162
162
  u("less than:")
163
163
  ])),
164
- default: t(() => [
164
+ default: a(() => [
165
165
  u(" " + i(e.value.maximum), 1)
166
166
  ]),
167
167
  _: 1
168
- })) : a("", !0),
168
+ })) : t("", !0),
169
169
  e.value.maximum !== void 0 && !e.value.exclusiveMaximum ? (r(), d(o, { key: 7 }, {
170
- prefix: t(() => l[13] || (l[13] = [
170
+ prefix: a(() => l[13] || (l[13] = [
171
171
  u("max:")
172
172
  ])),
173
- default: t(() => [
173
+ default: a(() => [
174
174
  u(" " + i(e.value.maximum), 1)
175
175
  ]),
176
176
  _: 1
177
- })) : a("", !0),
177
+ })) : t("", !0),
178
178
  e.value.pattern ? (r(), d(o, {
179
179
  key: 8,
180
180
  code: "",
181
181
  truncate: ""
182
182
  }, {
183
- default: t(() => [
184
- v(k, null, {
185
- default: t(() => l[14] || (l[14] = [
183
+ default: a(() => [
184
+ s(p, null, {
185
+ default: a(() => l[14] || (l[14] = [
186
186
  u("Pattern:")
187
187
  ])),
188
188
  _: 1
@@ -190,55 +190,39 @@ const F = { class: "property-heading" }, T = {
190
190
  u(" " + i(e.value.pattern), 1)
191
191
  ]),
192
192
  _: 1
193
- })) : a("", !0),
193
+ })) : t("", !0),
194
194
  e.$props.enum ? (r(), d(o, { key: 9 }, {
195
- default: t(() => l[15] || (l[15] = [
195
+ default: a(() => l[15] || (l[15] = [
196
196
  u("enum")
197
197
  ])),
198
198
  _: 1
199
- })) : a("", !0),
199
+ })) : t("", !0),
200
200
  e.value.default !== void 0 ? (r(), d(o, {
201
201
  key: 10,
202
202
  truncate: ""
203
203
  }, {
204
- prefix: t(() => l[16] || (l[16] = [
204
+ prefix: a(() => l[16] || (l[16] = [
205
205
  u("default:")
206
206
  ])),
207
- default: t(() => [
208
- u(" " + i(M(e.value)), 1)
207
+ default: a(() => [
208
+ u(" " + i(L(e.value)), 1)
209
209
  ]),
210
210
  _: 1
211
- })) : a("", !0)
211
+ })) : t("", !0)
212
212
  ], 64)) : (r(), n(m, { key: 6 }, [
213
- ((P = e.value) == null ? void 0 : P.nullable) === !0 ? (r(), d(o, { key: 0 }, {
214
- default: t(() => l[17] || (l[17] = [
213
+ ((q = e.value) == null ? void 0 : q.nullable) === !0 ? (r(), d(o, { key: 0 }, {
214
+ default: a(() => l[17] || (l[17] = [
215
215
  u(" nullable ")
216
216
  ])),
217
217
  _: 1
218
- })) : a("", !0)
218
+ })) : t("", !0)
219
219
  ], 64)),
220
- (S = e.value) != null && S.writeOnly ? (r(), n("div", H, " write-only ")) : (b = e.value) != null && b.readOnly ? (r(), n("div", R, " read-only ")) : a("", !0),
221
- (r(!0), n(m, null, D(C.filter(
222
- (s) => {
223
- var p, y, w;
224
- return ((p = e.value) == null ? void 0 : p[s]) || ((w = (y = e.value) == null ? void 0 : y.items) == null ? void 0 : w[s]);
225
- }
226
- ), (s) => {
227
- var p, y;
228
- return r(), n(m, { key: s }, [
229
- ((y = (p = e.value) == null ? void 0 : p[s]) == null ? void 0 : y.length) > 1 ? (r(), d(f(g), { key: 0 }, {
230
- default: t(() => [
231
- u(i(s), 1)
232
- ]),
233
- _: 2
234
- }, 1024)) : a("", !0)
235
- ], 64);
236
- }), 128)),
237
- e.required ? (r(), n("div", G, " required ")) : a("", !0)
220
+ (I = e.value) != null && I.writeOnly ? (r(), n("div", j, " write-only ")) : (N = e.value) != null && N.readOnly ? (r(), n("div", z, " read-only ")) : t("", !0),
221
+ e.required ? (r(), n("div", E, " required ")) : t("", !0)
238
222
  ]);
239
223
  };
240
224
  }
241
225
  });
242
226
  export {
243
- X as default
227
+ Q as default
244
228
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./OperationsList.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5153ba3b"]]);
4
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-324fe114"]]);
5
5
  export {
6
- s as default
6
+ a as default
7
7
  };
@@ -44,11 +44,11 @@ const h = ["aria-label"], T = /* @__PURE__ */ f({
44
44
  }, [
45
45
  (a(!0), k(y, null, O(e.tag.operations, (m) => (a(), p(v, {
46
46
  key: t(u)(m, e.tag),
47
+ collection: e.collection,
47
48
  isCollapsed: e.isCollapsed,
48
49
  tag: e.tag,
49
- transformedOperation: m,
50
- collection: e.collection
51
- }, null, 8, ["isCollapsed", "tag", "transformedOperation", "collection"]))), 128))
50
+ transformedOperation: m
51
+ }, null, 8, ["collection", "isCollapsed", "tag", "transformedOperation"]))), 128))
52
52
  ], 8, h)
53
53
  ]),
54
54
  _: 1
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Tag.vue"],"names":[],"mappings":"AAmEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAmB/C,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,GAAG,CAAA;IACR,UAAU,EAAE,UAAU,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AA2JF,wBAOG"}
1
+ {"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Tag.vue"],"names":[],"mappings":"AAqEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAoB/C,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,GAAG,CAAA;IACR,UAAU,EAAE,UAAU,CAAA;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AA8JF,wBAOG"}
@@ -1,16 +1,17 @@
1
- import { defineComponent as s, computed as c, openBlock as n, createBlock as i, unref as e, withCtx as t, createVNode as l, createTextVNode as d, toDisplayString as g, createCommentVNode as C } from "vue";
2
- import { ScalarMarkdown as S } from "@scalar/components";
3
- import v from "../../ScreenReader.vue.js";
4
- import { useNavState as N } from "../../../hooks/useNavState.js";
5
- import h from "./OperationsList.vue.js";
6
- import k from "../../Section/Section.vue.js";
7
- import y from "../../Section/SectionHeader.vue.js";
8
- import I from "../../Anchor/Anchor.vue.js";
9
- import T from "../../Section/SectionHeaderTag.vue.js";
10
- import _ from "../../Section/SectionContent.vue.js";
11
- import w from "../../Section/SectionColumns.vue.js";
12
- import m from "../../Section/SectionColumn.vue.js";
13
- const q = /* @__PURE__ */ s({
1
+ import { defineComponent as c, computed as g, openBlock as n, createBlock as d, unref as e, withCtx as t, withDirectives as C, createVNode as a, createTextVNode as m, toDisplayString as S, createCommentVNode as v, vShow as h } from "vue";
2
+ import { ScalarMarkdown as w } from "@scalar/components";
3
+ import N from "../../ScreenReader.vue.js";
4
+ import { useConfig as k } from "../../../hooks/useConfig.js";
5
+ import { useNavState as y } from "../../../hooks/useNavState.js";
6
+ import I from "./OperationsList.vue.js";
7
+ import T from "../../Section/Section.vue.js";
8
+ import _ from "../../Section/SectionHeader.vue.js";
9
+ import B from "../../Anchor/Anchor.vue.js";
10
+ import L from "../../Section/SectionHeaderTag.vue.js";
11
+ import V from "../../Section/SectionContent.vue.js";
12
+ import b from "../../Section/SectionColumns.vue.js";
13
+ import p from "../../Section/SectionColumn.vue.js";
14
+ const J = /* @__PURE__ */ c({
14
15
  __name: "Tag",
15
16
  props: {
16
17
  id: {},
@@ -19,32 +20,32 @@ const q = /* @__PURE__ */ s({
19
20
  headerId: {},
20
21
  isCollapsed: { type: Boolean }
21
22
  },
22
- setup(p) {
23
- const a = p, { getTagId: u } = N(), f = c(() => a.tag["x-displayName"] ?? a.tag.name);
24
- return (o, r) => (n(), i(e(k), {
23
+ setup(s) {
24
+ const l = s, { getTagId: f } = y(), i = k(), u = g(() => l.tag["x-displayName"] ?? l.tag.name);
25
+ return (o, r) => (n(), d(e(T), {
25
26
  id: o.id,
26
27
  label: o.tag.name.toUpperCase(),
27
28
  role: "none"
28
29
  }, {
29
30
  default: t(() => [
30
- l(e(y), null, {
31
+ C(a(e(_), null, {
31
32
  default: t(() => [
32
- l(e(I), {
33
- id: e(u)(o.tag)
33
+ a(e(B), {
34
+ id: e(f)(o.tag)
34
35
  }, {
35
36
  default: t(() => [
36
- l(e(T), {
37
+ a(e(L), {
37
38
  id: o.headerId,
38
39
  level: 2
39
40
  }, {
40
41
  default: t(() => [
41
- d(g(f.value) + " ", 1),
42
- o.isCollapsed ? (n(), i(v, { key: 0 }, {
42
+ m(S(u.value) + " ", 1),
43
+ o.isCollapsed ? (n(), d(N, { key: 0 }, {
43
44
  default: t(() => r[0] || (r[0] = [
44
- d(" (Collapsed)")
45
+ m(" (Collapsed)")
45
46
  ])),
46
47
  _: 1
47
- })) : C("", !0)
48
+ })) : v("", !0)
48
49
  ]),
49
50
  _: 1
50
51
  }, 8, ["id"])
@@ -53,14 +54,18 @@ const q = /* @__PURE__ */ s({
53
54
  }, 8, ["id"])
54
55
  ]),
55
56
  _: 1
56
- }),
57
- l(e(_), null, {
57
+ }, 512), [
58
+ [h, !e(i).isLoading]
59
+ ]),
60
+ a(e(V), {
61
+ loading: e(i).isLoading
62
+ }, {
58
63
  default: t(() => [
59
- l(e(w), null, {
64
+ a(e(b), null, {
60
65
  default: t(() => [
61
- l(e(m), null, {
66
+ a(e(p), null, {
62
67
  default: t(() => [
63
- l(e(S), {
68
+ a(e(w), {
64
69
  clamp: o.isCollapsed ? "7" : !1,
65
70
  value: o.tag.description,
66
71
  withImages: ""
@@ -68,12 +73,12 @@ const q = /* @__PURE__ */ s({
68
73
  ]),
69
74
  _: 1
70
75
  }),
71
- l(e(m), null, {
76
+ a(e(p), null, {
72
77
  default: t(() => [
73
- l(h, {
74
- tag: o.tag,
75
- collection: o.collection
76
- }, null, 8, ["tag", "collection"])
78
+ a(I, {
79
+ collection: o.collection,
80
+ tag: o.tag
81
+ }, null, 8, ["collection", "tag"])
77
82
  ]),
78
83
  _: 1
79
84
  })
@@ -82,12 +87,12 @@ const q = /* @__PURE__ */ s({
82
87
  })
83
88
  ]),
84
89
  _: 1
85
- })
90
+ }, 8, ["loading"])
86
91
  ]),
87
92
  _: 1
88
93
  }, 8, ["id", "label"]));
89
94
  }
90
95
  });
91
96
  export {
92
- q as default
97
+ J as default
93
98
  };
@@ -1,4 +1,5 @@
1
1
  import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
2
+ import type { OpenAPIV2, OpenAPIV3, OpenAPIV3_1 } from '@scalar/openapi-types';
2
3
  import type { Spec, Tag as TagType } from '@scalar/types/legacy';
3
4
  type __VLS_Props = {
4
5
  collection: Collection;
@@ -6,6 +7,7 @@ type __VLS_Props = {
6
7
  spec: Spec;
7
8
  layout?: 'modern' | 'classic';
8
9
  server?: Server;
10
+ schemas?: OpenAPIV2.DefinitionsObject | Record<string, OpenAPIV3.SchemaObject> | Record<string, OpenAPIV3_1.SchemaObject> | unknown;
9
11
  };
10
12
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
13
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"TagList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagList.vue"],"names":[],"mappings":"AA6EA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAYhE,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,IAAI,EAAE,OAAO,EAAE,CAAA;IACf,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAC;;AA+HF,wBAMG"}
1
+ {"version":3,"file":"TagList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagList.vue"],"names":[],"mappings":"AAoFA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAYhE,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,UAAU,CAAA;IACtB,IAAI,EAAE,OAAO,EAAE,CAAA;IACf,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,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;CACZ,CAAC;;AA+HF,wBAMG"}
@@ -1,11 +1,11 @@
1
- import { defineComponent as S, computed as f, openBlock as l, createElementBlock as p, Fragment as y, renderList as v, createBlock as s, unref as e, withCtx as i, resolveDynamicComponent as B, createVNode as L } from "vue";
1
+ import { defineComponent as S, computed as f, openBlock as s, createElementBlock as p, Fragment as y, renderList as h, createBlock as i, unref as o, withCtx as l, resolveDynamicComponent as B, createVNode as v } from "vue";
2
2
  import { ScalarErrorBoundary as T } from "@scalar/components";
3
- import _ from "./TagAccordion.vue.js";
4
- import $ from "./TagSection.vue.js";
5
- import h from "../Lazy/Lazy.vue2.js";
6
- import b from "../../../features/Operation/Operation.vue.js";
7
- import { useNavState as C } from "../../../hooks/useNavState.js";
8
- import { useSidebar as O } from "../../../hooks/useSidebar.js";
3
+ import $ from "./TagAccordion.vue.js";
4
+ import b from "./TagSection.vue.js";
5
+ import L from "../Lazy/Lazy.vue2.js";
6
+ import C from "../../../features/Operation/Operation.vue.js";
7
+ import { useNavState as O } from "../../../hooks/useNavState.js";
8
+ import { useSidebar as _ } from "../../../hooks/useSidebar.js";
9
9
  const q = /* @__PURE__ */ S({
10
10
  __name: "TagList",
11
11
  props: {
@@ -13,42 +13,44 @@ const q = /* @__PURE__ */ S({
13
13
  tags: {},
14
14
  spec: {},
15
15
  layout: {},
16
- server: {}
16
+ server: {},
17
+ schemas: {}
17
18
  },
18
- setup(n) {
19
- const { getOperationId: c, getTagId: r, hash: z } = C(), { collapsedSidebarItems: u } = O(), I = f(
20
- () => n.layout === "classic" ? _ : $
19
+ setup(c) {
20
+ const { getOperationId: n, getTagId: r, hash: z } = O(), { collapsedSidebarItems: m } = _(), I = f(
21
+ () => c.layout === "classic" ? $ : b
21
22
  ), g = f(
22
- () => n.tags.findIndex((o) => !u[r(o)]) + 1
23
- ), d = (o) => n.layout !== "classic" && !z.value.startsWith("model") && o > g.value;
24
- return (o, E) => (l(!0), p(y, null, v(o.tags, (t, m) => (l(), s(e(h), {
25
- id: e(r)(t),
26
- key: e(r)(t),
27
- isLazy: d(m)
23
+ () => c.tags.findIndex((e) => !m[r(e)]) + 1
24
+ ), u = (e) => c.layout !== "classic" && !z.value.startsWith("model") && e > g.value;
25
+ return (e, E) => (s(!0), p(y, null, h(e.tags, (t, d) => (s(), i(o(L), {
26
+ id: o(r)(t),
27
+ key: o(r)(t),
28
+ isLazy: u(d)
28
29
  }, {
29
- default: i(() => [
30
- (l(), s(B(I.value), {
31
- id: e(r)(t),
32
- spec: o.spec,
33
- collection: o.collection,
30
+ default: l(() => [
31
+ (s(), i(B(I.value), {
32
+ id: o(r)(t),
33
+ collection: e.collection,
34
+ spec: e.spec,
34
35
  tag: t
35
36
  }, {
36
- default: i(() => [
37
- (l(!0), p(y, null, v(t.operations, (a, k) => (l(), s(e(h), {
38
- id: e(c)(a, t),
37
+ default: l(() => [
38
+ (s(!0), p(y, null, h(t.operations, (a, k) => (s(), i(o(L), {
39
+ id: o(n)(a, t),
39
40
  key: `${a.httpVerb}-${a.operationId}`,
40
- isLazy: d(m) || e(u)[e(r)(t)] && k > 0
41
+ isLazy: u(d) || o(m)[o(r)(t)] && k > 0
41
42
  }, {
42
- default: i(() => [
43
- L(e(T), null, {
44
- default: i(() => [
45
- L(e(b), {
46
- id: e(c)(a, t),
47
- collection: o.collection,
48
- layout: o.layout,
49
- server: o.server,
43
+ default: l(() => [
44
+ v(o(T), null, {
45
+ default: l(() => [
46
+ v(o(C), {
47
+ id: o(n)(a, t),
48
+ collection: e.collection,
49
+ layout: e.layout,
50
+ schemas: e.schemas,
51
+ server: e.server,
50
52
  transformedOperation: a
51
- }, null, 8, ["id", "collection", "layout", "server", "transformedOperation"])
53
+ }, null, 8, ["id", "collection", "layout", "schemas", "server", "transformedOperation"])
52
54
  ]),
53
55
  _: 2
54
56
  }, 1024)
@@ -57,7 +59,7 @@ const q = /* @__PURE__ */ S({
57
59
  }, 1032, ["id", "isLazy"]))), 128))
58
60
  ]),
59
61
  _: 2
60
- }, 1032, ["id", "spec", "collection", "tag"]))
62
+ }, 1032, ["id", "collection", "spec", "tag"]))
61
63
  ]),
62
64
  _: 2
63
65
  }, 1032, ["id", "isLazy"]))), 128));
@@ -1,7 +1,7 @@
1
1
  import o from "./TagSection.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-33787099"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e5f682e5"]]);
5
5
  export {
6
- p as default
6
+ f as default
7
7
  };
@@ -39,11 +39,11 @@ const M = /* @__PURE__ */ k({
39
39
  g.value ? (n(), l(w, {
40
40
  key: 0,
41
41
  id: e.id,
42
+ collection: e.collection,
42
43
  headerId: o(i),
43
44
  isCollapsed: !o(s)[o(c)(e.tag)],
44
- tag: e.tag,
45
- collection: e.collection
46
- }, null, 8, ["id", "headerId", "isCollapsed", "tag", "collection"])) : b("", !0),
45
+ tag: e.tag
46
+ }, null, 8, ["id", "collection", "headerId", "isCollapsed", "tag"])) : b("", !0),
47
47
  !o(s)[o(c)(e.tag)] && d.value ? (n(), l(I, {
48
48
  key: 1,
49
49
  id: e.id ?? "",