@scalar/api-reference 1.31.9 → 1.31.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.
@@ -1 +1 @@
1
- {"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AAiSA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAehD,KAAK,WAAW,GAAG;IACf,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAA;IAC9B,UAAU,EAAE,IAAI,CAAA;IAChB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAC9B,CAAC;AAwDJ,iBAAS,cAAc;WA2OT,OAAO,IAA6B;;uBAVvB,GAAG;+BACM,GAAG;qBACb,GAAG;;;;EAa5B;AA4BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YAtUR,QAAQ,GAAG,SAAS;6EA6U/B,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":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AAgSA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAehD,KAAK,WAAW,GAAG;IACf,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAA;IAC9B,UAAU,EAAE,IAAI,CAAA;IAChB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAC9B,CAAC;AAwDJ,iBAAS,cAAc;WA2OT,OAAO,IAA6B;;uBAVvB,GAAG;+BACM,GAAG;qBACb,GAAG;;;;EAa5B;AA4BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YAtUR,QAAQ,GAAG,SAAS;6EA6U/B,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"}
@@ -2,7 +2,7 @@ import o from "./Content.vue2.js";
2
2
  /* empty css */
3
3
  /* empty css */
4
4
  import t from "../../_virtual/_plugin-vue_export-helper.js";
5
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-54b62036"]]);
5
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-86bac6ee"]]);
6
6
  export {
7
7
  a as default
8
8
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as F, computed as f, createElementBlock as i, openBlock as t, Fragment as v, createStaticVNode as G, createElementVNode as E, renderSlot as y, createBlock as a, createCommentVNode as c, unref as r, withCtx as U, createVNode as m, normalizeClass as I, renderList as O } from "vue";
1
+ import { defineComponent as F, computed as f, createElementBlock as i, openBlock as s, Fragment as v, createStaticVNode as G, createElementVNode as E, renderSlot as y, createBlock as t, createCommentVNode as c, unref as r, withCtx as U, createVNode as m, normalizeClass as I, renderList as O } from "vue";
2
2
  import { useWorkspace as R, useActiveEntities as D } from "@scalar/api-client/store";
3
3
  import { RequestAuth as H } from "@scalar/api-client/views/Request/RequestSection/RequestAuth";
4
4
  import { ScalarErrorBoundary as J } from "@scalar/components";
@@ -16,7 +16,7 @@ import x from "./Models/Models.vue.js";
16
16
  const ee = { class: "narrow-references-container" }, re = {
17
17
  key: 0,
18
18
  class: "scalar-reference-intro-server scalar-client introduction-card-item text-sm leading-normal [--scalar-address-bar-height:0px]"
19
- }, se = {
19
+ }, ae = {
20
20
  key: 1,
21
21
  class: "scalar-reference-intro-auth scalar-client introduction-card-item leading-normal"
22
22
  }, he = /* @__PURE__ */ F({
@@ -32,7 +32,7 @@ const ee = { class: "narrow-references-container" }, re = {
32
32
  activeEnvVariables: L,
33
33
  activeEnvironment: j,
34
34
  activeWorkspace: g
35
- } = D(), s = f(() => {
35
+ } = D(), a = f(() => {
36
36
  if (u.value.slug) {
37
37
  const e = B[K(u.value.slug)];
38
38
  if (e)
@@ -40,31 +40,31 @@ const ee = { class: "narrow-references-container" }, re = {
40
40
  }
41
41
  return W.value;
42
42
  }), o = f(() => {
43
- if (s.value) {
44
- if (s.value.selectedServerUid) {
45
- const e = h[s.value.selectedServerUid];
43
+ if (a.value) {
44
+ if (a.value.selectedServerUid) {
45
+ const e = h[a.value.selectedServerUid];
46
46
  if (e)
47
47
  return e;
48
48
  }
49
- return h[s.value.servers[0]];
49
+ return h[a.value.servers[0]];
50
50
  }
51
51
  }), q = f(
52
52
  () => M.layout === "classic" ? "after" : "aside"
53
53
  );
54
54
  return (e, k) => {
55
55
  var b, C, w, A, V;
56
- return t(), i(v, null, [
57
- k[0] || (k[0] = G('<div class="section-flare" data-v-54b62036><div class="section-flare-item" data-v-54b62036></div><div class="section-flare-item" data-v-54b62036></div><div class="section-flare-item" data-v-54b62036></div><div class="section-flare-item" data-v-54b62036></div><div class="section-flare-item" data-v-54b62036></div><div class="section-flare-item" data-v-54b62036></div><div class="section-flare-item" data-v-54b62036></div><div class="section-flare-item" data-v-54b62036></div></div>', 1)),
56
+ return s(), i(v, null, [
57
+ k[0] || (k[0] = G('<div class="section-flare" data-v-86bac6ee><div class="section-flare-item" data-v-86bac6ee></div><div class="section-flare-item" data-v-86bac6ee></div><div class="section-flare-item" data-v-86bac6ee></div><div class="section-flare-item" data-v-86bac6ee></div><div class="section-flare-item" data-v-86bac6ee></div><div class="section-flare-item" data-v-86bac6ee></div><div class="section-flare-item" data-v-86bac6ee></div><div class="section-flare-item" data-v-86bac6ee></div></div>', 1)),
58
58
  E("div", ee, [
59
59
  y(e.$slots, "start", {}, void 0, !0),
60
- s.value ? (t(), a(r(T), {
60
+ a.value ? (s(), t(r(T), {
61
61
  key: 0,
62
- collection: s.value,
62
+ collection: a.value,
63
63
  layout: e.layout,
64
64
  parsedSpec: e.parsedSpec,
65
65
  server: o.value
66
66
  }, null, 8, ["collection", "layout", "parsedSpec", "server"])) : c("", !0),
67
- (C = (b = e.document) == null ? void 0 : b.info) != null && C.title || (A = (w = e.document) == null ? void 0 : w.info) != null && A.description ? (t(), a(r(X), {
67
+ (C = (b = e.document) == null ? void 0 : b.info) != null && C.title || (A = (w = e.document) == null ? void 0 : w.info) != null && A.description ? (s(), t(r(X), {
68
68
  key: 1,
69
69
  document: e.document
70
70
  }, {
@@ -76,20 +76,20 @@ const ee = { class: "narrow-references-container" }, re = {
76
76
  E("div", {
77
77
  class: I(["introduction-card", { "introduction-card-row": e.layout === "classic" }])
78
78
  }, [
79
- (l = (n = s.value) == null ? void 0 : n.servers) != null && l.length ? (t(), i("div", re, [
79
+ (l = (n = a.value) == null ? void 0 : n.servers) != null && l.length ? (s(), i("div", re, [
80
80
  m(r(Y), {
81
- collection: s.value,
81
+ collection: a.value,
82
82
  server: o.value
83
83
  }, null, 8, ["collection", "server"])
84
84
  ])) : c("", !0),
85
- s.value && r(g) && Object.keys(r(N) ?? {}).length ? (t(), i("div", se, [
85
+ a.value && r(g) && Object.keys(r(N) ?? {}).length ? (s(), i("div", ae, [
86
86
  m(r(H), {
87
- collection: s.value,
87
+ collection: a.value,
88
88
  envVariables: r(L),
89
89
  environment: r(j),
90
90
  layout: "reference",
91
91
  persistAuth: r(u).persistAuth,
92
- selectedSecuritySchemeUids: ((d = s.value) == null ? void 0 : d.selectedSecuritySchemeUids) ?? [],
92
+ selectedSecuritySchemeUids: ((d = a.value) == null ? void 0 : d.selectedSecuritySchemeUids) ?? [],
93
93
  server: o.value,
94
94
  title: "Authentication",
95
95
  workspace: r(g)
@@ -104,10 +104,10 @@ const ee = { class: "narrow-references-container" }, re = {
104
104
  ]),
105
105
  _: 2
106
106
  }, 1032, ["document"])) : y(e.$slots, "empty-state", { key: 2 }, void 0, !0),
107
- e.parsedSpec.tags && s.value ? (t(), i(v, { key: 3 }, [
108
- e.parsedSpec["x-tagGroups"] ? (t(!0), i(v, { key: 0 }, O(e.parsedSpec["x-tagGroups"], (n) => (t(), a(r(S), {
107
+ e.parsedSpec.tags && a.value ? (s(), i(v, { key: 3 }, [
108
+ e.parsedSpec["x-tagGroups"] ? (s(!0), i(v, { key: 0 }, O(e.parsedSpec["x-tagGroups"], (n) => (s(), t(r(S), {
109
109
  key: n.name,
110
- collection: s.value,
110
+ collection: a.value,
111
111
  layout: e.layout,
112
112
  server: o.value,
113
113
  spec: e.parsedSpec,
@@ -115,9 +115,9 @@ const ee = { class: "narrow-references-container" }, re = {
115
115
  var d;
116
116
  return (d = e.parsedSpec.tags) == null ? void 0 : d.find((z) => z.name === l);
117
117
  }).filter((l) => !!l)
118
- }, null, 8, ["collection", "layout", "server", "spec", "tags"]))), 128)) : (t(), a(r(S), {
118
+ }, null, 8, ["collection", "layout", "server", "spec", "tags"]))), 128)) : (s(), t(r(S), {
119
119
  key: 1,
120
- collection: s.value,
120
+ collection: a.value,
121
121
  layout: e.layout,
122
122
  schemas: r(p)(e.parsedSpec),
123
123
  server: o.value,
@@ -125,10 +125,10 @@ const ee = { class: "narrow-references-container" }, re = {
125
125
  tags: e.parsedSpec.tags
126
126
  }, null, 8, ["collection", "layout", "schemas", "server", "spec", "tags"]))
127
127
  ], 64)) : c("", !0),
128
- (V = e.parsedSpec.webhooks) != null && V.length && s.value ? (t(), a(r(S), {
128
+ (V = e.parsedSpec.webhooks) != null && V.length && a.value ? (s(), t(r(S), {
129
129
  key: 4,
130
130
  id: "webhooks",
131
- collection: s.value,
131
+ collection: a.value,
132
132
  layout: e.layout,
133
133
  schemas: r(p)(e.parsedSpec),
134
134
  server: o.value,
@@ -141,11 +141,11 @@ const ee = { class: "narrow-references-container" }, re = {
141
141
  }
142
142
  ]
143
143
  }, null, 8, ["collection", "layout", "schemas", "server", "spec", "tags"])) : c("", !0),
144
- r(Q)(e.parsedSpec) && !r(u).hideModels ? (t(), i(v, { key: 5 }, [
145
- e.layout === "classic" ? (t(), a(r(_), {
144
+ r(Q)(e.parsedSpec) && !r(u).hideModels ? (s(), i(v, { key: 5 }, [
145
+ e.layout === "classic" ? (s(), t(r(_), {
146
146
  key: 0,
147
147
  schemas: r(p)(e.parsedSpec)
148
- }, null, 8, ["schemas"])) : (t(), a(r(x), {
148
+ }, null, 8, ["schemas"])) : (s(), t(r(x), {
149
149
  key: 1,
150
150
  schemas: r(p)(e.parsedSpec)
151
151
  }, null, 8, ["schemas"]))
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AAwoBA,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAOtD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAUjE;;;;;GAKG;AAEH,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC7C,yBAAyB,CAAC,EAAE,MAAM,CAAA;IAClC,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAC;;;;;;cAZW,OAAO;WAFV,MAAM;aAGJ,OAAO;oBAKA,OAAO;kBADT,OAAO;;AAioB1B,0BASG"}
1
+ {"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AAopBA,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,KAAK,CAAA;AAOtD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAA;AAUjE;;;;;GAKG;AAEH,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC7C,yBAAyB,CAAC,EAAE,MAAM,CAAA;IAClC,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAC;;;;;;cAZW,OAAO;WAFV,MAAM;aAGJ,OAAO;oBAKA,OAAO;kBADT,OAAO;;AA8oB1B,0BASG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./SchemaProperty.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-c0beb023"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-5fc4e3c4"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };
@@ -1,10 +1,10 @@
1
- import { defineComponent as W, computed as s, inject as Y, createBlock as y, openBlock as t, resolveDynamicComponent as _, normalizeClass as w, withCtx as h, createCommentVNode as l, createElementBlock as r, createVNode as m, createSlots as x, createTextVNode as j, toDisplayString as f, unref as p, Fragment as g, renderList as P, createElementVNode as b } from "vue";
1
+ import { defineComponent as W, computed as o, inject as Y, createBlock as h, openBlock as t, resolveDynamicComponent as _, normalizeClass as R, withCtx as f, createCommentVNode as l, createElementBlock as r, createVNode as m, createSlots as x, createTextVNode as B, toDisplayString as v, unref as p, Fragment as g, renderList as M, createElementVNode as k } from "vue";
2
2
  import { Disclosure as ee, DisclosurePanel as ne, DisclosureButton as ie } from "@headlessui/vue";
3
- import { ScalarMarkdown as B, ScalarIcon as te } from "@scalar/components";
3
+ import { ScalarMarkdown as O, ScalarIcon as te } from "@scalar/components";
4
4
  import { optimizeValueForDisplay as ae, compositions as re } from "./helpers/optimizeValueForDisplay.js";
5
5
  import { DISCRIMINATOR_CONTEXT as oe } from "../../../hooks/useDiscriminator.js";
6
- import q from "./Schema.vue.js";
7
- import F from "./SchemaComposition.vue.js";
6
+ import T from "./Schema.vue.js";
7
+ import q from "./SchemaComposition.vue.js";
8
8
  import se from "./SchemaDiscriminator.vue.js";
9
9
  import le from "./SchemaPropertyHeading.vue.js";
10
10
  import me from "../../SpecificationExtension/SpecificationExtension.vue.js";
@@ -20,13 +20,13 @@ const pe = {
20
20
  }, ue = {
21
21
  key: 0,
22
22
  class: "property-list"
23
- }, ye = { class: "property-heading" }, he = { class: "property-name" }, fe = { class: "property-description" }, ge = {
23
+ }, ye = { class: "property-heading" }, he = { class: "property-name" }, fe = { class: "property-description" }, ve = {
24
24
  key: 1,
25
25
  class: "property-enum-values"
26
- }, ve = { class: "property-enum-value-label" }, be = { class: "property-enum-value-label" }, ke = {
26
+ }, ge = { class: "property-enum-value-label" }, be = { class: "property-enum-value-label" }, ke = {
27
27
  key: 4,
28
28
  class: "children"
29
- }, Ne = {
29
+ }, De = {
30
30
  key: 0,
31
31
  class: "children"
32
32
  }, Ve = /* @__PURE__ */ W({
@@ -51,8 +51,8 @@ const pe = {
51
51
  isDiscriminator: { type: Boolean }
52
52
  },
53
53
  emits: ["update:modelValue"],
54
- setup(U, { emit: $ }) {
55
- const k = U, z = $, O = {
54
+ setup(F, { emit: U }) {
55
+ const D = F, $ = U, E = {
56
56
  integer: {
57
57
  _default: "Integer numbers.",
58
58
  int32: "Signed 32-bit integers (commonly used integer type).",
@@ -65,63 +65,69 @@ const pe = {
65
65
  byte: "base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",
66
66
  binary: "binary data, used to describe files"
67
67
  }
68
- }, S = (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, C = (e) => !e || !O[e.type] ? null : O[e.type][e.format || "_default"], d = (e) => {
68
+ }, P = (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, C = (e) => !e || !E[e.type] ? null : E[e.type][e.format || "_default"], u = (e) => {
69
69
  var n;
70
70
  return (e == null ? void 0 : e.enum) || ((n = e == null ? void 0 : e.items) == null ? void 0 : n.enum) || [];
71
- }, E = s(
72
- () => d(i.value).length > 9
73
- ), H = s(() => E.value ? 5 : 9), L = s(
74
- () => d(i.value).slice(0, H.value)
75
- ), Z = s(
76
- () => d(i.value).slice(H.value)
77
- ), i = s(() => ae(k.value)), c = Y(oe, null), o = s(() => {
71
+ }, H = o(
72
+ () => u(i.value).length > 9
73
+ ), V = o(() => H.value ? 5 : 9), z = o(
74
+ () => u(i.value).slice(0, V.value)
75
+ ), L = o(
76
+ () => u(i.value).slice(V.value)
77
+ ), i = o(() => ae(D.value)), d = Y(oe, null), s = o(() => {
78
78
  var e;
79
- return k.level > 0 ? i.value : (e = c == null ? void 0 : c.value) != null && e.mergedSchema ? c.value.mergedSchema : i.value;
80
- }), X = s(() => {
79
+ return D.level > 0 ? i.value : (e = d == null ? void 0 : d.value) != null && e.mergedSchema ? d.value.mergedSchema : i.value;
80
+ }), Z = o(() => {
81
81
  var e;
82
- return ((e = c == null ? void 0 : c.value) == null ? void 0 : e.selectedType) || (k.discriminatorMapping ? Object.keys(k.discriminatorMapping)[0] : "");
83
- }), G = (e, n, u, N, M) => n || u || N || (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) || M, D = (e) => {
84
- z("update:modelValue", e);
85
- }, V = s(() => {
82
+ return ((e = d == null ? void 0 : d.value) == null ? void 0 : e.selectedType) || (D.discriminatorMapping ? Object.keys(D.discriminatorMapping)[0] : "");
83
+ }), X = (e, n, y, N, S) => n || y || N || (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) || S, j = (e) => {
84
+ $("update:modelValue", e);
85
+ }, A = o(() => {
86
86
  const e = i.value;
87
87
  if (!(e != null && e.items) || typeof e.items != "object")
88
88
  return !1;
89
89
  const n = e.items;
90
90
  return "type" in n && ["object"].includes(n.type) || "$ref" in n || "discriminator" in n || "allOf" in n || "oneOf" in n || "anyOf" in n;
91
- }), J = (e) => {
91
+ }), G = (e) => {
92
92
  const n = i.value;
93
- return !(n != null && n.items) || typeof n.items != "object" || !(e in n.items) ? !1 : !V.value;
94
- }, K = s(() => V.value), Q = s(() => {
93
+ return !(n != null && n.items) || typeof n.items != "object" || !(e in n.items) ? !1 : !A.value;
94
+ }, J = o(() => A.value), K = o(() => {
95
95
  if (!i.value)
96
96
  return !1;
97
- const e = i.value, n = e.type === "object" || Array.isArray(e.type) && e.type.includes("object"), u = e.properties || e.additionalProperties;
98
- return n && u;
97
+ const e = i.value, n = e.type === "object" || Array.isArray(e.type) && e.type.includes("object"), y = e.properties || e.additionalProperties;
98
+ return n && y;
99
+ }), Q = o(() => {
100
+ var n;
101
+ if (!((n = i.value) != null && n["x-enumDescriptions"]))
102
+ return !1;
103
+ const e = i.value["x-enumDescriptions"];
104
+ return typeof e == "object" && !Array.isArray(e);
99
105
  });
100
106
  return (e, n) => {
101
- var u;
102
- return t(), y(_(e.is ?? "li"), {
103
- class: w(["property", [
104
- (S(e.description, i.value), ""),
107
+ var y;
108
+ return t(), h(_(e.is ?? "li"), {
109
+ class: R(["property", [
110
+ (P(e.description, i.value), ""),
105
111
  `property--level-${e.level}`,
106
112
  {
107
113
  "property--compact": e.compact,
108
- "property--deprecated": (u = i.value) == null ? void 0 : u.deprecated
114
+ "property--deprecated": (y = i.value) == null ? void 0 : y.deprecated
109
115
  }
110
116
  ]])
111
117
  }, {
112
- default: h(() => {
113
- var N, M, A, I;
118
+ default: f(() => {
119
+ var N, S, w;
114
120
  return [
115
- G(
121
+ X(
116
122
  i.value,
117
123
  e.name,
118
124
  e.additional,
119
125
  e.pattern,
120
126
  e.required
121
- ) ? (t(), y(le, {
127
+ ) ? (t(), h(le, {
122
128
  key: 0,
123
129
  additional: e.additional,
124
- enum: d(i.value).length > 0,
130
+ enum: u(i.value).length > 0,
125
131
  pattern: e.pattern,
126
132
  required: e.required,
127
133
  value: i.value,
@@ -130,71 +136,74 @@ const pe = {
130
136
  }, x({ _: 2 }, [
131
137
  e.name ? {
132
138
  name: "name",
133
- fn: h(() => [
134
- j(f(e.name), 1)
139
+ fn: f(() => [
140
+ B(v(e.name), 1)
135
141
  ]),
136
142
  key: "0"
137
143
  } : void 0,
138
144
  (N = i.value) != null && N.example ? {
139
145
  name: "example",
140
- fn: h(() => [
141
- j(" Example: " + f(i.value.example), 1)
146
+ fn: f(() => [
147
+ B(" Example: " + v(i.value.example), 1)
142
148
  ]),
143
149
  key: "1"
144
150
  } : void 0
145
151
  ]), 1032, ["additional", "enum", "pattern", "required", "value", "schemas", "hideModelNames"])) : l("", !0),
146
- S(e.description, i.value) ? (t(), r("div", pe, [
147
- m(p(B), {
148
- value: S(e.description, i.value)
152
+ P(e.description, i.value) ? (t(), r("div", pe, [
153
+ m(p(O), {
154
+ value: P(e.description, i.value)
149
155
  }, null, 8, ["value"])
150
156
  ])) : C(i.value) ? (t(), r("div", ce, [
151
- m(p(B), {
157
+ m(p(O), {
152
158
  value: C(i.value) || ""
153
159
  }, null, 8, ["value"])
154
160
  ])) : l("", !0),
155
- ((M = d(i.value)) == null ? void 0 : M.length) > 0 && !e.isDiscriminator ? (t(), r("div", de, [
156
- Array.isArray((A = i.value) == null ? void 0 : A["x-enumDescriptions"]) ? (t(), r("div", ue, [
157
- (t(!0), r(g, null, P(d(i.value), (a) => (t(), r("div", {
158
- key: a,
159
- class: "property"
160
- }, [
161
- b("div", ye, [
162
- b("div", he, f(a), 1)
163
- ]),
164
- b("div", fe, [
165
- m(p(B), {
166
- value: i.value["x-enumDescriptions"][a]
167
- }, null, 8, ["value"])
168
- ])
169
- ]))), 128))
170
- ])) : (t(), r("ul", ge, [
171
- (t(!0), r(g, null, P(L.value, (a) => (t(), r("li", {
161
+ ((S = u(i.value)) == null ? void 0 : S.length) > 0 && !e.isDiscriminator ? (t(), r("div", de, [
162
+ Q.value ? (t(), r("div", ue, [
163
+ (t(!0), r(g, null, M(u(i.value), (a) => {
164
+ var c, b;
165
+ return t(), r("div", {
166
+ key: a,
167
+ class: "property"
168
+ }, [
169
+ k("div", ye, [
170
+ k("div", he, v(a), 1)
171
+ ]),
172
+ k("div", fe, [
173
+ m(p(O), {
174
+ value: (b = (c = i.value) == null ? void 0 : c["x-enumDescriptions"]) == null ? void 0 : b[a]
175
+ }, null, 8, ["value"])
176
+ ])
177
+ ]);
178
+ }), 128))
179
+ ])) : (t(), r("ul", ve, [
180
+ (t(!0), r(g, null, M(z.value, (a) => (t(), r("li", {
172
181
  key: a,
173
182
  class: "property-enum-value"
174
183
  }, [
175
- b("span", ve, f(a), 1)
184
+ k("span", ge, v(a), 1)
176
185
  ]))), 128)),
177
- E.value ? (t(), y(p(ee), { key: 0 }, {
178
- default: h(({ open: a }) => [
186
+ H.value ? (t(), h(p(ee), { key: 0 }, {
187
+ default: f(({ open: a }) => [
179
188
  m(p(ne), null, {
180
- default: h(() => [
181
- (t(!0), r(g, null, P(Z.value, (v) => (t(), r("li", {
182
- key: v,
189
+ default: f(() => [
190
+ (t(!0), r(g, null, M(L.value, (c) => (t(), r("li", {
191
+ key: c,
183
192
  class: "property-enum-value"
184
193
  }, [
185
- b("span", be, f(v), 1)
194
+ k("span", be, v(c), 1)
186
195
  ]))), 128))
187
196
  ]),
188
197
  _: 1
189
198
  }),
190
199
  m(p(ie), { class: "enum-toggle-button" }, {
191
- default: h(() => [
200
+ default: f(() => [
192
201
  m(p(te), {
193
- class: w(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": a }]),
202
+ class: R(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": a }]),
194
203
  icon: "Add",
195
204
  size: "sm"
196
205
  }, null, 8, ["class"]),
197
- j(" " + f(a ? "Hide values" : "Show all values"), 1)
206
+ B(" " + v(a ? "Hide values" : "Show all values"), 1)
198
207
  ]),
199
208
  _: 2
200
209
  }, 1024)
@@ -203,40 +212,40 @@ const pe = {
203
212
  })) : l("", !0)
204
213
  ]))
205
214
  ])) : l("", !0),
206
- Q.value ? (t(), r("div", ke, [
207
- m(q, {
215
+ K.value ? (t(), r("div", ke, [
216
+ m(T, {
208
217
  compact: e.compact,
209
218
  level: e.level + 1,
210
219
  name: e.name,
211
220
  noncollapsible: e.noncollapsible,
212
- value: o.value,
213
- resolvedSchema: o.value,
221
+ value: s.value,
222
+ resolvedSchema: s.value,
214
223
  discriminatorMapping: e.discriminatorMapping,
215
224
  discriminatorPropertyName: e.discriminatorPropertyName,
216
225
  schemas: e.schemas,
217
- "onUpdate:modelValue": D
226
+ "onUpdate:modelValue": j
218
227
  }, null, 8, ["compact", "level", "name", "noncollapsible", "value", "resolvedSchema", "discriminatorMapping", "discriminatorPropertyName", "schemas"])
219
228
  ])) : l("", !0),
220
- (I = i.value) != null && I.items && typeof i.value.items == "object" ? (t(), r(g, { key: 5 }, [
221
- K.value ? (t(), r("div", Ne, [
222
- m(q, {
229
+ (w = i.value) != null && w.items && typeof i.value.items == "object" ? (t(), r(g, { key: 5 }, [
230
+ J.value ? (t(), r("div", De, [
231
+ m(T, {
223
232
  compact: e.compact,
224
233
  level: e.level + 1,
225
234
  name: e.name,
226
235
  noncollapsible: e.noncollapsible,
227
- value: o.value && typeof o.value == "object" && "items" in o.value ? o.value.items : i.value.items,
228
- resolvedSchema: o.value && typeof o.value == "object" && "items" in o.value ? o.value.items : i.value.items,
236
+ value: s.value && typeof s.value == "object" && "items" in s.value ? s.value.items : i.value.items,
237
+ resolvedSchema: s.value && typeof s.value == "object" && "items" in s.value ? s.value.items : i.value.items,
229
238
  discriminatorMapping: e.discriminatorMapping,
230
239
  discriminatorPropertyName: e.discriminatorPropertyName,
231
240
  schemas: e.schemas,
232
- "onUpdate:modelValue": D
241
+ "onUpdate:modelValue": j
233
242
  }, null, 8, ["compact", "level", "name", "noncollapsible", "value", "resolvedSchema", "discriminatorMapping", "discriminatorPropertyName", "schemas"])
234
243
  ])) : l("", !0)
235
244
  ], 64)) : l("", !0),
236
- (t(!0), r(g, null, P(p(re), (a) => {
237
- var v, R, T;
245
+ (t(!0), r(g, null, M(p(re), (a) => {
246
+ var c, b, I;
238
247
  return t(), r(g, { key: a }, [
239
- (v = i.value) != null && v[a] && !((R = i.value) != null && R.items && typeof a == "string" && typeof i.value.items == "object" && a in i.value.items) ? (t(), y(F, {
248
+ (c = i.value) != null && c[a] && !((b = i.value) != null && b.items && typeof a == "string" && typeof i.value.items == "object" && a in i.value.items) ? (t(), h(q, {
240
249
  key: 0,
241
250
  compact: e.compact,
242
251
  composition: a,
@@ -246,7 +255,7 @@ const pe = {
246
255
  noncollapsible: e.noncollapsible,
247
256
  schemas: e.schemas,
248
257
  value: i.value
249
- }, null, 8, ["compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : J(a) ? (t(), y(F, {
258
+ }, null, 8, ["compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : G(a) ? (t(), h(q, {
250
259
  key: 1,
251
260
  compact: e.compact,
252
261
  composition: a,
@@ -255,15 +264,15 @@ const pe = {
255
264
  name: e.name,
256
265
  noncollapsible: e.noncollapsible,
257
266
  schemas: e.schemas,
258
- value: (T = i.value) == null ? void 0 : T.items
267
+ value: (I = i.value) == null ? void 0 : I.items
259
268
  }, null, 8, ["compact", "composition", "hideHeading", "level", "name", "noncollapsible", "schemas", "value"])) : l("", !0)
260
269
  ], 64);
261
270
  }), 128)),
262
- e.isDiscriminator && e.discriminatorMapping && e.compact ? (t(), y(se, {
271
+ e.isDiscriminator && e.discriminatorMapping && e.compact ? (t(), h(se, {
263
272
  key: 6,
264
273
  "discriminator-mapping": e.discriminatorMapping,
265
- discriminator: X.value,
266
- "onUpdate:modelValue": D
274
+ discriminator: Z.value,
275
+ "onUpdate:modelValue": j
267
276
  }, null, 8, ["discriminator-mapping", "discriminator"])) : l("", !0),
268
277
  m(p(me), { value: i.value }, null, 8, ["value"])
269
278
  ];
@@ -1,37 +1,37 @@
1
- import { measure as i } from "@scalar/helpers/testing/measure";
1
+ import { measure as c } from "@scalar/helpers/testing/measure";
2
2
  import { fetchDocument as f, prettyPrintJson as s } from "@scalar/oas-utils/helpers";
3
- import { ref as u, watch as a, toValue as c } from "vue";
3
+ import { ref as u, watch as a, toValue as i } from "vue";
4
4
  function l({
5
- configuration: r
5
+ configuration: o
6
6
  }) {
7
- const o = u("");
7
+ const t = u("");
8
8
  return a(
9
- () => c(r),
9
+ () => i(o),
10
10
  async (n) => {
11
- var e;
11
+ var r;
12
12
  if (!n)
13
13
  return;
14
- const t = await m(n, (e = c(r)) == null ? void 0 : e.proxyUrl);
15
- typeof t == "string" && (o.value = t.trim());
14
+ const e = await m(n, (r = i(o)) == null ? void 0 : r.proxyUrl);
15
+ typeof e == "string" && (t.value = e.trim());
16
16
  },
17
17
  { immediate: !0, deep: !0 }
18
18
  ), {
19
- originalDocument: o
19
+ originalDocument: t
20
20
  };
21
21
  }
22
- const m = async ({ url: r, content: o }, n) => {
23
- if (r)
22
+ const m = async ({ url: o, content: t }, n) => {
23
+ if (o && !t)
24
24
  try {
25
- const e = await i(`fetch(${r})`, async () => await f(r, n));
26
- return console.info("size:", Math.round(e.length / 1024), "kB"), e;
27
- } catch (e) {
28
- console.error("Failed to fetch OpenAPI document from URL:", e);
25
+ const r = await c(`fetch(${o})`, async () => await f(o, n));
26
+ return console.info("size:", Math.round(r.length / 1024), "kB"), r;
27
+ } catch (r) {
28
+ console.error("Failed to fetch OpenAPI document from URL:", r);
29
29
  }
30
- const t = typeof o == "function" ? o() : o;
31
- if (typeof t == "string")
32
- return t;
33
- if (typeof t == "object")
34
- return s(t);
30
+ const e = typeof t == "function" ? t() : t;
31
+ if (typeof e == "string")
32
+ return e;
33
+ if (typeof e == "object")
34
+ return s(e);
35
35
  };
36
36
  export {
37
37
  l as useDocumentFetcher