@scalar/api-reference 1.28.8 → 1.28.10

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 (42) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/dist/browser/standalone.js +6124 -6035
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  5. package/dist/components/ApiReferenceLayout.vue2.js +1 -1
  6. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  7. package/dist/components/Content/Models/Models.vue.js +2 -2
  8. package/dist/components/Content/Schema/Schema.vue.d.ts.map +1 -1
  9. package/dist/components/Content/Schema/Schema.vue.js +4 -4
  10. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  11. package/dist/components/Content/Schema/SchemaProperty.vue.js +1 -1
  12. package/dist/components/Content/Schema/SchemaProperty.vue2.js +96 -114
  13. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts +8 -0
  14. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.d.ts.map +1 -0
  15. package/dist/components/Content/Schema/SchemaPropertyExamples.vue.js +7 -0
  16. package/dist/components/Content/Schema/SchemaPropertyExamples.vue2.js +71 -0
  17. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts +2 -0
  18. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  19. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
  20. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +139 -130
  21. package/dist/components/GettingStarted.vue.js +1 -1
  22. package/dist/components/GettingStarted.vue2.js +25 -25
  23. package/dist/components/Sidebar/SidebarElement.vue.js +1 -1
  24. package/dist/components/Sidebar/SidebarElement.vue2.js +1 -1
  25. package/dist/components/SingleApiReference.vue.d.ts +1 -1
  26. package/dist/components/SingleApiReference.vue.d.ts.map +1 -1
  27. package/dist/features/ApiClientModal/useApiClient.d.ts +1374 -1004
  28. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  29. package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
  30. package/dist/features/ExampleResponses/ExampleResponses.vue.js +2 -2
  31. package/dist/features/ExampleResponses/ExampleResponses.vue2.js +86 -85
  32. package/dist/helpers/get-request.d.ts +4 -4
  33. package/dist/helpers/get-request.d.ts.map +1 -1
  34. package/dist/hooks/useMultipleDocuments.d.ts +24 -22
  35. package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
  36. package/dist/hooks/useMultipleDocuments.js +53 -51
  37. package/dist/hooks/useReactiveSpec.d.ts +220 -3
  38. package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
  39. package/dist/hooks/useReactiveSpec.js +30 -28
  40. package/dist/index.js +1 -1
  41. package/dist/style.css +1 -1
  42. package/package.json +9 -9
@@ -1,228 +1,237 @@
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";
1
+ import { defineComponent as F, openBlock as r, createElementBlock as i, normalizeClass as O, renderSlot as V, Fragment as d, createTextVNode as a, createCommentVNode as u, toDisplayString as n, createVNode as s, unref as y, withCtx as t, createBlock as m } from "vue";
2
+ import { discriminators as z } from "./helpers/optimizeValueForDisplay.js";
3
+ import H from "./SchemaPropertyExamples.vue.js";
4
+ import v from "../../ScreenReader.vue.js";
3
5
  import o from "./SchemaPropertyDetail.vue.js";
4
- import C from "../../Badge/Badge.vue.js";
5
- const $ = { class: "property-heading" }, D = {
6
+ import $ from "../../Badge/Badge.vue.js";
7
+ const R = { class: "property-heading" }, G = {
6
8
  key: 1,
7
9
  class: "property-additional"
8
- }, F = {
10
+ }, J = {
9
11
  key: 2,
10
12
  class: "property-pattern"
11
- }, O = {
13
+ }, K = {
12
14
  key: 3,
13
15
  class: "property-deprecated"
14
- }, T = {
16
+ }, Q = {
15
17
  key: 4,
16
18
  class: "property-const"
17
- }, j = {
19
+ }, U = {
18
20
  key: 7,
19
21
  class: "property-write-only"
20
- }, z = {
22
+ }, W = {
21
23
  key: 8,
22
24
  class: "property-read-only"
23
- }, E = {
25
+ }, X = {
24
26
  key: 9,
25
27
  class: "property-required"
26
- }, Q = /* @__PURE__ */ M({
28
+ }, ee = /* @__PURE__ */ F({
27
29
  __name: "SchemaPropertyHeading",
28
30
  props: {
29
31
  value: {},
30
32
  enum: { type: Boolean },
31
33
  required: { type: Boolean, default: !1 },
32
34
  additional: { type: Boolean },
33
- pattern: { type: Boolean }
35
+ pattern: { type: Boolean },
36
+ withExamples: { type: Boolean, default: !0 }
34
37
  },
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;
38
+ setup(j) {
39
+ const p = j, D = z.find((e) => !p.value || typeof p.value != "object" ? !1 : e in p.value || p.value.items && typeof p.value.items == "object" && e in p.value.items), T = (e) => Array.isArray(e == null ? void 0 : e.default) && e.default.length === 1 ? e.default[0] : e == null ? void 0 : e.default;
37
40
  return (e, l) => {
38
- var y, v, f, k, g, B, q, I, N;
39
- return r(), n("div", $, [
40
- e.$slots.name ? (r(), n("div", {
41
+ var f, k, g, B, b, q, w, P, S, I, N, A, C;
42
+ return r(), i("div", R, [
43
+ e.$slots.name ? (r(), i("div", {
41
44
  key: 0,
42
- class: V(["property-name", { deprecated: (y = e.value) == null ? void 0 : y.deprecated }])
45
+ class: O(["property-name", { deprecated: (f = e.value) == null ? void 0 : f.deprecated }])
43
46
  }, [
44
- e.pattern ? (r(), n(m, { key: 1 }, [
45
- l[0] || (l[0] = u("/")),
46
- w(e.$slots, "name", {}, void 0, !0),
47
- l[1] || (l[1] = u("/"))
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
- u(i(e.value["x-additionalPropertiesName"]), 1)
53
- ], 64)) : (r(), n(m, { key: 1 }, [
54
- u("additional properties")
47
+ e.pattern ? (r(), i(d, { key: 1 }, [
48
+ l[0] || (l[0] = a("/")),
49
+ V(e.$slots, "name", {}, void 0, !0),
50
+ l[1] || (l[1] = a("/"))
51
+ ], 64)) : V(e.$slots, "name", { key: 0 }, void 0, !0)
52
+ ], 2)) : u("", !0),
53
+ e.additional ? (r(), i("div", G, [
54
+ (k = e.value) != null && k["x-additionalPropertiesName"] ? (r(), i(d, { key: 0 }, [
55
+ a(n(e.value["x-additionalPropertiesName"]), 1)
56
+ ], 64)) : (r(), i(d, { key: 1 }, [
57
+ a("additional properties")
55
58
  ], 64))
56
- ])) : t("", !0),
57
- e.pattern ? (r(), n("div", F, [
58
- s(A(C), null, {
59
- default: a(() => l[2] || (l[2] = [
60
- u("pattern")
59
+ ])) : u("", !0),
60
+ e.pattern ? (r(), i("div", J, [
61
+ s(y($), null, {
62
+ default: t(() => l[2] || (l[2] = [
63
+ a("pattern")
61
64
  ])),
62
65
  _: 1
63
66
  })
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
- u("deprecated")
67
+ ])) : u("", !0),
68
+ (g = e.value) != null && g.deprecated ? (r(), i("div", K, [
69
+ s(y($), null, {
70
+ default: t(() => l[3] || (l[3] = [
71
+ a("deprecated")
69
72
  ])),
70
73
  _: 1
71
74
  })
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, [
75
+ ])) : u("", !0),
76
+ (B = e.value) != null && B.const || (b = e.value) != null && b.enum && e.value.enum.length === 1 ? (r(), i("div", Q, [
74
77
  s(o, { truncate: "" }, {
75
- prefix: a(() => l[4] || (l[4] = [
76
- u("const:")
78
+ prefix: t(() => l[4] || (l[4] = [
79
+ a("const:")
77
80
  ])),
78
- default: a(() => [
79
- u(" " + i(e.value.const ?? e.value.enum[0]), 1)
81
+ default: t(() => [
82
+ a(" " + n(e.value.const ?? e.value.enum[0]), 1)
80
83
  ]),
81
84
  _: 1
82
85
  })
83
- ])) : (B = e.value) != null && B.type ? (r(), n(m, { key: 5 }, [
86
+ ])) : (q = e.value) != null && q.type ? (r(), i(d, { key: 5 }, [
84
87
  s(o, null, {
85
- default: a(() => {
86
- var P, S, b;
88
+ default: t(() => {
89
+ var E, L, M;
87
90
  return [
88
- s(p, null, {
89
- default: a(() => l[5] || (l[5] = [
90
- u("Type:")
91
+ s(v, null, {
92
+ default: t(() => l[5] || (l[5] = [
93
+ a("Type:")
91
94
  ])),
92
95
  _: 1
93
96
  }),
94
- (S = (P = e.value) == null ? void 0 : P.items) != null && S.type ? (r(), n(m, { key: 0 }, [
95
- u(i(e.value.type) + " " + i(e.value.items.type) + "[] ", 1)
96
- ], 64)) : (r(), n(m, { key: 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)
97
+ (L = (E = e.value) == null ? void 0 : E.items) != null && L.type ? (r(), i(d, { key: 0 }, [
98
+ a(n(e.value.type) + " " + n(e.value.items.type) + "[] ", 1)
99
+ ], 64)) : (r(), i(d, { key: 1 }, [
100
+ a(n(Array.isArray(e.value.type) ? e.value.type.join(" | ") : e.value.type) + " " + n((M = e.value) != null && M.nullable ? " | nullable" : ""), 1)
98
101
  ], 64)),
99
- e.value.minItems || e.value.maxItems ? (r(), n(m, { key: 2 }, [
100
- u(i(e.value.minItems) + "…" + i(e.value.maxItems), 1)
101
- ], 64)) : t("", !0)
102
+ e.value.minItems || e.value.maxItems ? (r(), i(d, { key: 2 }, [
103
+ a(n(e.value.minItems) + "…" + n(e.value.maxItems), 1)
104
+ ], 64)) : u("", !0)
102
105
  ];
103
106
  }),
104
107
  _: 1
105
108
  }),
106
- e.value.minLength ? (r(), d(o, { key: 0 }, {
107
- prefix: a(() => l[6] || (l[6] = [
108
- u("min:")
109
+ e.value.minLength ? (r(), m(o, { key: 0 }, {
110
+ prefix: t(() => l[6] || (l[6] = [
111
+ a("min:")
109
112
  ])),
110
- default: a(() => [
111
- u(" " + i(e.value.minLength), 1)
113
+ default: t(() => [
114
+ a(" " + n(e.value.minLength), 1)
112
115
  ]),
113
116
  _: 1
114
- })) : t("", !0),
115
- e.value.maxLength ? (r(), d(o, { key: 1 }, {
116
- prefix: a(() => l[7] || (l[7] = [
117
- u("max:")
117
+ })) : u("", !0),
118
+ e.value.maxLength ? (r(), m(o, { key: 1 }, {
119
+ prefix: t(() => l[7] || (l[7] = [
120
+ a("max:")
118
121
  ])),
119
- default: a(() => [
120
- u(" " + i(e.value.maxLength), 1)
122
+ default: t(() => [
123
+ a(" " + n(e.value.maxLength), 1)
121
124
  ]),
122
125
  _: 1
123
- })) : t("", !0),
124
- e.value.uniqueItems ? (r(), d(o, { key: 2 }, {
125
- default: a(() => l[8] || (l[8] = [
126
- u(" unique! ")
126
+ })) : u("", !0),
127
+ e.value.uniqueItems ? (r(), m(o, { key: 2 }, {
128
+ default: t(() => l[8] || (l[8] = [
129
+ a(" unique! ")
127
130
  ])),
128
131
  _: 1
129
- })) : t("", !0),
130
- e.value.format ? (r(), d(o, { key: 3 }, {
131
- default: a(() => [
132
- s(p, null, {
133
- default: a(() => l[9] || (l[9] = [
134
- u("Format:")
132
+ })) : u("", !0),
133
+ e.value.format ? (r(), m(o, { key: 3 }, {
134
+ default: t(() => [
135
+ s(v, null, {
136
+ default: t(() => l[9] || (l[9] = [
137
+ a("Format:")
135
138
  ])),
136
139
  _: 1
137
140
  }),
138
- u(" " + i(e.value.format), 1)
141
+ a(" " + n(e.value.format), 1)
139
142
  ]),
140
143
  _: 1
141
- })) : t("", !0),
142
- e.value.minimum !== void 0 && e.value.exclusiveMinimum ? (r(), d(o, { key: 4 }, {
143
- prefix: a(() => l[10] || (l[10] = [
144
- u("greater than:")
144
+ })) : u("", !0),
145
+ e.value.minimum !== void 0 && e.value.exclusiveMinimum ? (r(), m(o, { key: 4 }, {
146
+ prefix: t(() => l[10] || (l[10] = [
147
+ a("greater than:")
145
148
  ])),
146
- default: a(() => [
147
- u(" " + i(e.value.minimum), 1)
149
+ default: t(() => [
150
+ a(" " + n(e.value.minimum), 1)
148
151
  ]),
149
152
  _: 1
150
- })) : t("", !0),
151
- e.value.minimum !== void 0 && !e.value.exclusiveMinimum ? (r(), d(o, { key: 5 }, {
152
- prefix: a(() => l[11] || (l[11] = [
153
- u("min:")
153
+ })) : u("", !0),
154
+ e.value.minimum !== void 0 && !e.value.exclusiveMinimum ? (r(), m(o, { key: 5 }, {
155
+ prefix: t(() => l[11] || (l[11] = [
156
+ a("min:")
154
157
  ])),
155
- default: a(() => [
156
- u(" " + i(e.value.minimum), 1)
158
+ default: t(() => [
159
+ a(" " + n(e.value.minimum), 1)
157
160
  ]),
158
161
  _: 1
159
- })) : t("", !0),
160
- e.value.maximum !== void 0 && e.value.exclusiveMaximum ? (r(), d(o, { key: 6 }, {
161
- prefix: a(() => l[12] || (l[12] = [
162
- u("less than:")
162
+ })) : u("", !0),
163
+ e.value.maximum !== void 0 && e.value.exclusiveMaximum ? (r(), m(o, { key: 6 }, {
164
+ prefix: t(() => l[12] || (l[12] = [
165
+ a("less than:")
163
166
  ])),
164
- default: a(() => [
165
- u(" " + i(e.value.maximum), 1)
167
+ default: t(() => [
168
+ a(" " + n(e.value.maximum), 1)
166
169
  ]),
167
170
  _: 1
168
- })) : t("", !0),
169
- e.value.maximum !== void 0 && !e.value.exclusiveMaximum ? (r(), d(o, { key: 7 }, {
170
- prefix: a(() => l[13] || (l[13] = [
171
- u("max:")
171
+ })) : u("", !0),
172
+ e.value.maximum !== void 0 && !e.value.exclusiveMaximum ? (r(), m(o, { key: 7 }, {
173
+ prefix: t(() => l[13] || (l[13] = [
174
+ a("max:")
172
175
  ])),
173
- default: a(() => [
174
- u(" " + i(e.value.maximum), 1)
176
+ default: t(() => [
177
+ a(" " + n(e.value.maximum), 1)
175
178
  ]),
176
179
  _: 1
177
- })) : t("", !0),
178
- e.value.pattern ? (r(), d(o, {
180
+ })) : u("", !0),
181
+ e.value.pattern ? (r(), m(o, {
179
182
  key: 8,
180
183
  code: "",
181
184
  truncate: ""
182
185
  }, {
183
- default: a(() => [
184
- s(p, null, {
185
- default: a(() => l[14] || (l[14] = [
186
- u("Pattern:")
186
+ default: t(() => [
187
+ s(v, null, {
188
+ default: t(() => l[14] || (l[14] = [
189
+ a("Pattern:")
187
190
  ])),
188
191
  _: 1
189
192
  }),
190
- u(" " + i(e.value.pattern), 1)
193
+ a(" " + n(e.value.pattern), 1)
191
194
  ]),
192
195
  _: 1
193
- })) : t("", !0),
194
- e.$props.enum ? (r(), d(o, { key: 9 }, {
195
- default: a(() => l[15] || (l[15] = [
196
- u("enum")
196
+ })) : u("", !0),
197
+ e.$props.enum ? (r(), m(o, { key: 9 }, {
198
+ default: t(() => l[15] || (l[15] = [
199
+ a("enum")
197
200
  ])),
198
201
  _: 1
199
- })) : t("", !0),
200
- e.value.default !== void 0 ? (r(), d(o, {
202
+ })) : u("", !0),
203
+ e.value.default !== void 0 ? (r(), m(o, {
201
204
  key: 10,
202
205
  truncate: ""
203
206
  }, {
204
- prefix: a(() => l[16] || (l[16] = [
205
- u("default:")
207
+ prefix: t(() => l[16] || (l[16] = [
208
+ a("default:")
206
209
  ])),
207
- default: a(() => [
208
- u(" " + i(L(e.value)), 1)
210
+ default: t(() => [
211
+ a(" " + n(T(e.value)), 1)
209
212
  ]),
210
213
  _: 1
211
- })) : t("", !0)
212
- ], 64)) : (r(), n(m, { key: 6 }, [
213
- ((q = e.value) == null ? void 0 : q.nullable) === !0 ? (r(), d(o, { key: 0 }, {
214
- default: a(() => l[17] || (l[17] = [
215
- u(" nullable ")
214
+ })) : u("", !0)
215
+ ], 64)) : (r(), i(d, { key: 6 }, [
216
+ ((w = e.value) == null ? void 0 : w.nullable) === !0 ? (r(), m(o, { key: 0 }, {
217
+ default: t(() => l[17] || (l[17] = [
218
+ a(" nullable ")
216
219
  ])),
217
220
  _: 1
218
- })) : t("", !0)
221
+ })) : u("", !0)
219
222
  ], 64)),
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)
223
+ (P = e.value) != null && P.writeOnly ? (r(), i("div", U, " write-only ")) : (S = e.value) != null && S.readOnly ? (r(), i("div", W, " read-only ")) : u("", !0),
224
+ e.required ? (r(), i("div", X, " required ")) : u("", !0),
225
+ e.withExamples ? (r(), m(H, {
226
+ key: 10,
227
+ examples: (I = e.value) == null ? void 0 : I.examples,
228
+ example: ((N = e.value) == null ? void 0 : N.example) || ((C = (A = e.value) == null ? void 0 : A.items) == null ? void 0 : C.example),
229
+ "discriminator-type": y(D)
230
+ }, null, 8, ["examples", "example", "discriminator-type"])) : u("", !0)
222
231
  ]);
223
232
  };
224
233
  }
225
234
  });
226
235
  export {
227
- Q as default
236
+ ee as default
228
237
  };
@@ -1,7 +1,7 @@
1
1
  import t from "./GettingStarted.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ o(t, [["__scopeId", "data-v-386e82f2"]]);
4
+ const f = /* @__PURE__ */ o(t, [["__scopeId", "data-v-0f473adb"]]);
5
5
  export {
6
6
  f as default
7
7
  };
@@ -1,14 +1,14 @@
1
- import { defineComponent as u, openBlock as o, createElementBlock as i, createElementVNode as e, createStaticVNode as r, createVNode as n, unref as l, withCtx as d, createTextVNode as p, Fragment as w, renderList as y, normalizeClass as C, toDisplayString as S } from "vue";
1
+ import { defineComponent as b, openBlock as o, createElementBlock as d, createElementVNode as e, createStaticVNode as r, createVNode as i, unref as l, withCtx as n, createTextVNode as p, Fragment as u, renderList as w, normalizeClass as y, toDisplayString as A } from "vue";
2
2
  import { ScalarButton as c } from "@scalar/components";
3
3
  import { themeLabels as f } from "@scalar/themes";
4
- const A = { class: "start custom-scroll" }, x = { class: "start-copy" }, k = { class: "start-cta" }, Z = { class: "start-row" }, b = { class: "start-section start-section-colors" }, F = ["onClick"], P = /* @__PURE__ */ u({
4
+ const C = { class: "start custom-scroll" }, S = { class: "start-copy" }, x = { class: "start-cta" }, k = { class: "start-row" }, Z = { class: "start-section start-section-colors" }, E = ["onClick"], P = /* @__PURE__ */ b({
5
5
  __name: "GettingStarted",
6
6
  props: {
7
7
  theme: {}
8
8
  },
9
9
  emits: ["changeTheme", "loadSwaggerFile", "linkSwaggerFile", "updateContent"],
10
- setup(B, { emit: v }) {
11
- const g = v, h = [
10
+ setup(F, { emit: v }) {
11
+ const g = v, m = [
12
12
  "default",
13
13
  "alternate",
14
14
  "moon",
@@ -20,49 +20,49 @@ const A = { class: "start custom-scroll" }, x = { class: "start-copy" }, k = { c
20
20
  "mars",
21
21
  "deepSpace"
22
22
  ];
23
- async function m() {
23
+ async function h() {
24
24
  const s = await fetch(
25
25
  "https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.yaml"
26
26
  );
27
27
  g("updateContent", await s.text());
28
28
  }
29
- return (s, t) => (o(), i("div", A, [
30
- e("div", x, [
31
- t[3] || (t[3] = r('<div class="start-logo" data-v-386e82f2><svg height="36" viewBox="0 0 36 36" width="36" xmlns="http://www.w3.org/2000/svg" data-v-386e82f2><path d="M18 0a18 18 0 1 1 0 36 18 18 0 0 1 0-36Zm11.2 6.5c-3.3-3.3-11.1-1-17.4 5.3-6.2 6.3-8.6 14-5.3 17.4 3.3 3.3 11 .9 17.3-5.4 6.3-6.2 8.7-14 5.4-17.3ZM17.6 12a6.3 6.3 0 1 1 0 12.7 6.3 6.3 0 0 1 0-12.7Z" fill="currentColor" fill-rule="evenodd" data-v-386e82f2></path></svg></div><h1 class="start-h1" data-v-386e82f2>Swagger Editor</h1><p class="start-p" data-v-386e82f2> Welcome to the Scalar API References + Swagger Editor, a Free &amp; Open-Source tool that takes your Swagger/OAS file and generates Beautiful API references. </p>', 3)),
32
- e("div", k, [
33
- n(l(c), {
29
+ return (s, a) => (o(), d("div", C, [
30
+ e("div", S, [
31
+ a[3] || (a[3] = r('<div class="start-logo" data-v-0f473adb><svg height="36" viewBox="0 0 36 36" width="36" xmlns="http://www.w3.org/2000/svg" data-v-0f473adb><path d="M18 0a18 18 0 1 1 0 36 18 18 0 0 1 0-36Zm11.2 6.5c-3.3-3.3-11.1-1-17.4 5.3-6.2 6.3-8.6 14-5.3 17.4 3.3 3.3 11 .9 17.3-5.4 6.3-6.2 8.7-14 5.4-17.3ZM17.6 12a6.3 6.3 0 1 1 0 12.7 6.3 6.3 0 0 1 0-12.7Z" fill="currentColor" fill-rule="evenodd" data-v-0f473adb></path></svg></div><h1 class="start-h1" data-v-0f473adb>Swagger Editor</h1><p class="start-p" data-v-0f473adb> Welcome to the Scalar API References + Swagger Editor, a Free &amp; Open-Source tool that takes your Swagger/OAS file and generates Beautiful API references. </p>', 3)),
32
+ e("div", x, [
33
+ i(l(c), {
34
34
  fullWidth: "",
35
- onClick: m
35
+ onClick: h
36
36
  }, {
37
- default: d(() => t[1] || (t[1] = [
37
+ default: n(() => a[1] || (a[1] = [
38
38
  p(" Show Example ")
39
39
  ])),
40
40
  _: 1
41
41
  }),
42
- n(l(c), {
42
+ i(l(c), {
43
43
  fullWidth: "",
44
44
  variant: "outlined",
45
- onClick: t[0] || (t[0] = (a) => s.$emit("loadSwaggerFile"))
45
+ onClick: a[0] || (a[0] = (t) => s.$emit("loadSwaggerFile"))
46
46
  }, {
47
- default: d(() => t[2] || (t[2] = [
47
+ default: n(() => a[2] || (a[2] = [
48
48
  p(" Upload File ")
49
49
  ])),
50
50
  _: 1
51
51
  })
52
52
  ])
53
53
  ]),
54
- e("div", Z, [
55
- t[5] || (t[5] = r('<div class="start-section start-section-integrations" data-v-386e82f2><div class="start-h2" data-v-386e82f2>INTEGRATIONS</div><a class="start-item" href="https://github.com/scalar/scalar/tree/main/packages/fastify-api-reference#readme" target="_blank" data-v-386e82f2><svg fill="currentColor" height="16" viewBox="0 0 19 16" width="19" xmlns="http://www.w3.org/2000/svg" data-v-386e82f2><path d="m18.2 3.1.8-2V.9l-4.7 1.3C15.2 1 15 0 15 0s-2.5 1.6-4.3 1.5c-2 0-3.6.8-4 1-1.8 1.2-2.5 3.3-3.2 3.8L0 8.9 2.3 8l-2 2.5c.2.3 1.2 1.6 2.1 1.3l.4-.1 1.6.5-.7-1 .2-.2.9.3-.1-.8.9.3-.1-.8.3-.1 1-3.5 3.7-2.6-.3.7A4 4 0 0 1 8 7l-.6.2c-.5.5-.7.7-.8 2.5a2 2 0 0 1 1 0c1.6.4 2.2 2.3 1.7 2.9l-.7.6H8v.6h-.7v.5l-.2.2c-.7 0-1.4-.6-1.4-.6 0 .5.4 1.3.4 1.3s1.7 1.1 2.7.7c1-.4.7-2.3 2.8-3.2l3.3-.9.8-2.2-1.7.5v-2l2.5-.6.9-2.2-3.4.9v-2l4.2-1.1Z" fill="currentColor" fill-rule="nonzero" data-v-386e82f2></path></svg><span data-v-386e82f2>Fastify</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#from-a-cdn" target="_blank" data-v-386e82f2><svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-386e82f2><g data-v-386e82f2><path d="M22.5 1.5h-21A1.5 1.5 0 0 0 0 3v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 6V3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3A1.25 1.25 0 1 1 4.5 5.75 1.25 1.25 0 0 1 3.25 4.5ZM8.5 5.75A1.25 1.25 0 1 1 9.75 4.5 1.25 1.25 0 0 1 8.5 5.75Z" fill="currentColor" data-v-386e82f2></path><path d="M22.5 9h-21A1.5 1.5 0 0 0 0 10.5v3A1.5 1.5 0 0 0 1.5 15h21a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 22.5 9ZM3.25 12a1.25 1.25 0 1 1 1.25 1.25A1.25 1.25 0 0 1 3.25 12Zm5.25 1.25A1.25 1.25 0 1 1 9.75 12a1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-386e82f2></path><path d="M22.5 16.5h-21A1.5 1.5 0 0 0 0 18v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 21v-3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3a1.25 1.25 0 1 1 1.25 1.25 1.25 1.25 0 0 1-1.25-1.25Zm5.25 1.25a1.25 1.25 0 1 1 1.25-1.25 1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-386e82f2></path></g></svg><span data-v-386e82f2>CDN</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#with-vuejs" target="_blank" data-v-386e82f2><svg height="170" viewBox="0 0 196.3 170" width="196.3" xmlns="http://www.w3.org/2000/svg" data-v-386e82f2><g fill="currentColor" fill-rule="nonzero" data-v-386e82f2><polygon points="39.23 0 0 0 2.9450761 5.1010782 98.16 170.02 196.32 0 157.06 0 98.16 102.01 42.175701 5.0991171" data-v-386e82f2></polygon><polygon points="75.5 2.009956e-14 0 2.009956e-14 2.94 5.1 78.44871 5.1 98.16 39.26 117.87937 5.1 193.38 5.1 196.325 0 120.82 7.8065636e-15 114.97322 2.009956e-14 98.16 29.037153 81.35 2.009956e-14" data-v-386e82f2></polygon></g></svg><span data-v-386e82f2>Vue</span></a><a class="start-item" href="https://github.com/scalar/scalar/tree/main#with-react" target="_blank" data-v-386e82f2><svg height="23.3" viewBox="0 0 22 23.3" width="22" xmlns="http://www.w3.org/2000/svg" data-v-386e82f2><g fill="none" fill-rule="evenodd" data-v-386e82f2><circle cx="11" cy="11.6" fill="currentColor" fill-rule="nonzero" r="2" data-v-386e82f2></circle><g stroke="currentColor" data-v-386e82f2><ellipse cx="11" cy="11.6" rx="11" ry="4.2" data-v-386e82f2></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(60 11 11.6)" data-v-386e82f2></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(120 11 11.6)" data-v-386e82f2></ellipse></g></g></svg><span data-v-386e82f2>React</span></a></div>', 1)),
56
- e("div", b, [
57
- t[4] || (t[4] = e("p", { class: "start-h2" }, "THEMING", -1)),
58
- (o(), i(w, null, y(h, (a) => e("div", {
59
- key: a,
60
- class: C(["start-item", { "start-item-active": a === s.theme }]),
61
- onClick: (_) => s.$emit("changeTheme", { id: a, label: l(f)[a] })
62
- }, S(l(f)[a]), 11, F)), 64))
54
+ e("div", k, [
55
+ a[5] || (a[5] = r('<div class="start-section start-section-integrations" data-v-0f473adb><div class="start-h2" data-v-0f473adb>INTEGRATIONS</div><a class="start-item" href="https://github.com/scalar/scalar/tree/main/integrations/fastify#readme" target="_blank" data-v-0f473adb><svg fill="currentColor" height="16" viewBox="0 0 19 16" width="19" xmlns="http://www.w3.org/2000/svg" data-v-0f473adb><path d="m18.2 3.1.8-2V.9l-4.7 1.3C15.2 1 15 0 15 0s-2.5 1.6-4.3 1.5c-2 0-3.6.8-4 1-1.8 1.2-2.5 3.3-3.2 3.8L0 8.9 2.3 8l-2 2.5c.2.3 1.2 1.6 2.1 1.3l.4-.1 1.6.5-.7-1 .2-.2.9.3-.1-.8.9.3-.1-.8.3-.1 1-3.5 3.7-2.6-.3.7A4 4 0 0 1 8 7l-.6.2c-.5.5-.7.7-.8 2.5a2 2 0 0 1 1 0c1.6.4 2.2 2.3 1.7 2.9l-.7.6H8v.6h-.7v.5l-.2.2c-.7 0-1.4-.6-1.4-.6 0 .5.4 1.3.4 1.3s1.7 1.1 2.7.7c1-.4.7-2.3 2.8-3.2l3.3-.9.8-2.2-1.7.5v-2l2.5-.6.9-2.2-3.4.9v-2l4.2-1.1Z" fill="currentColor" fill-rule="nonzero" data-v-0f473adb></path></svg><span data-v-0f473adb>Fastify</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/documentation/integrations/html-js.md#html" target="_blank" data-v-0f473adb><svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" data-v-0f473adb><g data-v-0f473adb><path d="M22.5 1.5h-21A1.5 1.5 0 0 0 0 3v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 6V3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3A1.25 1.25 0 1 1 4.5 5.75 1.25 1.25 0 0 1 3.25 4.5ZM8.5 5.75A1.25 1.25 0 1 1 9.75 4.5 1.25 1.25 0 0 1 8.5 5.75Z" fill="currentColor" data-v-0f473adb></path><path d="M22.5 9h-21A1.5 1.5 0 0 0 0 10.5v3A1.5 1.5 0 0 0 1.5 15h21a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 22.5 9ZM3.25 12a1.25 1.25 0 1 1 1.25 1.25A1.25 1.25 0 0 1 3.25 12Zm5.25 1.25A1.25 1.25 0 1 1 9.75 12a1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-0f473adb></path><path d="M22.5 16.5h-21A1.5 1.5 0 0 0 0 18v3a1.5 1.5 0 0 0 1.5 1.5h21A1.5 1.5 0 0 0 24 21v-3a1.5 1.5 0 0 0-1.5-1.5Zm-19.25 3a1.25 1.25 0 1 1 1.25 1.25 1.25 1.25 0 0 1-1.25-1.25Zm5.25 1.25a1.25 1.25 0 1 1 1.25-1.25 1.25 1.25 0 0 1-1.25 1.25Z" fill="currentColor" data-v-0f473adb></path></g></svg><span data-v-0f473adb>CDN</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/packages/api-reference/README.md#vuejs" target="_blank" data-v-0f473adb><svg height="170" viewBox="0 0 196.3 170" width="196.3" xmlns="http://www.w3.org/2000/svg" data-v-0f473adb><g fill="currentColor" fill-rule="nonzero" data-v-0f473adb><polygon points="39.23 0 0 0 2.9450761 5.1010782 98.16 170.02 196.32 0 157.06 0 98.16 102.01 42.175701 5.0991171" data-v-0f473adb></polygon><polygon points="75.5 2.009956e-14 0 2.009956e-14 2.94 5.1 78.44871 5.1 98.16 39.26 117.87937 5.1 193.38 5.1 196.325 0 120.82 7.8065636e-15 114.97322 2.009956e-14 98.16 29.037153 81.35 2.009956e-14" data-v-0f473adb></polygon></g></svg><span data-v-0f473adb>Vue</span></a><a class="start-item" href="https://github.com/scalar/scalar/blob/main/packages/api-reference-react/README.md#usage" target="_blank" data-v-0f473adb><svg height="23.3" viewBox="0 0 22 23.3" width="22" xmlns="http://www.w3.org/2000/svg" data-v-0f473adb><g fill="none" fill-rule="evenodd" data-v-0f473adb><circle cx="11" cy="11.6" fill="currentColor" fill-rule="nonzero" r="2" data-v-0f473adb></circle><g stroke="currentColor" data-v-0f473adb><ellipse cx="11" cy="11.6" rx="11" ry="4.2" data-v-0f473adb></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(60 11 11.6)" data-v-0f473adb></ellipse><ellipse cx="11" cy="11.6" rx="11" ry="4.2" transform="rotate(120 11 11.6)" data-v-0f473adb></ellipse></g></g></svg><span data-v-0f473adb>React</span></a></div>', 1)),
56
+ e("div", Z, [
57
+ a[4] || (a[4] = e("p", { class: "start-h2" }, "THEMING", -1)),
58
+ (o(), d(u, null, w(m, (t) => e("div", {
59
+ key: t,
60
+ class: y(["start-item", { "start-item-active": t === s.theme }]),
61
+ onClick: (B) => s.$emit("changeTheme", { id: t, label: l(f)[t] })
62
+ }, A(l(f)[t]), 11, E)), 64))
63
63
  ])
64
64
  ]),
65
- t[6] || (t[6] = r('<p class="start-h1" data-v-386e82f2>Features</p><ul class="start-ul" data-v-386e82f2><li data-v-386e82f2><p class="start-h3" data-v-386e82f2>Customize</p> Bring your typography &amp; color palettes, or use our themes! </li><li data-v-386e82f2><p class="start-h3" data-v-386e82f2>Testing</p> A deeply integrated Rest API Client (Also Free &amp; Open-Source) </li><li data-v-386e82f2><p class="start-h3" data-v-386e82f2>Search</p> Fully integrated Search (Using fuse.js) </li><li data-v-386e82f2><p class="start-h3" data-v-386e82f2>Hosting</p> Free subdomain hosting on https://apidocumentation.com </li><li data-v-386e82f2><p class="start-h3" data-v-386e82f2>OpenAPI &amp; Swagger</p> Support for OpenAPI 3.1, OpenAPI 3.0, and Swagger 2.0 </li><li data-v-386e82f2><p class="start-h3" data-v-386e82f2>Code Samples</p> Code samples to show off your API in most popular languages </li></ul>', 2))
65
+ a[6] || (a[6] = r('<p class="start-h1" data-v-0f473adb>Features</p><ul class="start-ul" data-v-0f473adb><li data-v-0f473adb><p class="start-h3" data-v-0f473adb>Customize</p> Bring your typography &amp; color palettes, or use our themes! </li><li data-v-0f473adb><p class="start-h3" data-v-0f473adb>Testing</p> A deeply integrated Rest API Client (Also Free &amp; Open-Source) </li><li data-v-0f473adb><p class="start-h3" data-v-0f473adb>Search</p> Fully integrated Search (Using fuse.js) </li><li data-v-0f473adb><p class="start-h3" data-v-0f473adb>Hosting</p> Free subdomain hosting on https://apidocumentation.com </li><li data-v-0f473adb><p class="start-h3" data-v-0f473adb>OpenAPI &amp; Swagger</p> Support for OpenAPI 3.1, OpenAPI 3.0, and Swagger 2.0 </li><li data-v-0f473adb><p class="start-h3" data-v-0f473adb>Code Samples</p> Code samples to show off your API in most popular languages </li></ul>', 2))
66
66
  ]));
67
67
  }
68
68
  });
@@ -1,7 +1,7 @@
1
1
  import o from "./SidebarElement.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-eb72afb2"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8f90da18"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -28,7 +28,7 @@ const D = ["id"], L = {
28
28
  setup(k, { emit: y }) {
29
29
  const i = k, p = y, { getFullHash: u, isIntersectionEnabled: r, replaceUrlState: w } = I(), l = U(), f = async () => {
30
30
  var e, t;
31
- i.hasChildren && p("toggleOpen"), (t = (e = i.item) == null ? void 0 : e.select) == null || t.call(e), i.open && (r.value = !1, await C(100), r.value = !0);
31
+ r.value = !1, i.hasChildren && p("toggleOpen"), (t = (e = i.item) == null ? void 0 : e.select) == null || t.call(e), await C(100), r.value = !0;
32
32
  }, S = () => {
33
33
  if (l.value.pathRouting)
34
34
  return R(l.value.pathRouting.basePath, i.item.id);
@@ -1,6 +1,6 @@
1
1
  import type { ApiReferenceConfiguration } from '@scalar/types/api-reference';
2
2
  type __VLS_Props = {
3
- configuration: ApiReferenceConfiguration;
3
+ configuration: Partial<ApiReferenceConfiguration>;
4
4
  };
5
5
  declare function __VLS_template(): {
6
6
  attrs: Partial<{}>;
@@ -1 +1 @@
1
- {"version":3,"file":"SingleApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/SingleApiReference.vue"],"names":[],"mappings":"AA6EA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAW5E,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,yBAAyB,CAAA;CACzC,CAAC;AAyCF,iBAAS,cAAc;WAgGT,OAAO,IAA6B;;wBAVrB,GAAG;wBACH,GAAG;qCACU,GAAG;;;;EAa5C;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;kFAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"SingleApiReference.vue.d.ts","sourceRoot":"","sources":["../../src/components/SingleApiReference.vue"],"names":[],"mappings":"AA6EA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAW5E,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,OAAO,CAAC,yBAAyB,CAAC,CAAA;CAClD,CAAC;AAyCF,iBAAS,cAAc;WAgGT,OAAO,IAA6B;;wBAVrB,GAAG;wBACH,GAAG;qCACU,GAAG;;;;EAa5C;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;kFAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}