@scalar/api-reference 1.28.1 → 1.28.3

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 (83) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/blocks/hooks/useBlockProps.d.ts +4 -5
  3. package/dist/blocks/hooks/useBlockProps.d.ts.map +1 -1
  4. package/dist/blocks/hooks/useBlockProps.js +10 -14
  5. package/dist/browser/standalone.js +11624 -11582
  6. package/dist/browser/webpack-stats.json +1 -1
  7. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  8. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  9. package/dist/components/ApiReferenceLayout.vue2.js +103 -109
  10. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  11. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
  12. package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +48 -40
  13. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
  14. package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
  15. package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +6 -7
  16. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Content.vue.js +2 -2
  18. package/dist/components/Content/Content.vue2.js +97 -71
  19. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  20. package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
  21. package/dist/components/Content/Introduction/Introduction.vue2.js +18 -18
  22. package/dist/components/Content/Lazy/Loading.vue.d.ts +3 -0
  23. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
  24. package/dist/components/Content/Lazy/Loading.vue.js +58 -56
  25. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  26. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
  27. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +77 -77
  28. package/dist/components/Content/Tag/OperationsList.vue.d.ts +2 -0
  29. package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -1
  30. package/dist/components/Content/Tag/OperationsList.vue.js +2 -2
  31. package/dist/components/Content/Tag/OperationsList.vue2.js +22 -20
  32. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts +2 -0
  33. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -1
  34. package/dist/components/Content/Tag/OperationsListItem.vue.js +2 -2
  35. package/dist/components/Content/Tag/OperationsListItem.vue2.js +10 -8
  36. package/dist/components/Content/Tag/Tag.vue.d.ts +2 -0
  37. package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
  38. package/dist/components/Content/Tag/Tag.vue.js +38 -34
  39. package/dist/components/Content/Tag/TagList.vue.d.ts +3 -0
  40. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  41. package/dist/components/Content/Tag/TagList.vue.js +32 -30
  42. package/dist/components/Content/Tag/TagSection.vue.d.ts +2 -0
  43. package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -1
  44. package/dist/components/Content/Tag/TagSection.vue.js +2 -2
  45. package/dist/components/Content/Tag/TagSection.vue2.js +16 -14
  46. package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
  47. package/dist/components/Section/CompactSection.vue.js +1 -1
  48. package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
  49. package/dist/components/ShowMoreButton.vue.js +2 -2
  50. package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
  51. package/dist/components/Sidebar/SidebarElement.vue.js +2 -2
  52. package/dist/components/Sidebar/SidebarElement.vue2.js +41 -40
  53. package/dist/features/ApiClientModal/useApiClient.d.ts +6 -6
  54. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  55. package/dist/features/BaseUrl/BaseUrl.vue.d.ts +6 -1
  56. package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
  57. package/dist/features/BaseUrl/BaseUrl.vue.js +36 -32
  58. package/dist/features/Operation/Operation.vue.d.ts +1 -1
  59. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  60. package/dist/features/Operation/Operation.vue.js +13 -12
  61. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  62. package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
  63. package/dist/features/Operation/components/ParameterListItem.vue2.js +11 -8
  64. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  65. package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
  66. package/dist/features/Operation/layouts/ModernLayout.vue2.js +9 -8
  67. package/dist/helpers/scrollToId.d.ts +3 -1
  68. package/dist/helpers/scrollToId.d.ts.map +1 -1
  69. package/dist/helpers/scrollToId.js +4 -4
  70. package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
  71. package/dist/hooks/useMultipleDocuments.js +49 -41
  72. package/dist/hooks/useSidebar.d.ts +2 -2
  73. package/dist/hooks/useSidebar.d.ts.map +1 -1
  74. package/dist/hooks/useSidebar.js +84 -84
  75. package/dist/index.d.ts +1 -1
  76. package/dist/index.d.ts.map +1 -1
  77. package/dist/index.js +1 -1
  78. package/dist/standalone/lib/html-api.d.ts +8 -9
  79. package/dist/standalone/lib/html-api.d.ts.map +1 -1
  80. package/dist/style.css +1 -1
  81. package/dist/types.d.ts +2 -2
  82. package/dist/types.d.ts.map +1 -1
  83. package/package.json +11 -10
@@ -1,17 +1,14 @@
1
- import { defineComponent as V, openBlock as t, createElementBlock as n, renderSlot as w, Fragment as m, createTextVNode as u, createCommentVNode as a, toDisplayString as i, createVNode as v, unref as f, withCtx as r, createBlock as d, renderList as $ } from "vue";
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
2
  import k from "../../ScreenReader.vue.js";
3
3
  import o from "./SchemaPropertyDetail.vue.js";
4
4
  import g from "../../Badge/Badge.vue.js";
5
- const C = { class: "property-heading" }, D = {
6
- key: 0,
7
- class: "property-name"
8
- }, F = {
5
+ const F = { class: "property-heading" }, T = {
9
6
  key: 1,
10
7
  class: "property-additional"
11
- }, T = {
8
+ }, j = {
12
9
  key: 2,
13
10
  class: "property-pattern"
14
- }, j = {
11
+ }, z = {
15
12
  key: 3,
16
13
  class: "property-deprecated"
17
14
  }, E = {
@@ -23,10 +20,10 @@ const C = { class: "property-heading" }, D = {
23
20
  }, R = {
24
21
  key: 8,
25
22
  class: "property-read-only"
26
- }, z = {
23
+ }, G = {
27
24
  key: 9,
28
25
  class: "property-required"
29
- }, W = /* @__PURE__ */ V({
26
+ }, X = /* @__PURE__ */ V({
30
27
  __name: "SchemaPropertyHeading",
31
28
  props: {
32
29
  value: {},
@@ -35,102 +32,105 @@ const C = { class: "property-heading" }, D = {
35
32
  additional: { type: Boolean },
36
33
  pattern: { type: Boolean }
37
34
  },
38
- setup(G) {
39
- const A = ["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(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;
40
37
  return (e, l) => {
41
- var B, q, I, L, N, O, P, S;
42
- return t(), n("div", C, [
43
- e.$slots.name ? (t(), n("div", D, [
44
- e.pattern ? (t(), n(m, { key: 1 }, [
38
+ var B, q, I, L, N, O, P, S, b;
39
+ return r(), n("div", F, [
40
+ e.$slots.name ? (r(), n("div", {
41
+ key: 0,
42
+ class: $(["property-name", { deprecated: (B = e.value) == null ? void 0 : B.deprecated }])
43
+ }, [
44
+ e.pattern ? (r(), n(m, { key: 1 }, [
45
45
  l[0] || (l[0] = u("/")),
46
- w(e.$slots, "name", {}, void 0, !0),
46
+ A(e.$slots, "name", {}, void 0, !0),
47
47
  l[1] || (l[1] = u("/"))
48
- ], 64)) : w(e.$slots, "name", { key: 0 }, void 0, !0)
49
- ])) : a("", !0),
50
- e.additional ? (t(), n("div", F, [
51
- (B = e.value) != null && B["x-additionalPropertiesName"] ? (t(), n(m, { key: 0 }, [
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 }, [
52
52
  u(i(e.value["x-additionalPropertiesName"]), 1)
53
- ], 64)) : (t(), n(m, { key: 1 }, [
53
+ ], 64)) : (r(), n(m, { key: 1 }, [
54
54
  u("additional properties")
55
55
  ], 64))
56
56
  ])) : a("", !0),
57
- e.pattern ? (t(), n("div", T, [
57
+ e.pattern ? (r(), n("div", j, [
58
58
  v(f(g), null, {
59
- default: r(() => l[2] || (l[2] = [
59
+ default: t(() => l[2] || (l[2] = [
60
60
  u("pattern")
61
61
  ])),
62
62
  _: 1
63
63
  })
64
64
  ])) : a("", !0),
65
- (q = e.value) != null && q.deprecated ? (t(), n("div", j, [
65
+ (I = e.value) != null && I.deprecated ? (r(), n("div", z, [
66
66
  v(f(g), null, {
67
- default: r(() => l[3] || (l[3] = [
67
+ default: t(() => l[3] || (l[3] = [
68
68
  u("deprecated")
69
69
  ])),
70
70
  _: 1
71
71
  })
72
72
  ])) : a("", !0),
73
- (I = e.value) != null && I.const || (L = e.value) != null && L.enum && e.value.enum.length === 1 ? (t(), n("div", E, [
73
+ (L = e.value) != null && L.const || (N = e.value) != null && N.enum && e.value.enum.length === 1 ? (r(), n("div", E, [
74
74
  v(o, { truncate: "" }, {
75
- prefix: r(() => l[4] || (l[4] = [
75
+ prefix: t(() => l[4] || (l[4] = [
76
76
  u("const:")
77
77
  ])),
78
- default: r(() => [
78
+ default: t(() => [
79
79
  u(" " + i(e.value.const ?? e.value.enum[0]), 1)
80
80
  ]),
81
81
  _: 1
82
82
  })
83
- ])) : (N = e.value) != null && N.type ? (t(), n(m, { key: 5 }, [
83
+ ])) : (O = e.value) != null && O.type ? (r(), n(m, { key: 5 }, [
84
84
  v(o, null, {
85
- default: r(() => {
85
+ default: t(() => {
86
86
  var s, p, y;
87
87
  return [
88
88
  v(k, null, {
89
- default: r(() => l[5] || (l[5] = [
89
+ default: t(() => 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 ? (t(), n(m, { key: 0 }, [
94
+ (p = (s = e.value) == null ? void 0 : s.items) != null && p.type ? (r(), n(m, { key: 0 }, [
95
95
  u(i(e.value.type) + " " + i(e.value.items.type) + "[] ", 1)
96
- ], 64)) : (t(), n(m, { key: 1 }, [
96
+ ], 64)) : (r(), n(m, { key: 1 }, [
97
97
  u(i(Array.isArray(e.value.type) ? e.value.type.join(" | ") : e.value.type) + " " + i((y = e.value) != null && y.nullable ? " | nullable" : ""), 1)
98
98
  ], 64)),
99
- e.value.minItems || e.value.maxItems ? (t(), n(m, { key: 2 }, [
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
101
  ], 64)) : a("", !0)
102
102
  ];
103
103
  }),
104
104
  _: 1
105
105
  }),
106
- e.value.minLength ? (t(), d(o, { key: 0 }, {
107
- prefix: r(() => l[6] || (l[6] = [
106
+ e.value.minLength ? (r(), d(o, { key: 0 }, {
107
+ prefix: t(() => l[6] || (l[6] = [
108
108
  u("min:")
109
109
  ])),
110
- default: r(() => [
110
+ default: t(() => [
111
111
  u(" " + i(e.value.minLength), 1)
112
112
  ]),
113
113
  _: 1
114
114
  })) : a("", !0),
115
- e.value.maxLength ? (t(), d(o, { key: 1 }, {
116
- prefix: r(() => l[7] || (l[7] = [
115
+ e.value.maxLength ? (r(), d(o, { key: 1 }, {
116
+ prefix: t(() => l[7] || (l[7] = [
117
117
  u("max:")
118
118
  ])),
119
- default: r(() => [
119
+ default: t(() => [
120
120
  u(" " + i(e.value.maxLength), 1)
121
121
  ]),
122
122
  _: 1
123
123
  })) : a("", !0),
124
- e.value.uniqueItems ? (t(), d(o, { key: 2 }, {
125
- default: r(() => l[8] || (l[8] = [
124
+ e.value.uniqueItems ? (r(), d(o, { key: 2 }, {
125
+ default: t(() => l[8] || (l[8] = [
126
126
  u(" unique! ")
127
127
  ])),
128
128
  _: 1
129
129
  })) : a("", !0),
130
- e.value.format ? (t(), d(o, { key: 3 }, {
131
- default: r(() => [
130
+ e.value.format ? (r(), d(o, { key: 3 }, {
131
+ default: t(() => [
132
132
  v(k, null, {
133
- default: r(() => l[9] || (l[9] = [
133
+ default: t(() => l[9] || (l[9] = [
134
134
  u("Format:")
135
135
  ])),
136
136
  _: 1
@@ -139,50 +139,50 @@ const C = { class: "property-heading" }, D = {
139
139
  ]),
140
140
  _: 1
141
141
  })) : a("", !0),
142
- e.value.minimum !== void 0 && e.value.exclusiveMinimum ? (t(), d(o, { key: 4 }, {
143
- prefix: r(() => l[10] || (l[10] = [
142
+ e.value.minimum !== void 0 && e.value.exclusiveMinimum ? (r(), d(o, { key: 4 }, {
143
+ prefix: t(() => l[10] || (l[10] = [
144
144
  u("greater than:")
145
145
  ])),
146
- default: r(() => [
146
+ default: t(() => [
147
147
  u(" " + i(e.value.minimum), 1)
148
148
  ]),
149
149
  _: 1
150
150
  })) : a("", !0),
151
- e.value.minimum !== void 0 && !e.value.exclusiveMinimum ? (t(), d(o, { key: 5 }, {
152
- prefix: r(() => l[11] || (l[11] = [
151
+ e.value.minimum !== void 0 && !e.value.exclusiveMinimum ? (r(), d(o, { key: 5 }, {
152
+ prefix: t(() => l[11] || (l[11] = [
153
153
  u("min:")
154
154
  ])),
155
- default: r(() => [
155
+ default: t(() => [
156
156
  u(" " + i(e.value.minimum), 1)
157
157
  ]),
158
158
  _: 1
159
159
  })) : a("", !0),
160
- e.value.maximum !== void 0 && e.value.exclusiveMaximum ? (t(), d(o, { key: 6 }, {
161
- prefix: r(() => l[12] || (l[12] = [
160
+ e.value.maximum !== void 0 && e.value.exclusiveMaximum ? (r(), d(o, { key: 6 }, {
161
+ prefix: t(() => l[12] || (l[12] = [
162
162
  u("less than:")
163
163
  ])),
164
- default: r(() => [
164
+ default: t(() => [
165
165
  u(" " + i(e.value.maximum), 1)
166
166
  ]),
167
167
  _: 1
168
168
  })) : a("", !0),
169
- e.value.maximum !== void 0 && !e.value.exclusiveMaximum ? (t(), d(o, { key: 7 }, {
170
- prefix: r(() => l[13] || (l[13] = [
169
+ e.value.maximum !== void 0 && !e.value.exclusiveMaximum ? (r(), d(o, { key: 7 }, {
170
+ prefix: t(() => l[13] || (l[13] = [
171
171
  u("max:")
172
172
  ])),
173
- default: r(() => [
173
+ default: t(() => [
174
174
  u(" " + i(e.value.maximum), 1)
175
175
  ]),
176
176
  _: 1
177
177
  })) : a("", !0),
178
- e.value.pattern ? (t(), d(o, {
178
+ e.value.pattern ? (r(), d(o, {
179
179
  key: 8,
180
180
  code: "",
181
181
  truncate: ""
182
182
  }, {
183
- default: r(() => [
183
+ default: t(() => [
184
184
  v(k, null, {
185
- default: r(() => l[14] || (l[14] = [
185
+ default: t(() => l[14] || (l[14] = [
186
186
  u("Pattern:")
187
187
  ])),
188
188
  _: 1
@@ -191,54 +191,54 @@ const C = { class: "property-heading" }, D = {
191
191
  ]),
192
192
  _: 1
193
193
  })) : a("", !0),
194
- e.$props.enum ? (t(), d(o, { key: 9 }, {
195
- default: r(() => l[15] || (l[15] = [
194
+ e.$props.enum ? (r(), d(o, { key: 9 }, {
195
+ default: t(() => l[15] || (l[15] = [
196
196
  u("enum")
197
197
  ])),
198
198
  _: 1
199
199
  })) : a("", !0),
200
- e.value.default !== void 0 ? (t(), d(o, {
200
+ e.value.default !== void 0 ? (r(), d(o, {
201
201
  key: 10,
202
202
  truncate: ""
203
203
  }, {
204
- prefix: r(() => l[16] || (l[16] = [
204
+ prefix: t(() => l[16] || (l[16] = [
205
205
  u("default:")
206
206
  ])),
207
- default: r(() => [
207
+ default: t(() => [
208
208
  u(" " + i(M(e.value)), 1)
209
209
  ]),
210
210
  _: 1
211
211
  })) : a("", !0)
212
- ], 64)) : (t(), n(m, { key: 6 }, [
213
- ((O = e.value) == null ? void 0 : O.nullable) === !0 ? (t(), d(o, { key: 0 }, {
214
- default: r(() => l[17] || (l[17] = [
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] = [
215
215
  u(" nullable ")
216
216
  ])),
217
217
  _: 1
218
218
  })) : a("", !0)
219
219
  ], 64)),
220
- (P = e.value) != null && P.writeOnly ? (t(), n("div", H, " write-only ")) : (S = e.value) != null && S.readOnly ? (t(), n("div", R, " read-only ")) : a("", !0),
221
- (t(!0), n(m, null, $(A.filter(
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
222
  (s) => {
223
- var p, y, b;
224
- return ((p = e.value) == null ? void 0 : p[s]) || ((b = (y = e.value) == null ? void 0 : y.items) == null ? void 0 : b[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
225
  }
226
226
  ), (s) => {
227
227
  var p, y;
228
- return t(), n(m, { key: s }, [
229
- ((y = (p = e.value) == null ? void 0 : p[s]) == null ? void 0 : y.length) > 1 ? (t(), d(f(g), { key: 0 }, {
230
- default: r(() => [
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
231
  u(i(s), 1)
232
232
  ]),
233
233
  _: 2
234
234
  }, 1024)) : a("", !0)
235
235
  ], 64);
236
236
  }), 128)),
237
- e.required ? (t(), n("div", z, " required ")) : a("", !0)
237
+ e.required ? (r(), n("div", G, " required ")) : a("", !0)
238
238
  ]);
239
239
  };
240
240
  }
241
241
  });
242
242
  export {
243
- W as default
243
+ X as default
244
244
  };
@@ -1,6 +1,8 @@
1
+ import type { Collection } from '@scalar/oas-utils/entities/spec';
1
2
  import type { Tag } from '@scalar/types/legacy';
2
3
  type __VLS_Props = {
3
4
  tag: Tag;
5
+ collection: Collection;
4
6
  isCollapsed?: boolean;
5
7
  };
6
8
  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>;
@@ -1 +1 @@
1
- {"version":3,"file":"OperationsList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/OperationsList.vue"],"names":[],"mappings":"AAsDA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAW/C,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,GAAG,CAAA;IACR,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAiHF,wBAMG"}
1
+ {"version":3,"file":"OperationsList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/OperationsList.vue"],"names":[],"mappings":"AAyDA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAW/C,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,GAAG,CAAA;IACR,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAiHF,wBAMG"}
@@ -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 a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-bc837dc7"]]);
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5153ba3b"]]);
5
5
  export {
6
- a as default
6
+ s as default
7
7
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as f, computed as g, openBlock as r, createBlock as p, unref as t, withCtx as a, createVNode as o, createTextVNode as d, toDisplayString as C, createElementVNode as N, createElementBlock as k, Fragment as y, renderList as O, createCommentVNode as _ } from "vue";
2
- import B from "../../ScreenReader.vue.js";
3
- import { useNavState as V } from "../../../hooks/useNavState.js";
1
+ import { defineComponent as f, computed as g, openBlock as a, createBlock as p, unref as t, withCtx as o, createVNode as r, createTextVNode as d, toDisplayString as C, createElementVNode as N, createElementBlock as k, Fragment as y, renderList as O, createCommentVNode as B } from "vue";
2
+ import V from "../../ScreenReader.vue.js";
3
+ import { useNavState as _ } from "../../../hooks/useNavState.js";
4
4
  import v from "./OperationsListItem.vue.js";
5
5
  import L from "../../Card/Card.vue.js";
6
6
  import S from "../../Card/CardHeader.vue.js";
@@ -9,51 +9,53 @@ const h = ["aria-label"], T = /* @__PURE__ */ f({
9
9
  __name: "OperationsList",
10
10
  props: {
11
11
  tag: {},
12
+ collection: {},
12
13
  isCollapsed: { type: Boolean }
13
14
  },
14
- setup(u) {
15
- const s = u, { getOperationId: c } = V(), n = g(() => s.tag["x-displayName"] ?? s.tag.name);
16
- return (e, l) => {
15
+ setup(c) {
16
+ const l = c, { getOperationId: u } = _(), n = g(() => l.tag["x-displayName"] ?? l.tag.name);
17
+ return (e, s) => {
17
18
  var i;
18
- return ((i = e.tag.operations) == null ? void 0 : i.length) > 0 ? (r(), p(t(L), {
19
+ return ((i = e.tag.operations) == null ? void 0 : i.length) > 0 ? (a(), p(t(L), {
19
20
  key: 0,
20
21
  class: "scalar-card-sticky"
21
22
  }, {
22
- default: a(() => [
23
- o(t(S), { muted: "" }, {
24
- default: a(() => [
25
- o(B, null, {
26
- default: a(() => [
23
+ default: o(() => [
24
+ r(t(S), { muted: "" }, {
25
+ default: o(() => [
26
+ r(V, null, {
27
+ default: o(() => [
27
28
  d(C(n.value), 1)
28
29
  ]),
29
30
  _: 1
30
31
  }),
31
- l[0] || (l[0] = d(" Operations "))
32
+ s[0] || (s[0] = d(" Operations "))
32
33
  ]),
33
34
  _: 1
34
35
  }),
35
- o(t(b), {
36
+ r(t(b), {
36
37
  class: "custom-scroll",
37
38
  muted: ""
38
39
  }, {
39
- default: a(() => [
40
+ default: o(() => [
40
41
  N("ul", {
41
42
  "aria-label": `${n.value} endpoints`,
42
43
  class: "endpoints"
43
44
  }, [
44
- (r(!0), k(y, null, O(e.tag.operations, (m) => (r(), p(v, {
45
- key: t(c)(m, e.tag),
45
+ (a(!0), k(y, null, O(e.tag.operations, (m) => (a(), p(v, {
46
+ key: t(u)(m, e.tag),
46
47
  isCollapsed: e.isCollapsed,
47
48
  tag: e.tag,
48
- transformedOperation: m
49
- }, null, 8, ["isCollapsed", "tag", "transformedOperation"]))), 128))
49
+ transformedOperation: m,
50
+ collection: e.collection
51
+ }, null, 8, ["isCollapsed", "tag", "transformedOperation", "collection"]))), 128))
50
52
  ], 8, h)
51
53
  ]),
52
54
  _: 1
53
55
  })
54
56
  ]),
55
57
  _: 1
56
- })) : _("", !0);
58
+ })) : B("", !0);
57
59
  };
58
60
  }
59
61
  });
@@ -1,7 +1,9 @@
1
+ import type { Collection } from '@scalar/oas-utils/entities/spec';
1
2
  import type { Tag, TransformedOperation } from '@scalar/types/legacy';
2
3
  type __VLS_Props = {
3
4
  transformedOperation: TransformedOperation;
4
5
  tag: Tag;
6
+ collection: Collection;
5
7
  isCollapsed?: boolean;
6
8
  };
7
9
  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>;
@@ -1 +1 @@
1
- {"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/OperationsListItem.vue"],"names":[],"mappings":"AAiIA,OAAO,KAAK,EAAE,GAAG,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAarE,KAAK,WAAW,GAAG;IACjB,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,GAAG,EAAE,GAAG,CAAA;IACR,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAkJF,wBAMG"}
1
+ {"version":3,"file":"OperationsListItem.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/OperationsListItem.vue"],"names":[],"mappings":"AAoIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,KAAK,EAAE,GAAG,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAarE,KAAK,WAAW,GAAG;IACjB,oBAAoB,EAAE,oBAAoB,CAAA;IAC1C,GAAG,EAAE,GAAG,CAAA;IACR,UAAU,EAAE,UAAU,CAAA;IACtB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AAmJF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import t from "./OperationsListItem.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-a68a4ca6"]]);
4
+ const s = /* @__PURE__ */ o(t, [["__scopeId", "data-v-03fcdc42"]]);
5
5
  export {
6
- p as default
6
+ s as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as u, computed as h, unref as t, openBlock as s, createElementBlock as O, createBlock as g, withCtx as k, createTextVNode as C, toDisplayString as i, createCommentVNode as p, createElementVNode as m, withModifiers as v, createVNode as y, normalizeClass as B } from "vue";
1
+ import { defineComponent as u, computed as h, unref as t, openBlock as s, createElementBlock as O, createBlock as g, withCtx as k, createTextVNode as C, toDisplayString as i, createCommentVNode as l, createElementVNode as m, withModifiers as v, createVNode as y, normalizeClass as B } from "vue";
2
2
  import { useWorkspace as N } from "@scalar/api-client/store";
3
3
  import { getPointer as V } from "../../../blocks/helpers/getPointer.js";
4
4
  import { useBlockProps as S } from "../../../blocks/hooks/useBlockProps.js";
@@ -12,14 +12,16 @@ const b = ["href"], F = /* @__PURE__ */ u({
12
12
  props: {
13
13
  transformedOperation: {},
14
14
  tag: {},
15
+ collection: {},
15
16
  isCollapsed: { type: Boolean }
16
17
  },
17
18
  setup(a) {
18
- const { getOperationId: n } = w(), { scrollToOperation: l } = H(), d = async (e) => {
19
+ const { getOperationId: n } = w(), { scrollToOperation: p } = H(), c = async (e) => {
19
20
  const o = n(e, a.tag);
20
- l(o);
21
- }, c = N(), { operation: r } = S({
22
- store: c,
21
+ p(o, !0);
22
+ }, d = N(), { operation: r } = S({
23
+ store: d,
24
+ collection: a.collection,
23
25
  location: V([
24
26
  "paths",
25
27
  a.transformedOperation.path,
@@ -42,11 +44,11 @@ const b = ["href"], F = /* @__PURE__ */ u({
42
44
  C(i(f.value) + " (Hidden) ", 1)
43
45
  ]),
44
46
  _: 1
45
- })) : p("", !0),
47
+ })) : l("", !0),
46
48
  m("a", {
47
49
  class: "endpoint",
48
50
  href: `#${t(n)(e.transformedOperation, e.tag)}`,
49
- onClick: o[0] || (o[0] = v((D) => d(e.transformedOperation), ["prevent"]))
51
+ onClick: o[0] || (o[0] = v((D) => c(e.transformedOperation), ["prevent"]))
50
52
  }, [
51
53
  y(t($), {
52
54
  class: "endpoint-method",
@@ -58,7 +60,7 @@ const b = ["href"], F = /* @__PURE__ */ u({
58
60
  }])
59
61
  }, i(t(r).path), 3)
60
62
  ], 8, b)
61
- ])) : p("", !0);
63
+ ])) : l("", !0);
62
64
  }
63
65
  });
64
66
  export {
@@ -1,7 +1,9 @@
1
+ import type { Collection } from '@scalar/oas-utils/entities/spec';
1
2
  import type { Tag } from '@scalar/types/legacy';
2
3
  type __VLS_Props = {
3
4
  id?: string;
4
5
  tag: Tag;
6
+ collection: Collection;
5
7
  headerId?: string;
6
8
  isCollapsed?: boolean;
7
9
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Tag.vue"],"names":[],"mappings":"AA+DA,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,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":"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,13 +1,13 @@
1
- import { defineComponent as s, computed as c, openBlock as n, createBlock as i, unref as e, withCtx as o, createVNode as t, createTextVNode as d, toDisplayString as g, createCommentVNode as C } from "vue";
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
2
  import { ScalarMarkdown as S } from "@scalar/components";
3
3
  import v from "../../ScreenReader.vue.js";
4
4
  import { useNavState as N } from "../../../hooks/useNavState.js";
5
- import _ from "./OperationsList.vue.js";
6
- import h from "../../Section/Section.vue.js";
7
- import k from "../../Section/SectionHeader.vue.js";
8
- import y from "../../Anchor/Anchor.vue.js";
9
- import I from "../../Section/SectionHeaderTag.vue.js";
10
- import T from "../../Section/SectionContent.vue.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
11
  import w from "../../Section/SectionColumns.vue.js";
12
12
  import m from "../../Section/SectionColumn.vue.js";
13
13
  const q = /* @__PURE__ */ s({
@@ -15,31 +15,32 @@ const q = /* @__PURE__ */ s({
15
15
  props: {
16
16
  id: {},
17
17
  tag: {},
18
+ collection: {},
18
19
  headerId: {},
19
20
  isCollapsed: { type: Boolean }
20
21
  },
21
22
  setup(p) {
22
- const l = p, { getTagId: u } = N(), f = c(() => l.tag["x-displayName"] ?? l.tag.name);
23
- return (a, r) => (n(), i(e(h), {
24
- id: a.id,
25
- label: a.tag.name.toUpperCase(),
23
+ const a = p, { getTagId: u } = N(), f = c(() => a.tag["x-displayName"] ?? a.tag.name);
24
+ return (o, r) => (n(), i(e(k), {
25
+ id: o.id,
26
+ label: o.tag.name.toUpperCase(),
26
27
  role: "none"
27
28
  }, {
28
- default: o(() => [
29
- t(e(k), null, {
30
- default: o(() => [
31
- t(e(y), {
32
- id: e(u)(a.tag)
29
+ default: t(() => [
30
+ l(e(y), null, {
31
+ default: t(() => [
32
+ l(e(I), {
33
+ id: e(u)(o.tag)
33
34
  }, {
34
- default: o(() => [
35
- t(e(I), {
36
- id: a.headerId,
35
+ default: t(() => [
36
+ l(e(T), {
37
+ id: o.headerId,
37
38
  level: 2
38
39
  }, {
39
- default: o(() => [
40
+ default: t(() => [
40
41
  d(g(f.value) + " ", 1),
41
- a.isCollapsed ? (n(), i(v, { key: 0 }, {
42
- default: o(() => r[0] || (r[0] = [
42
+ o.isCollapsed ? (n(), i(v, { key: 0 }, {
43
+ default: t(() => r[0] || (r[0] = [
43
44
  d(" (Collapsed)")
44
45
  ])),
45
46
  _: 1
@@ -53,23 +54,26 @@ const q = /* @__PURE__ */ s({
53
54
  ]),
54
55
  _: 1
55
56
  }),
56
- t(e(T), null, {
57
- default: o(() => [
58
- t(e(w), null, {
59
- default: o(() => [
60
- t(e(m), null, {
61
- default: o(() => [
62
- t(e(S), {
63
- clamp: a.isCollapsed ? "7" : !1,
64
- value: a.tag.description,
57
+ l(e(_), null, {
58
+ default: t(() => [
59
+ l(e(w), null, {
60
+ default: t(() => [
61
+ l(e(m), null, {
62
+ default: t(() => [
63
+ l(e(S), {
64
+ clamp: o.isCollapsed ? "7" : !1,
65
+ value: o.tag.description,
65
66
  withImages: ""
66
67
  }, null, 8, ["clamp", "value"])
67
68
  ]),
68
69
  _: 1
69
70
  }),
70
- t(e(m), null, {
71
- default: o(() => [
72
- t(_, { tag: a.tag }, null, 8, ["tag"])
71
+ l(e(m), null, {
72
+ default: t(() => [
73
+ l(h, {
74
+ tag: o.tag,
75
+ collection: o.collection
76
+ }, null, 8, ["tag", "collection"])
73
77
  ]),
74
78
  _: 1
75
79
  })
@@ -1,8 +1,11 @@
1
+ import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
1
2
  import type { Spec, Tag as TagType } from '@scalar/types/legacy';
2
3
  type __VLS_Props = {
4
+ collection: Collection;
3
5
  tags: TagType[];
4
6
  spec: Spec;
5
7
  layout?: 'modern' | 'classic';
8
+ server?: Server;
6
9
  };
7
10
  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>;
8
11
  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,IAAI,EAAE,GAAG,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAYhE,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,OAAO,EAAE,CAAA;IACf,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAC9B,CAAC;;AAkIF,wBAMG"}
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"}