@scalar/api-reference 1.28.31 → 1.28.32

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AA8nBA,OAAO,EAGL,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAA;AA8BvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,SAAS,CAAA;AAIhB,KAAK,WAAW,GAAG,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,CAAC;AAuRxD,iBAAS,cAAc;WAoPT,OAAO,IAA6B;;wBAlfZ,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;;;;;EAuf/D;AAwBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;YAriBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFA4iB9D,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":"ApiReferenceLayout.vue.d.ts","sourceRoot":"","sources":["../../src/components/ApiReferenceLayout.vue"],"names":[],"mappings":"AAgoBA,OAAO,EAGL,KAAK,OAAO,EACb,MAAM,gBAAgB,CAAA;AA8BvB,OAAO,KAAK,EACV,oBAAoB,EAEpB,kBAAkB,EACnB,MAAM,SAAS,CAAA;AAIhB,KAAK,WAAW,GAAG,IAAI,CAAC,oBAAoB,EAAE,QAAQ,CAAC,CAAC;AAuRxD,iBAAS,cAAc;WAoPT,OAAO,IAA6B;;wBAlfZ,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;wBAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;iCAA1B,kBAAkB,KAAK,GAAG;+BAA1B,kBAAkB,KAAK,GAAG;;;;;;EAuf/D;AAwBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;YAriBqB,OAAO;eAAS,MAAM;;;;;;;;YAAtB,OAAO;eAAS,MAAM;;;;;;kFA4iB9D,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,8 +1,8 @@
1
1
  import o from "./ApiReferenceLayout.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
- import e from "../_virtual/_plugin-vue_export-helper.js";
5
- const m = /* @__PURE__ */ e(o, [["__scopeId", "data-v-e9aedb7d"]]);
4
+ import t from "../_virtual/_plugin-vue_export-helper.js";
5
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-51b3ff26"]]);
6
6
  export {
7
7
  m as default
8
8
  };
@@ -1,17 +1,17 @@
1
- import { defineComponent as ie, computed as h, ref as R, onBeforeMount as B, onMounted as le, onUnmounted as de, watch as $, onServerPrefetch as ue, useSSRContext as ce, useId as pe, provide as b, createElementBlock as y, openBlock as C, Fragment as _, createElementVNode as d, createVNode as m, unref as i, normalizeStyle as fe, normalizeClass as me, createCommentVNode as E, withDirectives as ve, renderSlot as u, normalizeProps as c, guardReactiveProps as p, withCtx as v, vShow as Se, createSlots as ge } from "vue";
1
+ import { defineComponent as ie, computed as h, ref as R, onBeforeMount as B, onMounted as le, onUnmounted as de, watch as $, onServerPrefetch as ue, useSSRContext as ce, useId as pe, provide as b, createElementBlock as y, openBlock as C, Fragment as N, createElementVNode as d, createVNode as m, unref as i, normalizeStyle as fe, normalizeClass as me, createCommentVNode as E, withDirectives as ve, renderSlot as u, normalizeProps as c, guardReactiveProps as p, withCtx as v, vShow as Se, createSlots as ge } from "vue";
2
2
  import { provideUseId as he } from "@headlessui/vue";
3
3
  import { LAYOUT_SYMBOL as be } from "@scalar/api-client/hooks";
4
4
  import { createWorkspaceStore as we, WORKSPACE_SYMBOL as ye, createActiveEntitiesStore as Ce, ACTIVE_ENTITIES_SYMBOL as Te } from "@scalar/api-client/store";
5
5
  import { addScalarClassesToHeadless as Re, ScalarErrorBoundary as $e } from "@scalar/components";
6
- import { defaultStateFactory as N } from "@scalar/oas-utils/helpers";
6
+ import { defaultStateFactory as _ } from "@scalar/oas-utils/helpers";
7
7
  import { hasObtrusiveScrollbars as Ee, getThemeStyles as Oe } from "@scalar/themes";
8
8
  import { apiReferenceConfigurationSchema as Ie } from "@scalar/types/api-reference";
9
9
  import { useToasts as Le, ScalarToasts as Me } from "@scalar/use-toasts";
10
10
  import { useMediaQuery as Pe, useResizeObserver as ke, useDebounceFn as Fe } from "@vueuse/core";
11
11
  import Ae from "./GettingStarted.vue.js";
12
12
  import { CONFIGURATION_SYMBOL as Be } from "../hooks/useConfig.js";
13
- import { useHttpClientStore as _e } from "../stores/useHttpClientStore.js";
14
- import { downloadSpecBus as D, downloadSpecFile as Ne } from "../helpers/specDownloads.js";
13
+ import { useHttpClientStore as Ne } from "../stores/useHttpClientStore.js";
14
+ import { downloadSpecBus as D, downloadSpecFile as _e } from "../helpers/specDownloads.js";
15
15
  import { PLUGIN_MANAGER_SYMBOL as De } from "../plugins/hooks/usePluginManager.js";
16
16
  import { createPluginManager as He } from "../plugins/plugin-manager.js";
17
17
  import Ue from "./Sidebar/Sidebar.vue.js";
@@ -74,7 +74,7 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
74
74
  B(() => Re()), le(() => {
75
75
  var o, s, r;
76
76
  history.scrollRestoration = "manual", D.on(({ specTitle: n }) => {
77
- Ne(f.rawSpec, n);
77
+ _e(f.rawSpec, n);
78
78
  });
79
79
  const e = (s = (o = S.value) == null ? void 0 : o.parentElement) == null ? void 0 : s.getBoundingClientRect(), a = (r = S.value) == null ? void 0 : r.getBoundingClientRect();
80
80
  if (e && a) {
@@ -101,7 +101,7 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
101
101
  }), $(() => f.parsedSpec, q, { deep: !0 }), ue(() => {
102
102
  var a, o;
103
103
  const e = ce();
104
- if (e && (e.payload || (e.payload = { data: N() }), (a = e.payload).data || (a.data = N()), t.value.pathRouting)) {
104
+ if (e && (e.payload || (e.payload = { data: _() }), (a = e.payload).data || (a.data = _()), t.value.pathRouting)) {
105
105
  const s = I(e.url);
106
106
  ee.value = s, e.payload.data.hash = s;
107
107
  for (const r in w)
@@ -149,7 +149,7 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
149
149
  { immediate: !0 }
150
150
  );
151
151
  }
152
- const { setExcludedClients: re, setDefaultHttpClient: se } = _e();
152
+ const { setExcludedClients: re, setDefaultHttpClient: se } = Ne();
153
153
  A("defaultHttpClient", se), A("hiddenClients", re), K.value = t.value.hideModels ?? !1, Q.value = t.value.defaultOpenAllTags ?? !1;
154
154
  const ne = h(
155
155
  () => `<style>
@@ -159,7 +159,7 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
159
159
  );
160
160
  return (e, a) => {
161
161
  var o, s, r;
162
- return C(), y(_, null, [
162
+ return C(), y(N, null, [
163
163
  d("div", { innerHTML: ne.value }, null, 8, je),
164
164
  d("div", {
165
165
  ref_key: "documentEl",
@@ -216,7 +216,7 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
216
216
  ], 512), [
217
217
  [Se, t.value.isEditable]
218
218
  ]),
219
- ae.value ? (C(), y(_, { key: 1 }, [
219
+ ae.value ? (C(), y(N, { key: 1 }, [
220
220
  d("main", {
221
221
  "aria-label": `Open API Documentation for ${(s = e.parsedSpec.info) == null ? void 0 : s.title}`,
222
222
  class: "references-rendered"
@@ -255,7 +255,10 @@ const je = ["innerHTML"], Ke = { class: "references-header" }, Qe = ["aria-label
255
255
  u(e.$slots, "footer", c(p(l.value)), void 0, !0)
256
256
  ])) : E("", !0)
257
257
  ], 64)) : E("", !0),
258
- m(i(ze), { configuration: t.value }, null, 8, ["configuration"])
258
+ m(i(ze), {
259
+ configuration: t.value,
260
+ parsedSpec: e.parsedSpec
261
+ }, null, 8, ["configuration", "parsedSpec"])
259
262
  ], 38),
260
263
  m(i(Me))
261
264
  ], 64);
@@ -18,10 +18,7 @@ declare function __VLS_template(): {
18
18
  rootEl: HTMLDivElement;
19
19
  };
20
20
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
21
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
22
- required: boolean;
23
- withExamples: boolean;
24
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
21
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
25
22
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
26
23
  export default _default;
27
24
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AAyRA,OAAO,KAAK,EAEV,SAAS,EACT,SAAS,EACT,WAAW,EACZ,MAAM,uBAAuB,CAAA;AAY9B,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,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;AA0DJ,iBAAS,cAAc;WA+TT,OAAO,IAA6B;;sBATxB,GAAG;sBACH,GAAG;;;;EAa5B;AAiBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;cAzZN,OAAO;kBAGH,OAAO;wFA8ZxB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAgBpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AAuRA,OAAO,KAAK,EAEV,SAAS,EACT,SAAS,EACT,WAAW,EACZ,MAAM,uBAAuB,CAAA;AAY9B,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,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;AAoDF,iBAAS,cAAc;WA+TT,OAAO,IAA6B;;sBATxB,GAAG;sBACH,GAAG;;;;EAa5B;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,6SAOnB,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,7 +1,7 @@
1
1
  import o from "./SchemaPropertyHeading.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-a7691560"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-9d959541"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,32 +1,32 @@
1
- import { defineComponent as j, createElementBlock as s, openBlock as i, createCommentVNode as m, createBlock as l, normalizeClass as I, renderSlot as B, Fragment as a, createTextVNode as r, toDisplayString as d, createVNode as u, unref as k, withCtx as n } from "vue";
2
- import { stringify as b } from "flatted";
3
- import { discriminators as M } from "./helpers/optimizeValueForDisplay.js";
4
- import V from "./SchemaPropertyExamples.vue.js";
5
- import x from "../../ScreenReader.vue.js";
6
- import p from "./SchemaPropertyDetail.vue.js";
7
- import N from "../../Badge/Badge.vue.js";
8
- const A = { class: "property-heading" }, C = {
1
+ import { defineComponent as T, createElementBlock as i, openBlock as t, createCommentVNode as r, createBlock as o, normalizeClass as z, renderSlot as E, Fragment as s, createTextVNode as a, toDisplayString as n, createVNode as p, unref as v, withCtx as u } from "vue";
2
+ import { stringify as L } from "flatted";
3
+ import { discriminators as H } from "./helpers/optimizeValueForDisplay.js";
4
+ import R from "./SchemaPropertyExamples.vue.js";
5
+ import f from "../../ScreenReader.vue.js";
6
+ import m from "./SchemaPropertyDetail.vue.js";
7
+ import $ from "../../Badge/Badge.vue.js";
8
+ const G = { class: "property-heading" }, J = {
9
9
  key: 1,
10
10
  class: "property-additional"
11
- }, E = {
11
+ }, K = {
12
12
  key: 2,
13
13
  class: "property-pattern"
14
- }, L = {
14
+ }, Q = {
15
15
  key: 3,
16
16
  class: "property-deprecated"
17
- }, $ = {
17
+ }, U = {
18
18
  key: 4,
19
19
  class: "property-const"
20
- }, D = {
20
+ }, W = {
21
21
  key: 7,
22
22
  class: "property-write-only"
23
- }, F = {
23
+ }, X = {
24
24
  key: 8,
25
25
  class: "property-read-only"
26
- }, O = {
26
+ }, Y = {
27
27
  key: 9,
28
28
  class: "property-required"
29
- }, Q = /* @__PURE__ */ j({
29
+ }, ae = /* @__PURE__ */ T({
30
30
  __name: "SchemaPropertyHeading",
31
31
  props: {
32
32
  value: {},
@@ -37,214 +37,214 @@ const A = { class: "property-heading" }, C = {
37
37
  withExamples: { type: Boolean, default: !0 },
38
38
  schemas: {}
39
39
  },
40
- setup(S) {
41
- const { value: e, schemas: f } = S, q = M.find((o) => !e || typeof e != "object" ? !1 : o in e || e.items && typeof e.items == "object" && o in e.items), w = (o) => Array.isArray(o == null ? void 0 : o.default) && o.default.length === 1 ? o.default[0] : o == null ? void 0 : o.default, P = (o) => {
42
- if (!o)
40
+ setup(d) {
41
+ const D = H.find((e) => !d.value || typeof d.value != "object" ? !1 : e in d.value || d.value.items && typeof d.value.items == "object" && e in d.value.items), F = (e) => Array.isArray(e == null ? void 0 : e.default) && e.default.length === 1 ? e.default[0] : e == null ? void 0 : e.default, O = (e) => {
42
+ if (!e)
43
43
  return null;
44
- if (o.name)
45
- return o.name;
46
- if (f && typeof f == "object") {
47
- for (const [t, y] of Object.entries(f))
48
- if (b(y) === b(o))
49
- return t;
44
+ if (e.name)
45
+ return e.name;
46
+ if (d.schemas && typeof d.schemas == "object") {
47
+ for (const [l, y] of Object.entries(d.schemas))
48
+ if (L(y) === L(e))
49
+ return l;
50
50
  }
51
51
  return null;
52
52
  };
53
- return (o, t) => {
54
- var y;
55
- return i(), s("div", A, [
56
- o.$slots.name ? (i(), s("div", {
53
+ return (e, l) => {
54
+ var y, k, g, B, b, N, S, q, w, P, j, I, M;
55
+ return t(), i("div", G, [
56
+ e.$slots.name ? (t(), i("div", {
57
57
  key: 0,
58
- class: I(["property-name", { deprecated: e == null ? void 0 : e.deprecated }])
58
+ class: z(["property-name", { deprecated: (y = e.value) == null ? void 0 : y.deprecated }])
59
59
  }, [
60
- o.pattern ? (i(), s(a, { key: 1 }, [
61
- t[0] || (t[0] = r("/")),
62
- B(o.$slots, "name", {}, void 0, !0),
63
- t[1] || (t[1] = r("/"))
64
- ], 64)) : B(o.$slots, "name", { key: 0 }, void 0, !0)
65
- ], 2)) : m("", !0),
66
- o.additional ? (i(), s("div", C, [
67
- e != null && e["x-additionalPropertiesName"] ? (i(), s(a, { key: 0 }, [
68
- r(d(e["x-additionalPropertiesName"]), 1)
69
- ], 64)) : (i(), s(a, { key: 1 }, [
70
- r("additional properties")
60
+ e.pattern ? (t(), i(s, { key: 1 }, [
61
+ l[0] || (l[0] = a("/")),
62
+ E(e.$slots, "name", {}, void 0, !0),
63
+ l[1] || (l[1] = a("/"))
64
+ ], 64)) : E(e.$slots, "name", { key: 0 }, void 0, !0)
65
+ ], 2)) : r("", !0),
66
+ e.additional ? (t(), i("div", J, [
67
+ (k = e.value) != null && k["x-additionalPropertiesName"] ? (t(), i(s, { key: 0 }, [
68
+ a(n(e.value["x-additionalPropertiesName"]), 1)
69
+ ], 64)) : (t(), i(s, { key: 1 }, [
70
+ a("additional properties")
71
71
  ], 64))
72
- ])) : m("", !0),
73
- o.pattern ? (i(), s("div", E, [
74
- u(k(N), null, {
75
- default: n(() => t[2] || (t[2] = [
76
- r("pattern")
72
+ ])) : r("", !0),
73
+ e.pattern ? (t(), i("div", K, [
74
+ p(v($), null, {
75
+ default: u(() => l[2] || (l[2] = [
76
+ a("pattern")
77
77
  ])),
78
78
  _: 1
79
79
  })
80
- ])) : m("", !0),
81
- e != null && e.deprecated ? (i(), s("div", L, [
82
- u(k(N), null, {
83
- default: n(() => t[3] || (t[3] = [
84
- r("deprecated")
80
+ ])) : r("", !0),
81
+ (g = e.value) != null && g.deprecated ? (t(), i("div", Q, [
82
+ p(v($), null, {
83
+ default: u(() => l[3] || (l[3] = [
84
+ a("deprecated")
85
85
  ])),
86
86
  _: 1
87
87
  })
88
- ])) : m("", !0),
89
- e != null && e.const || e != null && e.enum && e.enum.length === 1 ? (i(), s("div", $, [
90
- u(p, { truncate: "" }, {
91
- prefix: n(() => t[4] || (t[4] = [
92
- r("const:")
88
+ ])) : r("", !0),
89
+ (B = e.value) != null && B.const || (b = e.value) != null && b.enum && e.value.enum.length === 1 ? (t(), i("div", U, [
90
+ p(m, { truncate: "" }, {
91
+ prefix: u(() => l[4] || (l[4] = [
92
+ a("const:")
93
93
  ])),
94
- default: n(() => [
95
- r(" " + d(e.const ?? e.enum[0]), 1)
94
+ default: u(() => [
95
+ a(" " + n(e.value.const ?? e.value.enum[0]), 1)
96
96
  ]),
97
97
  _: 1
98
98
  })
99
- ])) : e != null && e.type ? (i(), s(a, { key: 5 }, [
100
- u(p, null, {
101
- default: n(() => {
102
- var g;
99
+ ])) : (N = e.value) != null && N.type ? (t(), i(s, { key: 5 }, [
100
+ p(m, null, {
101
+ default: u(() => {
102
+ var V, A, C;
103
103
  return [
104
- u(x, null, {
105
- default: n(() => t[5] || (t[5] = [
106
- r("Type:")
104
+ p(f, null, {
105
+ default: u(() => l[5] || (l[5] = [
106
+ a("Type:")
107
107
  ])),
108
108
  _: 1
109
109
  }),
110
- (g = e == null ? void 0 : e.items) != null && g.type ? (i(), s(a, { key: 0 }, [
111
- r(d(e.type) + " " + d(P(e.items) || e.items.type) + "[] ", 1)
112
- ], 64)) : (i(), s(a, { key: 1 }, [
113
- r(d(Array.isArray(e.type) ? e.type.join(" | ") : e.type) + " " + d(e != null && e.nullable ? " | nullable" : ""), 1)
110
+ (A = (V = e.value) == null ? void 0 : V.items) != null && A.type ? (t(), i(s, { key: 0 }, [
111
+ a(n(e.value.type) + " " + n(O(e.value.items) || e.value.items.type) + "[] ", 1)
112
+ ], 64)) : (t(), i(s, { key: 1 }, [
113
+ a(n(Array.isArray(e.value.type) ? e.value.type.join(" | ") : e.value.type) + " " + n((C = e.value) != null && C.nullable ? " | nullable" : ""), 1)
114
114
  ], 64)),
115
- e.minItems || e.maxItems ? (i(), s(a, { key: 2 }, [
116
- r(d(e.minItems) + "…" + d(e.maxItems), 1)
117
- ], 64)) : m("", !0)
115
+ e.value.minItems || e.value.maxItems ? (t(), i(s, { key: 2 }, [
116
+ a(n(e.value.minItems) + "…" + n(e.value.maxItems), 1)
117
+ ], 64)) : r("", !0)
118
118
  ];
119
119
  }),
120
120
  _: 1
121
121
  }),
122
- e.minLength ? (i(), l(p, { key: 0 }, {
123
- prefix: n(() => t[6] || (t[6] = [
124
- r("min:")
122
+ e.value.minLength ? (t(), o(m, { key: 0 }, {
123
+ prefix: u(() => l[6] || (l[6] = [
124
+ a("min:")
125
125
  ])),
126
- default: n(() => [
127
- r(" " + d(e.minLength), 1)
126
+ default: u(() => [
127
+ a(" " + n(e.value.minLength), 1)
128
128
  ]),
129
129
  _: 1
130
- })) : m("", !0),
131
- e.maxLength ? (i(), l(p, { key: 1 }, {
132
- prefix: n(() => t[7] || (t[7] = [
133
- r("max:")
130
+ })) : r("", !0),
131
+ e.value.maxLength ? (t(), o(m, { key: 1 }, {
132
+ prefix: u(() => l[7] || (l[7] = [
133
+ a("max:")
134
134
  ])),
135
- default: n(() => [
136
- r(" " + d(e.maxLength), 1)
135
+ default: u(() => [
136
+ a(" " + n(e.value.maxLength), 1)
137
137
  ]),
138
138
  _: 1
139
- })) : m("", !0),
140
- e.uniqueItems ? (i(), l(p, { key: 2 }, {
141
- default: n(() => t[8] || (t[8] = [
142
- r(" unique! ")
139
+ })) : r("", !0),
140
+ e.value.uniqueItems ? (t(), o(m, { key: 2 }, {
141
+ default: u(() => l[8] || (l[8] = [
142
+ a(" unique! ")
143
143
  ])),
144
144
  _: 1
145
- })) : m("", !0),
146
- e.format ? (i(), l(p, { key: 3 }, {
147
- default: n(() => [
148
- u(x, null, {
149
- default: n(() => t[9] || (t[9] = [
150
- r("Format:")
145
+ })) : r("", !0),
146
+ e.value.format ? (t(), o(m, { key: 3 }, {
147
+ default: u(() => [
148
+ p(f, null, {
149
+ default: u(() => l[9] || (l[9] = [
150
+ a("Format:")
151
151
  ])),
152
152
  _: 1
153
153
  }),
154
- r(" " + d(e.format), 1)
154
+ a(" " + n(e.value.format), 1)
155
155
  ]),
156
156
  _: 1
157
- })) : m("", !0),
158
- e.minimum !== void 0 && e.exclusiveMinimum ? (i(), l(p, { key: 4 }, {
159
- prefix: n(() => t[10] || (t[10] = [
160
- r("greater than:")
157
+ })) : r("", !0),
158
+ e.value.minimum !== void 0 && e.value.exclusiveMinimum ? (t(), o(m, { key: 4 }, {
159
+ prefix: u(() => l[10] || (l[10] = [
160
+ a("greater than:")
161
161
  ])),
162
- default: n(() => [
163
- r(" " + d(e.minimum), 1)
162
+ default: u(() => [
163
+ a(" " + n(e.value.minimum), 1)
164
164
  ]),
165
165
  _: 1
166
- })) : m("", !0),
167
- e.minimum !== void 0 && !e.exclusiveMinimum ? (i(), l(p, { key: 5 }, {
168
- prefix: n(() => t[11] || (t[11] = [
169
- r("min:")
166
+ })) : r("", !0),
167
+ e.value.minimum !== void 0 && !e.value.exclusiveMinimum ? (t(), o(m, { key: 5 }, {
168
+ prefix: u(() => l[11] || (l[11] = [
169
+ a("min:")
170
170
  ])),
171
- default: n(() => [
172
- r(" " + d(e.minimum), 1)
171
+ default: u(() => [
172
+ a(" " + n(e.value.minimum), 1)
173
173
  ]),
174
174
  _: 1
175
- })) : m("", !0),
176
- e.maximum !== void 0 && e.exclusiveMaximum ? (i(), l(p, { key: 6 }, {
177
- prefix: n(() => t[12] || (t[12] = [
178
- r("less than:")
175
+ })) : r("", !0),
176
+ e.value.maximum !== void 0 && e.value.exclusiveMaximum ? (t(), o(m, { key: 6 }, {
177
+ prefix: u(() => l[12] || (l[12] = [
178
+ a("less than:")
179
179
  ])),
180
- default: n(() => [
181
- r(" " + d(e.maximum), 1)
180
+ default: u(() => [
181
+ a(" " + n(e.value.maximum), 1)
182
182
  ]),
183
183
  _: 1
184
- })) : m("", !0),
185
- e.maximum !== void 0 && !e.exclusiveMaximum ? (i(), l(p, { key: 7 }, {
186
- prefix: n(() => t[13] || (t[13] = [
187
- r("max:")
184
+ })) : r("", !0),
185
+ e.value.maximum !== void 0 && !e.value.exclusiveMaximum ? (t(), o(m, { key: 7 }, {
186
+ prefix: u(() => l[13] || (l[13] = [
187
+ a("max:")
188
188
  ])),
189
- default: n(() => [
190
- r(" " + d(e.maximum), 1)
189
+ default: u(() => [
190
+ a(" " + n(e.value.maximum), 1)
191
191
  ]),
192
192
  _: 1
193
- })) : m("", !0),
194
- e.pattern ? (i(), l(p, {
193
+ })) : r("", !0),
194
+ e.value.pattern ? (t(), o(m, {
195
195
  key: 8,
196
196
  code: "",
197
197
  truncate: ""
198
198
  }, {
199
- default: n(() => [
200
- u(x, null, {
201
- default: n(() => t[14] || (t[14] = [
202
- r("Pattern:")
199
+ default: u(() => [
200
+ p(f, null, {
201
+ default: u(() => l[14] || (l[14] = [
202
+ a("Pattern:")
203
203
  ])),
204
204
  _: 1
205
205
  }),
206
- r(" " + d(e.pattern), 1)
206
+ a(" " + n(e.value.pattern), 1)
207
207
  ]),
208
208
  _: 1
209
- })) : m("", !0),
210
- o.$props.enum ? (i(), l(p, { key: 9 }, {
211
- default: n(() => t[15] || (t[15] = [
212
- r("enum")
209
+ })) : r("", !0),
210
+ e.$props.enum ? (t(), o(m, { key: 9 }, {
211
+ default: u(() => l[15] || (l[15] = [
212
+ a("enum")
213
213
  ])),
214
214
  _: 1
215
- })) : m("", !0),
216
- e.default !== void 0 ? (i(), l(p, {
215
+ })) : r("", !0),
216
+ e.value.default !== void 0 ? (t(), o(m, {
217
217
  key: 10,
218
218
  truncate: ""
219
219
  }, {
220
- prefix: n(() => t[16] || (t[16] = [
221
- r("default:")
220
+ prefix: u(() => l[16] || (l[16] = [
221
+ a("default:")
222
222
  ])),
223
- default: n(() => [
224
- r(" " + d(w(e)), 1)
223
+ default: u(() => [
224
+ a(" " + n(F(e.value)), 1)
225
225
  ]),
226
226
  _: 1
227
- })) : m("", !0)
228
- ], 64)) : (i(), s(a, { key: 6 }, [
229
- (e == null ? void 0 : e.nullable) === !0 ? (i(), l(p, { key: 0 }, {
230
- default: n(() => t[17] || (t[17] = [
231
- r(" nullable ")
227
+ })) : r("", !0)
228
+ ], 64)) : (t(), i(s, { key: 6 }, [
229
+ ((S = e.value) == null ? void 0 : S.nullable) === !0 ? (t(), o(m, { key: 0 }, {
230
+ default: u(() => l[17] || (l[17] = [
231
+ a(" nullable ")
232
232
  ])),
233
233
  _: 1
234
- })) : m("", !0)
234
+ })) : r("", !0)
235
235
  ], 64)),
236
- e != null && e.writeOnly ? (i(), s("div", D, " write-only ")) : e != null && e.readOnly ? (i(), s("div", F, " read-only ")) : m("", !0),
237
- o.required ? (i(), s("div", O, " required ")) : m("", !0),
238
- o.withExamples ? (i(), l(V, {
236
+ (q = e.value) != null && q.writeOnly ? (t(), i("div", W, " write-only ")) : (w = e.value) != null && w.readOnly ? (t(), i("div", X, " read-only ")) : r("", !0),
237
+ e.required ? (t(), i("div", Y, " required ")) : r("", !0),
238
+ e.withExamples ? (t(), o(R, {
239
239
  key: 10,
240
- examples: e == null ? void 0 : e.examples,
241
- example: (e == null ? void 0 : e.example) || ((y = e == null ? void 0 : e.items) == null ? void 0 : y.example),
242
- "discriminator-type": k(q)
243
- }, null, 8, ["examples", "example", "discriminator-type"])) : m("", !0)
240
+ examples: (P = e.value) == null ? void 0 : P.examples,
241
+ example: ((j = e.value) == null ? void 0 : j.example) || ((M = (I = e.value) == null ? void 0 : I.items) == null ? void 0 : M.example),
242
+ "discriminator-type": v(D)
243
+ }, null, 8, ["examples", "example", "discriminator-type"])) : r("", !0)
244
244
  ]);
245
245
  };
246
246
  }
247
247
  });
248
248
  export {
249
- Q as default
249
+ ae as default
250
250
  };
@@ -1,6 +1,8 @@
1
1
  import type { ApiClientConfiguration } from '@scalar/types/api-reference';
2
+ import type { Spec } from '@scalar/types/legacy';
2
3
  type __VLS_Props = {
3
4
  configuration: Partial<ApiClientConfiguration>;
5
+ parsedSpec: Spec;
4
6
  };
5
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, {}, HTMLDivElement>;
6
8
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ApiClientModal/ApiClientModal.vue"],"names":[],"mappings":"AA8GA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AAYzE,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAA;CAC/C,CAAC;;AAqIF,wBAOG"}
1
+ {"version":3,"file":"ApiClientModal.vue.d.ts","sourceRoot":"","sources":["../../../src/features/ApiClientModal/ApiClientModal.vue"],"names":[],"mappings":"AAkIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AACzE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAYhD,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAA;IAC9C,UAAU,EAAE,IAAI,CAAA;CACjB,CAAC;;AA+JF,wBAOG"}