@scalar/api-reference 1.28.17 → 1.28.19

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 (37) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/browser/standalone.js +13903 -13945
  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/ApiReferenceLayout.vue2.js +93 -85
  7. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  8. package/dist/components/Content/Introduction/Introduction.vue.js +1 -1
  9. package/dist/components/Content/Introduction/Introduction.vue2.js +17 -15
  10. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  11. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  12. package/dist/components/Content/Schema/SchemaProperty.vue2.js +86 -86
  13. package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
  14. package/dist/components/Content/Tag/Tag.vue.js +35 -33
  15. package/dist/components/SpecificationExtension/SpecificationExtension.vue.d.ts +9 -0
  16. package/dist/components/SpecificationExtension/SpecificationExtension.vue.d.ts.map +1 -0
  17. package/dist/components/SpecificationExtension/SpecificationExtension.vue.js +35 -0
  18. package/dist/components/SpecificationExtension/SpecificationExtension.vue2.js +4 -0
  19. package/dist/components/SpecificationExtension/index.d.ts +2 -0
  20. package/dist/components/SpecificationExtension/index.d.ts.map +1 -0
  21. package/dist/features/ApiClientModal/useApiClient.d.ts +68 -68
  22. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  23. package/dist/hooks/useConfig.d.ts +4 -1
  24. package/dist/hooks/useConfig.d.ts.map +1 -1
  25. package/dist/hooks/useMultipleDocuments.d.ts +10 -2
  26. package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
  27. package/dist/index.js +1 -1
  28. package/dist/plugins/hooks/usePluginManager.d.ts +8 -0
  29. package/dist/plugins/hooks/usePluginManager.d.ts.map +1 -0
  30. package/dist/plugins/hooks/usePluginManager.js +10 -0
  31. package/dist/plugins/index.d.ts +3 -0
  32. package/dist/plugins/index.d.ts.map +1 -0
  33. package/dist/plugins/plugin-manager.d.ts +19 -0
  34. package/dist/plugins/plugin-manager.d.ts.map +1 -0
  35. package/dist/plugins/plugin-manager.js +21 -0
  36. package/dist/style.css +1 -1
  37. package/package.json +8 -8
@@ -1,32 +1,33 @@
1
- import { defineComponent as $, computed as y, openBlock as l, createBlock as f, resolveDynamicComponent as G, normalizeClass as I, withCtx as m, createSlots as J, createTextVNode as D, toDisplayString as c, createCommentVNode as a, createElementBlock as i, createVNode as s, unref as r, Fragment as d, renderList as k, createElementVNode as h } from "vue";
2
- import { Disclosure as K, DisclosurePanel as Q, DisclosureButton as W } from "@headlessui/vue";
3
- import { ScalarMarkdown as S, ScalarIcon as X } from "@scalar/components";
4
- import { optimizeValueForDisplay as Y, discriminators as L } from "./helpers/optimizeValueForDisplay.js";
5
- import O from "./Schema.vue.js";
6
- import R from "./SchemaDiscriminator.vue.js";
1
+ import { defineComponent as $, computed as y, openBlock as l, createBlock as h, resolveDynamicComponent as M, normalizeClass as I, withCtx as m, createSlots as G, createTextVNode as D, toDisplayString as c, createCommentVNode as r, createElementBlock as a, createVNode as i, unref as s, Fragment as d, renderList as k, createElementVNode as f } from "vue";
2
+ import { Disclosure as J, DisclosurePanel as K, DisclosureButton as Q } from "@headlessui/vue";
3
+ import { ScalarMarkdown as S, ScalarIcon as W } from "@scalar/components";
4
+ import { optimizeValueForDisplay as X, discriminators as Y } from "./helpers/optimizeValueForDisplay.js";
5
+ import L from "./Schema.vue.js";
6
+ import O from "./SchemaDiscriminator.vue.js";
7
7
  import x from "./SchemaPropertyHeading.vue.js";
8
- const ee = {
8
+ import ee from "../../SpecificationExtension/SpecificationExtension.vue.js";
9
+ const ne = {
9
10
  key: 1,
10
11
  class: "property-description"
11
12
  }, te = {
12
13
  key: 2,
13
14
  class: "property-description"
14
- }, ne = {
15
+ }, le = {
15
16
  key: 3,
16
17
  class: "property-enum"
17
- }, le = {
18
+ }, oe = {
18
19
  key: 0,
19
20
  class: "property-list"
20
- }, oe = { class: "property-heading" }, ie = { class: "property-name" }, ae = { class: "property-description" }, se = {
21
+ }, ae = { class: "property-heading" }, ie = { class: "property-name" }, se = { class: "property-description" }, re = {
21
22
  key: 1,
22
23
  class: "property-enum-values"
23
- }, re = { class: "property-enum-value-label" }, pe = { class: "property-enum-value-label" }, me = {
24
+ }, pe = { class: "property-enum-value-label" }, me = { class: "property-enum-value-label" }, ce = {
24
25
  key: 4,
25
26
  class: "children"
26
- }, ce = {
27
+ }, de = {
27
28
  key: 0,
28
29
  class: "children"
29
- }, ve = /* @__PURE__ */ $({
30
+ }, Be = /* @__PURE__ */ $({
30
31
  __name: "SchemaProperty",
31
32
  props: {
32
33
  is: {},
@@ -43,8 +44,8 @@ const ee = {
43
44
  schemas: {},
44
45
  hideHeading: { type: Boolean }
45
46
  },
46
- setup(T) {
47
- const U = T, H = {
47
+ setup(_) {
48
+ const R = _, H = {
48
49
  integer: {
49
50
  _default: "Integer numbers.",
50
51
  int32: "Signed 32-bit integers (commonly used integer type).",
@@ -57,47 +58,45 @@ const ee = {
57
58
  byte: "base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",
58
59
  binary: "binary data, used to describe files"
59
60
  }
60
- }, B = (e, n) => n != null && n.properties || n != null && n.additionalProperties || n != null && n.patternProperties || n != null && n.allOf ? null : e || (n == null ? void 0 : n.description) || null, E = (e) => !e || !H[e.type] ? null : H[e.type][e.format || "_default"], p = (e) => {
61
- var n;
62
- return (e == null ? void 0 : e.enum) || ((n = e == null ? void 0 : e.items) == null ? void 0 : n.enum) || [];
61
+ }, B = (e, t) => t != null && t.properties || t != null && t.additionalProperties || t != null && t.patternProperties || t != null && t.allOf ? null : e || (t == null ? void 0 : t.description) || null, E = (e) => !e || !H[e.type] ? null : H[e.type][e.format || "_default"], p = (e) => {
62
+ var t;
63
+ return (e == null ? void 0 : e.enum) || ((t = e == null ? void 0 : e.items) == null ? void 0 : t.enum) || [];
63
64
  }, C = y(
64
- () => p(t.value).length > 9
65
- ), P = y(() => C.value ? 5 : 9), Z = y(
66
- () => p(t.value).slice(0, P.value)
67
- ), M = y(
68
- () => p(t.value).slice(P.value)
69
- ), t = y(() => Y(U.value));
70
- L.find((e) => !t.value || typeof t.value != "object" ? !1 : e in t.value || t.value.items && typeof t.value.items == "object" && e in t.value.items);
71
- const _ = (e, n, b, g, v) => n || b || g || (e == null ? void 0 : e.deprecated) || (e == null ? void 0 : e.const) || (e == null ? void 0 : e.enum) && e.enum.length === 1 || (e == null ? void 0 : e.type) || (e == null ? void 0 : e.nullable) === !0 || (e == null ? void 0 : e.writeOnly) || (e == null ? void 0 : e.readOnly) || v;
72
- return (e, n) => {
73
- var b;
74
- return l(), f(G(e.is ?? "li"), {
65
+ () => p(n.value).length > 9
66
+ ), P = y(() => C.value ? 5 : 9), T = y(
67
+ () => p(n.value).slice(0, P.value)
68
+ ), U = y(
69
+ () => p(n.value).slice(P.value)
70
+ ), n = y(() => X(R.value)), Z = (e, t, g, b, v) => t || g || b || (e == null ? void 0 : e.deprecated) || (e == null ? void 0 : e.const) || (e == null ? void 0 : e.enum) && e.enum.length === 1 || (e == null ? void 0 : e.type) || (e == null ? void 0 : e.nullable) === !0 || (e == null ? void 0 : e.writeOnly) || (e == null ? void 0 : e.readOnly) || v;
71
+ return (e, t) => {
72
+ var g;
73
+ return l(), h(M(e.is ?? "li"), {
75
74
  class: I(["property", [
76
- (B(e.description, t.value), ""),
75
+ (B(e.description, n.value), ""),
77
76
  `property--level-${e.level}`,
78
77
  {
79
78
  "property--compact": e.compact,
80
- "property--deprecated": (b = t.value) == null ? void 0 : b.deprecated
79
+ "property--deprecated": (g = n.value) == null ? void 0 : g.deprecated
81
80
  }
82
81
  ]])
83
82
  }, {
84
83
  default: m(() => {
85
- var g, v, w, j, q, A, F, N, V;
84
+ var b, v, w, q, A, F, N, V, j;
86
85
  return [
87
- _(
88
- t.value,
86
+ Z(
87
+ n.value,
89
88
  e.name,
90
89
  e.additional,
91
90
  e.pattern,
92
91
  e.required
93
- ) ? (l(), f(x, {
92
+ ) ? (l(), h(x, {
94
93
  key: 0,
95
94
  additional: e.additional,
96
- enum: p(t.value).length > 0,
95
+ enum: p(n.value).length > 0,
97
96
  pattern: e.pattern,
98
97
  required: e.required,
99
- value: t.value
100
- }, J({ _: 2 }, [
98
+ value: n.value
99
+ }, G({ _: 2 }, [
101
100
  e.name ? {
102
101
  name: "name",
103
102
  fn: m(() => [
@@ -105,61 +104,61 @@ const ee = {
105
104
  ]),
106
105
  key: "0"
107
106
  } : void 0,
108
- (g = t.value) != null && g.example ? {
107
+ (b = n.value) != null && b.example ? {
109
108
  name: "example",
110
109
  fn: m(() => [
111
- D(" Example: " + c(t.value.example), 1)
110
+ D(" Example: " + c(n.value.example), 1)
112
111
  ]),
113
112
  key: "1"
114
113
  } : void 0
115
- ]), 1032, ["additional", "enum", "pattern", "required", "value"])) : a("", !0),
116
- B(e.description, t.value) ? (l(), i("div", ee, [
117
- s(r(S), {
118
- value: B(e.description, t.value)
114
+ ]), 1032, ["additional", "enum", "pattern", "required", "value"])) : r("", !0),
115
+ B(e.description, n.value) ? (l(), a("div", ne, [
116
+ i(s(S), {
117
+ value: B(e.description, n.value)
119
118
  }, null, 8, ["value"])
120
- ])) : E(t.value) ? (l(), i("div", te, [
121
- s(r(S), {
122
- value: E(t.value) || ""
119
+ ])) : E(n.value) ? (l(), a("div", te, [
120
+ i(s(S), {
121
+ value: E(n.value) || ""
123
122
  }, null, 8, ["value"])
124
- ])) : a("", !0),
125
- ((v = p(t.value)) == null ? void 0 : v.length) > 0 ? (l(), i("div", ne, [
126
- Array.isArray((w = t.value) == null ? void 0 : w["x-enumDescriptions"]) ? (l(), i("div", le, [
127
- (l(!0), i(d, null, k(p(t.value), (o) => (l(), i("div", {
123
+ ])) : r("", !0),
124
+ ((v = p(n.value)) == null ? void 0 : v.length) > 0 ? (l(), a("div", le, [
125
+ Array.isArray((w = n.value) == null ? void 0 : w["x-enumDescriptions"]) ? (l(), a("div", oe, [
126
+ (l(!0), a(d, null, k(p(n.value), (o) => (l(), a("div", {
128
127
  key: o,
129
128
  class: "property"
130
129
  }, [
131
- h("div", oe, [
132
- h("div", ie, c(o), 1)
130
+ f("div", ae, [
131
+ f("div", ie, c(o), 1)
133
132
  ]),
134
- h("div", ae, [
135
- s(r(S), {
136
- value: t.value["x-enumDescriptions"][o]
133
+ f("div", se, [
134
+ i(s(S), {
135
+ value: n.value["x-enumDescriptions"][o]
137
136
  }, null, 8, ["value"])
138
137
  ])
139
138
  ]))), 128))
140
- ])) : (l(), i("ul", se, [
141
- (l(!0), i(d, null, k(Z.value, (o) => (l(), i("li", {
139
+ ])) : (l(), a("ul", re, [
140
+ (l(!0), a(d, null, k(T.value, (o) => (l(), a("li", {
142
141
  key: o,
143
142
  class: "property-enum-value"
144
143
  }, [
145
- h("span", re, c(o), 1)
144
+ f("span", pe, c(o), 1)
146
145
  ]))), 128)),
147
- C.value ? (l(), f(r(K), { key: 0 }, {
146
+ C.value ? (l(), h(s(J), { key: 0 }, {
148
147
  default: m(({ open: o }) => [
149
- s(r(Q), null, {
148
+ i(s(K), null, {
150
149
  default: m(() => [
151
- (l(!0), i(d, null, k(M.value, (u) => (l(), i("li", {
150
+ (l(!0), a(d, null, k(U.value, (u) => (l(), a("li", {
152
151
  key: u,
153
152
  class: "property-enum-value"
154
153
  }, [
155
- h("span", pe, c(u), 1)
154
+ f("span", me, c(u), 1)
156
155
  ]))), 128))
157
156
  ]),
158
157
  _: 1
159
158
  }),
160
- s(r(W), { class: "enum-toggle-button" }, {
159
+ i(s(Q), { class: "enum-toggle-button" }, {
161
160
  default: m(() => [
162
- s(r(X), {
161
+ i(s(W), {
163
162
  class: I(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": o }]),
164
163
  icon: "Add",
165
164
  size: "sm"
@@ -170,33 +169,33 @@ const ee = {
170
169
  }, 1024)
171
170
  ]),
172
171
  _: 1
173
- })) : a("", !0)
172
+ })) : r("", !0)
174
173
  ]))
175
- ])) : a("", !0),
176
- ((j = t.value) == null ? void 0 : j.type) === "object" && ((q = t.value) != null && q.properties || (A = t.value) != null && A.additionalProperties) ? (l(), i("div", me, [
177
- s(O, {
174
+ ])) : r("", !0),
175
+ ((q = n.value) == null ? void 0 : q.type) === "object" && ((A = n.value) != null && A.properties || (F = n.value) != null && F.additionalProperties) ? (l(), a("div", ce, [
176
+ i(L, {
178
177
  compact: e.compact,
179
178
  level: e.level + 1,
180
179
  name: e.name,
181
180
  noncollapsible: e.noncollapsible,
182
- value: t.value
181
+ value: n.value
183
182
  }, null, 8, ["compact", "level", "name", "noncollapsible", "value"])
184
- ])) : a("", !0),
185
- (F = t.value) != null && F.items && typeof t.value.items == "object" && "type" in t.value.items && typeof t.value.items.type == "string" ? (l(), i(d, { key: 5 }, [
186
- ["object"].includes((V = (N = t.value) == null ? void 0 : N.items) == null ? void 0 : V.type) ? (l(), i("div", ce, [
187
- s(O, {
183
+ ])) : r("", !0),
184
+ (N = n.value) != null && N.items && typeof n.value.items == "object" && "type" in n.value.items && typeof n.value.items.type == "string" ? (l(), a(d, { key: 5 }, [
185
+ ["object"].includes((j = (V = n.value) == null ? void 0 : V.items) == null ? void 0 : j.type) ? (l(), a("div", de, [
186
+ i(L, {
188
187
  compact: e.compact,
189
188
  level: e.level + 1,
190
189
  name: e.name,
191
190
  noncollapsible: e.noncollapsible,
192
- value: t.value.items
191
+ value: n.value.items
193
192
  }, null, 8, ["compact", "level", "name", "noncollapsible", "value"])
194
- ])) : a("", !0)
195
- ], 64)) : a("", !0),
196
- (l(!0), i(d, null, k(r(L), (o) => {
193
+ ])) : r("", !0)
194
+ ], 64)) : r("", !0),
195
+ (l(!0), a(d, null, k(s(Y), (o) => {
197
196
  var u, z;
198
- return l(), i(d, { key: o }, [
199
- (u = t.value) != null && u[o] ? (l(), f(R, {
197
+ return l(), a(d, { key: o }, [
198
+ (u = n.value) != null && u[o] ? (l(), h(O, {
200
199
  key: 0,
201
200
  compact: e.compact,
202
201
  discriminator: o,
@@ -205,8 +204,8 @@ const ee = {
205
204
  name: e.name,
206
205
  noncollapsible: e.noncollapsible,
207
206
  schemas: e.schemas,
208
- value: t.value
209
- }, null, 8, ["compact", "discriminator", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : (z = t.value) != null && z.items && typeof o == "string" && typeof t.value.items == "object" && o in t.value.items && Array.isArray(t.value.items[o]) && e.level < 3 ? (l(), f(R, {
207
+ value: n.value
208
+ }, null, 8, ["compact", "discriminator", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : (z = n.value) != null && z.items && typeof o == "string" && typeof n.value.items == "object" && o in n.value.items && Array.isArray(n.value.items[o]) && e.level < 3 ? (l(), h(O, {
210
209
  key: 1,
211
210
  compact: e.compact,
212
211
  discriminator: o,
@@ -215,10 +214,11 @@ const ee = {
215
214
  name: e.name,
216
215
  noncollapsible: e.noncollapsible,
217
216
  schemas: e.schemas,
218
- value: t.value.items
219
- }, null, 8, ["compact", "discriminator", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : a("", !0)
217
+ value: n.value.items
218
+ }, null, 8, ["compact", "discriminator", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : r("", !0)
220
219
  ], 64);
221
- }), 128))
220
+ }), 128)),
221
+ i(s(ee), { value: n.value }, null, 8, ["value"])
222
222
  ];
223
223
  }),
224
224
  _: 1
@@ -227,5 +227,5 @@ const ee = {
227
227
  }
228
228
  });
229
229
  export {
230
- ve as default
230
+ Be as default
231
231
  };
@@ -1 +1 @@
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
+ {"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Tag.vue"],"names":[],"mappings":"AAuEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AACjE,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAqB/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;;AAqKF,wBAOG"}
@@ -1,17 +1,18 @@
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";
1
+ import { defineComponent as c, computed as g, openBlock as n, createBlock as m, unref as e, withCtx as a, withDirectives as C, createVNode as t, createTextVNode as d, toDisplayString as S, createCommentVNode as v, vShow as h } from "vue";
2
2
  import { ScalarMarkdown as w } from "@scalar/components";
3
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";
4
+ import { useConfig as _ } from "../../../hooks/useConfig.js";
5
+ import { useNavState as k } from "../../../hooks/useNavState.js";
6
+ import y from "./OperationsList.vue.js";
7
+ import I from "../../Section/Section.vue.js";
8
+ import T from "../../Section/SectionHeader.vue.js";
9
9
  import B from "../../Anchor/Anchor.vue.js";
10
10
  import L from "../../Section/SectionHeaderTag.vue.js";
11
11
  import V from "../../Section/SectionContent.vue.js";
12
12
  import b from "../../Section/SectionColumns.vue.js";
13
13
  import p from "../../Section/SectionColumn.vue.js";
14
- const J = /* @__PURE__ */ c({
14
+ import D from "../../SpecificationExtension/SpecificationExtension.vue.js";
15
+ const K = /* @__PURE__ */ c({
15
16
  __name: "Tag",
16
17
  props: {
17
18
  id: {},
@@ -21,28 +22,28 @@ const J = /* @__PURE__ */ c({
21
22
  isCollapsed: { type: Boolean }
22
23
  },
23
24
  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
+ const l = s, { getTagId: u } = k(), i = _(), f = g(() => l.tag["x-displayName"] ?? l.tag.name);
26
+ return (o, r) => (n(), m(e(I), {
26
27
  id: o.id,
27
28
  label: o.tag.name.toUpperCase(),
28
29
  role: "none"
29
30
  }, {
30
- default: t(() => [
31
- C(a(e(_), null, {
32
- default: t(() => [
33
- a(e(B), {
34
- id: e(f)(o.tag)
31
+ default: a(() => [
32
+ C(t(e(T), null, {
33
+ default: a(() => [
34
+ t(e(B), {
35
+ id: e(u)(o.tag)
35
36
  }, {
36
- default: t(() => [
37
- a(e(L), {
37
+ default: a(() => [
38
+ t(e(L), {
38
39
  id: o.headerId,
39
40
  level: 2
40
41
  }, {
41
- default: t(() => [
42
- m(S(u.value) + " ", 1),
43
- o.isCollapsed ? (n(), d(N, { key: 0 }, {
44
- default: t(() => r[0] || (r[0] = [
45
- m(" (Collapsed)")
42
+ default: a(() => [
43
+ d(S(f.value) + " ", 1),
44
+ o.isCollapsed ? (n(), m(N, { key: 0 }, {
45
+ default: a(() => r[0] || (r[0] = [
46
+ d(" (Collapsed)")
46
47
  ])),
47
48
  _: 1
48
49
  })) : v("", !0)
@@ -57,15 +58,15 @@ const J = /* @__PURE__ */ c({
57
58
  }, 512), [
58
59
  [h, !e(i).isLoading]
59
60
  ]),
60
- a(e(V), {
61
+ t(e(V), {
61
62
  loading: e(i).isLoading
62
63
  }, {
63
- default: t(() => [
64
- a(e(b), null, {
65
- default: t(() => [
66
- a(e(p), null, {
67
- default: t(() => [
68
- a(e(w), {
64
+ default: a(() => [
65
+ t(e(b), null, {
66
+ default: a(() => [
67
+ t(e(p), null, {
68
+ default: a(() => [
69
+ t(e(w), {
69
70
  clamp: o.isCollapsed ? "7" : !1,
70
71
  value: o.tag.description,
71
72
  withImages: ""
@@ -73,9 +74,9 @@ const J = /* @__PURE__ */ c({
73
74
  ]),
74
75
  _: 1
75
76
  }),
76
- a(e(p), null, {
77
- default: t(() => [
78
- a(I, {
77
+ t(e(p), null, {
78
+ default: a(() => [
79
+ t(y, {
79
80
  collection: o.collection,
80
81
  tag: o.tag
81
82
  }, null, 8, ["collection", "tag"])
@@ -87,12 +88,13 @@ const J = /* @__PURE__ */ c({
87
88
  })
88
89
  ]),
89
90
  _: 1
90
- }, 8, ["loading"])
91
+ }, 8, ["loading"]),
92
+ t(e(D), { value: o.tag }, null, 8, ["value"])
91
93
  ]),
92
94
  _: 1
93
95
  }, 8, ["id", "label"]));
94
96
  }
95
97
  });
96
98
  export {
97
- J as default
99
+ K as default
98
100
  };
@@ -0,0 +1,9 @@
1
+ type __VLS_Props = {
2
+ /**
3
+ * Any value that can contain OpenAPI specification extensions.
4
+ */
5
+ value: Record<string, unknown> | undefined;
6
+ };
7
+ 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
+ export default _default;
9
+ //# sourceMappingURL=SpecificationExtension.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpecificationExtension.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SpecificationExtension/SpecificationExtension.vue"],"names":[],"mappings":"AAmEA,KAAK,WAAW,GAAG;IACjB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAA;CAC3C,CAAC;;AA0GF,wBAMG"}
@@ -0,0 +1,35 @@
1
+ import { defineComponent as f, openBlock as o, createElementBlock as d, Fragment as E, renderList as _, unref as s, createBlock as a, withCtx as g, createElementVNode as x, resolveDynamicComponent as C, mergeProps as v, createCommentVNode as k } from "vue";
2
+ import { ScalarErrorBoundary as y } from "@scalar/components";
3
+ import { usePluginManager as h } from "../../plugins/hooks/usePluginManager.js";
4
+ const B = { class: "text-base" }, j = /* @__PURE__ */ f({
5
+ __name: "SpecificationExtension",
6
+ props: {
7
+ value: {}
8
+ },
9
+ setup(c) {
10
+ const { getSpecificationExtensions: m } = h();
11
+ function i(e) {
12
+ return Object.keys(e ?? {}).filter(
13
+ (t) => t.startsWith("x-")
14
+ );
15
+ }
16
+ function u(e) {
17
+ return e.flatMap((t) => m(t)).filter((t) => t.component);
18
+ }
19
+ const l = i(c.value), p = u(l);
20
+ return (e, t) => typeof e.value == "object" ? (o(!0), d(E, { key: 0 }, _(s(p), (n) => (o(), a(s(y), null, {
21
+ default: g(() => {
22
+ var r;
23
+ return [
24
+ x("div", B, [
25
+ (o(), a(C(n.component), v({ ref_for: !0 }, { [n.name]: (r = e.value) == null ? void 0 : r[n.name] }), null, 16))
26
+ ])
27
+ ];
28
+ }),
29
+ _: 2
30
+ }, 1024))), 256)) : k("", !0);
31
+ }
32
+ });
33
+ export {
34
+ j as default
35
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./SpecificationExtension.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,2 @@
1
+ export { default as SpecificationExtension } from './SpecificationExtension.vue.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SpecificationExtension/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,8BAA8B,CAAA"}