@scalar/api-reference 1.25.119 → 1.25.121

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 (32) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/browser/standalone.js +7598 -7503
  3. package/dist/browser/webpack-stats.json +1 -1
  4. package/dist/components/Card/CardFooter.vue.d.ts.map +1 -1
  5. package/dist/components/Card/CardFooter.vue.js +2 -2
  6. package/dist/components/Card/CardHeader.vue.d.ts.map +1 -1
  7. package/dist/components/Card/CardHeader.vue.js +2 -2
  8. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  9. package/dist/components/Content/Content.vue.js +2 -2
  10. package/dist/components/Content/Content.vue2.js +59 -51
  11. package/dist/components/Content/Schema/SchemaProperty.vue.d.ts.map +1 -1
  12. package/dist/components/Content/Schema/SchemaProperty.vue.js +2 -2
  13. package/dist/components/Content/Schema/SchemaProperty.vue2.js +66 -70
  14. package/dist/components/Content/Tag/TagAccordion.vue.d.ts +1 -2
  15. package/dist/components/Content/Tag/TagAccordion.vue.d.ts.map +1 -1
  16. package/dist/components/Content/Tag/TagAccordion.vue.js +2 -2
  17. package/dist/components/Content/Tag/TagAccordion.vue2.js +3 -4
  18. package/dist/components/Layouts/Layouts.vue.d.ts.map +1 -1
  19. package/dist/components/ScreenReader.vue.d.ts.map +1 -1
  20. package/dist/components/ScreenReader.vue.js +2 -2
  21. package/dist/features/ApiClientModal/useApiClient.d.ts +774 -954
  22. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  23. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  24. package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
  25. package/dist/features/Operation/components/ParameterListItem.vue2.js +49 -43
  26. package/dist/helpers/get-request.d.ts +7 -7
  27. package/dist/helpers/get-request.d.ts.map +1 -1
  28. package/dist/helpers/parse.d.ts.map +1 -1
  29. package/dist/helpers/parse.js +14 -31
  30. package/dist/index.js +1 -1
  31. package/dist/style.css +1 -1
  32. package/package.json +12 -12
@@ -1 +1 @@
1
- {"version":3,"file":"CardFooter.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardFooter.vue"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAa/C,iBAAS,cAAc;WA6CT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,uTAOnB,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":"CardFooter.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardFooter.vue"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAY/C,iBAAS,cAAc;WA6CT,OAAO,IAA6B;;yBARrB,GAAG;;;;EAa/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,uTAOnB,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 "./CardFooter.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-918ab8d6"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-7621d1be"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CardHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardHeader.vue"],"names":[],"mappings":"AAqDA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAa/C,iBAAS,cAAc;WA+DT,OAAO,IAA6B;;yBATrB,GAAG;yBACH,GAAG;;;;EAa/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,uTAOnB,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":"CardHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Card/CardHeader.vue"],"names":[],"mappings":"AAoDA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAY/C,iBAAS,cAAc;WA+DT,OAAO,IAA6B;;yBATrB,GAAG;yBACH,GAAG;;;;EAa/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,uTAOnB,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 "./CardHeader.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-ef7873bc"]]);
4
+ const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-838dc259"]]);
5
5
  export {
6
- f as default
6
+ e as default
7
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Content.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Content/Content.vue"],"names":[],"mappings":"AA0OA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAchD,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,IAAI,CAAA;IAChB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAC9B,CAAC;AAwBJ,iBAAS,cAAc;WA2NT,OAAO,IAA6B;;uBAVvB,GAAG;+BACM,GAAG;qBACb,GAAG;;;;EAa5B;AA2BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YArRR,QAAQ,GAAG,SAAS;6EA4R/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":"AAkPA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAchD,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,IAAI,CAAA;IAChB,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAC9B,CAAC;AA8BJ,iBAAS,cAAc;WA2NT,OAAO,IAA6B;;uBAVvB,GAAG;+BACM,GAAG;qBACb,GAAG;;;;EAa5B;AA6BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YA7RR,QAAQ,GAAG,SAAS;6EAoS/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 _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-589904f0"]]);
5
+ const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-42cfaf8d"]]);
6
6
  export {
7
- _ as default
7
+ a as default
8
8
  };
@@ -1,72 +1,80 @@
1
- import { defineComponent as V, computed as U, openBlock as t, createElementBlock as a, Fragment as p, createStaticVNode as W, createElementVNode as h, renderSlot as m, createVNode as d, unref as s, createBlock as o, withCtx as g, normalizeClass as L, createCommentVNode as l, renderList as j } from "vue";
2
- import { useWorkspace as q, useActiveEntities as z } from "@scalar/api-client/store";
3
- import { RequestAuth as F } from "@scalar/api-client/views/Request/RequestSection/RequestAuth";
4
- import { ScalarErrorBoundary as G } from "@scalar/components";
5
- import I from "./Lazy/Loading.vue.js";
1
+ import { defineComponent as W, computed as L, openBlock as s, createElementBlock as r, Fragment as p, createStaticVNode as j, createElementVNode as h, renderSlot as m, createVNode as d, unref as a, createBlock as o, withCtx as g, normalizeClass as q, createCommentVNode as l, renderList as z } from "vue";
2
+ import { useWorkspace as F, useActiveEntities as G } from "@scalar/api-client/store";
3
+ import { RequestAuth as I } from "@scalar/api-client/views/Request/RequestSection/RequestAuth";
4
+ import { ScalarErrorBoundary as O } from "@scalar/components";
5
+ import R from "./Lazy/Loading.vue.js";
6
6
  /* empty css */
7
- import O from "./Introduction/Introduction.vue.js";
8
- import R from "../../features/BaseUrl/BaseUrl.vue.js";
9
- import D from "./ClientLibraries/ClientLibraries.vue.js";
7
+ import D from "./Introduction/Introduction.vue.js";
8
+ import H from "../../features/BaseUrl/BaseUrl.vue.js";
9
+ import J from "./ClientLibraries/ClientLibraries.vue.js";
10
10
  import b from "./Tag/TagList.vue.js";
11
- import H from "../../features/Operation/Webhooks.vue.js";
12
- import J from "./Models/ModelsAccordion.vue.js";
13
- import K from "./Models/Models.vue.js";
14
- import { useSidebar as P } from "../../hooks/useSidebar.js";
15
- import { hasModels as Q } from "../../helpers/hasModels.js";
11
+ import K from "../../features/Operation/Webhooks.vue.js";
12
+ import P from "./Models/ModelsAccordion.vue.js";
13
+ import Q from "./Models/Models.vue.js";
14
+ import { useSidebar as T } from "../../hooks/useSidebar.js";
15
+ import { hasModels as X } from "../../helpers/hasModels.js";
16
16
  import { getModels as w } from "../../helpers/getModels.js";
17
- const T = { class: "narrow-references-container" }, X = {
17
+ const Y = { class: "narrow-references-container" }, Z = {
18
18
  key: 0,
19
19
  class: "scalar-client introduction-card-item [--scalar-address-bar-height:0px] divide-y text-sm"
20
- }, Y = {
20
+ }, _ = {
21
21
  key: 1,
22
22
  class: "scalar-client introduction-card-item"
23
- }, ue = /* @__PURE__ */ V({
23
+ }, ve = /* @__PURE__ */ W({
24
24
  __name: "Content",
25
25
  props: {
26
26
  parsedSpec: {},
27
27
  layout: { default: "modern" }
28
28
  },
29
29
  setup(C) {
30
- const $ = C, { hideModels: M } = P(), { securitySchemes: A } = q(), { activeCollection: n, activeServer: B, activeWorkspace: u } = z(), E = U(
31
- () => $.layout === "classic" ? "after" : "aside"
30
+ const V = C, { hideModels: E } = T(), { securitySchemes: $ } = F(), {
31
+ activeCollection: n,
32
+ activeEnvVariables: M,
33
+ activeEnvironment: A,
34
+ activeServer: B,
35
+ activeWorkspace: f
36
+ } = G(), N = L(
37
+ () => V.layout === "classic" ? "after" : "aside"
32
38
  );
33
- return (e, f) => {
39
+ return (e, u) => {
34
40
  var v, S, y, k;
35
- return t(), a(p, null, [
36
- f[0] || (f[0] = W('<div class="section-flare" data-v-589904f0><div class="section-flare-item" data-v-589904f0></div><div class="section-flare-item" data-v-589904f0></div><div class="section-flare-item" data-v-589904f0></div><div class="section-flare-item" data-v-589904f0></div><div class="section-flare-item" data-v-589904f0></div><div class="section-flare-item" data-v-589904f0></div><div class="section-flare-item" data-v-589904f0></div><div class="section-flare-item" data-v-589904f0></div></div>', 1)),
37
- h("div", T, [
41
+ return s(), r(p, null, [
42
+ u[0] || (u[0] = j('<div class="section-flare" data-v-42cfaf8d><div class="section-flare-item" data-v-42cfaf8d></div><div class="section-flare-item" data-v-42cfaf8d></div><div class="section-flare-item" data-v-42cfaf8d></div><div class="section-flare-item" data-v-42cfaf8d></div><div class="section-flare-item" data-v-42cfaf8d></div><div class="section-flare-item" data-v-42cfaf8d></div><div class="section-flare-item" data-v-42cfaf8d></div><div class="section-flare-item" data-v-42cfaf8d></div></div>', 1)),
43
+ h("div", Y, [
38
44
  m(e.$slots, "start", {}, void 0, !0),
39
- d(s(I), {
45
+ d(a(R), {
40
46
  layout: e.layout,
41
47
  parsedSpec: e.parsedSpec
42
48
  }, null, 8, ["layout", "parsedSpec"]),
43
- (S = (v = e.parsedSpec) == null ? void 0 : v.info) != null && S.title || (k = (y = e.parsedSpec) == null ? void 0 : y.info) != null && k.description ? (t(), o(s(O), {
49
+ (S = (v = e.parsedSpec) == null ? void 0 : v.info) != null && S.title || (k = (y = e.parsedSpec) == null ? void 0 : y.info) != null && k.description ? (s(), o(a(D), {
44
50
  key: 0,
45
51
  info: e.parsedSpec.info,
46
52
  parsedSpec: e.parsedSpec
47
53
  }, {
48
- [E.value]: g(() => [
49
- d(s(G), null, {
54
+ [N.value]: g(() => [
55
+ d(a(O), null, {
50
56
  default: g(() => {
51
- var i, r, c;
57
+ var i, t, c;
52
58
  return [
53
59
  h("div", {
54
- class: L(["introduction-card", { "introduction-card-row": e.layout === "classic" }])
60
+ class: q(["introduction-card", { "introduction-card-row": e.layout === "classic" }])
55
61
  }, [
56
- (r = (i = s(n)) == null ? void 0 : i.servers) != null && r.length ? (t(), a("div", X, [
57
- d(s(R))
62
+ (t = (i = a(n)) == null ? void 0 : i.servers) != null && t.length ? (s(), r("div", Z, [
63
+ d(a(H))
58
64
  ])) : l("", !0),
59
- s(n) && s(u) && Object.keys(s(A) ?? {}).length ? (t(), a("div", Y, [
60
- d(s(F), {
61
- collection: s(n),
65
+ a(n) && a(f) && Object.keys(a($) ?? {}).length ? (s(), r("div", _, [
66
+ d(a(I), {
67
+ collection: a(n),
68
+ envVariables: a(M),
69
+ environment: a(A),
62
70
  layout: "reference",
63
- selectedSecuritySchemeUids: ((c = s(n)) == null ? void 0 : c.selectedSecuritySchemeUids) ?? [],
64
- server: s(B),
71
+ selectedSecuritySchemeUids: ((c = a(n)) == null ? void 0 : c.selectedSecuritySchemeUids) ?? [],
72
+ server: a(B),
65
73
  title: "Authentication",
66
- workspace: s(u)
67
- }, null, 8, ["collection", "selectedSecuritySchemeUids", "server", "workspace"])
74
+ workspace: a(f)
75
+ }, null, 8, ["collection", "envVariables", "environment", "selectedSecuritySchemeUids", "server", "workspace"])
68
76
  ])) : l("", !0),
69
- d(s(D), { class: "introduction-card-item" })
77
+ d(a(J), { class: "introduction-card-item" })
70
78
  ], 2)
71
79
  ];
72
80
  }),
@@ -75,33 +83,33 @@ const T = { class: "narrow-references-container" }, X = {
75
83
  ]),
76
84
  _: 2
77
85
  }, 1032, ["info", "parsedSpec"])) : m(e.$slots, "empty-state", { key: 1 }, void 0, !0),
78
- e.parsedSpec.tags ? (t(), a(p, { key: 2 }, [
79
- e.parsedSpec["x-tagGroups"] ? (t(!0), a(p, { key: 0 }, j(e.parsedSpec["x-tagGroups"], (i) => (t(), o(s(b), {
86
+ e.parsedSpec.tags ? (s(), r(p, { key: 2 }, [
87
+ e.parsedSpec["x-tagGroups"] ? (s(!0), r(p, { key: 0 }, z(e.parsedSpec["x-tagGroups"], (i) => (s(), o(a(b), {
80
88
  key: i.name,
81
89
  layout: e.layout,
82
90
  spec: e.parsedSpec,
83
- tags: i.tags.map((r) => {
91
+ tags: i.tags.map((t) => {
84
92
  var c;
85
- return (c = e.parsedSpec.tags) == null ? void 0 : c.find((N) => N.name === r);
86
- }).filter((r) => !!r)
87
- }, null, 8, ["layout", "spec", "tags"]))), 128)) : (t(), o(s(b), {
93
+ return (c = e.parsedSpec.tags) == null ? void 0 : c.find((U) => U.name === t);
94
+ }).filter((t) => !!t)
95
+ }, null, 8, ["layout", "spec", "tags"]))), 128)) : (s(), o(a(b), {
88
96
  key: 1,
89
97
  layout: e.layout,
90
98
  spec: e.parsedSpec,
91
99
  tags: e.parsedSpec.tags
92
100
  }, null, 8, ["layout", "spec", "tags"]))
93
101
  ], 64)) : l("", !0),
94
- e.parsedSpec.webhooks ? (t(), o(s(H), {
102
+ e.parsedSpec.webhooks ? (s(), o(a(K), {
95
103
  key: 3,
96
104
  webhooks: e.parsedSpec.webhooks
97
105
  }, null, 8, ["webhooks"])) : l("", !0),
98
- s(Q)(e.parsedSpec) && !s(M) ? (t(), a(p, { key: 4 }, [
99
- e.layout === "classic" ? (t(), o(s(J), {
106
+ a(X)(e.parsedSpec) && !a(E) ? (s(), r(p, { key: 4 }, [
107
+ e.layout === "classic" ? (s(), o(a(P), {
100
108
  key: 0,
101
- schemas: s(w)(e.parsedSpec)
102
- }, null, 8, ["schemas"])) : (t(), o(s(K), {
109
+ schemas: a(w)(e.parsedSpec)
110
+ }, null, 8, ["schemas"])) : (s(), o(a(Q), {
103
111
  key: 1,
104
- schemas: s(w)(e.parsedSpec)
112
+ schemas: a(w)(e.parsedSpec)
105
113
  }, null, 8, ["schemas"]))
106
114
  ], 64)) : l("", !0),
107
115
  m(e.$slots, "end", {}, void 0, !0)
@@ -111,5 +119,5 @@ const T = { class: "narrow-references-container" }, X = {
111
119
  }
112
120
  });
113
121
  export {
114
- ue as default
122
+ ve as default
115
123
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AAqfA;;;;;GAKG;AAEH,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,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;CACvB,CAAC;;cANW,OAAO;WAFV,MAAM;aAGJ,OAAO;kBAIF,OAAO;;AA2b1B,0BAQG"}
1
+ {"version":3,"file":"SchemaProperty.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaProperty.vue"],"names":[],"mappings":"AAsfA;;;;;GAKG;AAEH,KAAK,WAAW,GAAG;IACf,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,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;CACvB,CAAC;;cANW,OAAO;WAFV,MAAM;aAGJ,OAAO;kBAIF,OAAO;;AA0b1B,0BAQG"}
@@ -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 a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-17d98b59"]]);
4
+ const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-f5c211dc"]]);
5
5
  export {
6
- a as default
6
+ p as default
7
7
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent as Y, computed as h, openBlock as l, createElementBlock as a, normalizeClass as G, createVNode as i, createSlots as ee, withCtx as g, createTextVNode as k, toDisplayString as u, unref as s, createCommentVNode as n, createElementVNode as y, Fragment as p, renderList as m, createBlock as _ } from "vue";
2
- import { formatExample as te } from "./helpers/formatExample.js";
3
- import { optimizeValueForDisplay as le, discriminators as J } from "./helpers/optimizeValueForDisplay.js";
4
- import { Disclosure as ae, DisclosurePanel as oe, DisclosureButton as re } from "@headlessui/vue";
5
- import { ScalarMarkdown as x, ScalarIcon as se } from "@scalar/components";
6
- import b from "./Schema.vue.js";
1
+ import { defineComponent as Y, computed as f, openBlock as l, createElementBlock as a, normalizeClass as G, createVNode as i, createSlots as ee, withCtx as h, createTextVNode as b, toDisplayString as u, unref as s, createCommentVNode as n, createElementVNode as v, Fragment as p, renderList as m, createBlock as k } from "vue";
2
+ import { Disclosure as te, DisclosurePanel as le, DisclosureButton as ae } from "@headlessui/vue";
3
+ import { ScalarMarkdown as _, ScalarIcon as oe } from "@scalar/components";
4
+ import { formatExample as re } from "./helpers/formatExample.js";
5
+ import { optimizeValueForDisplay as se, discriminators as J } from "./helpers/optimizeValueForDisplay.js";
6
+ import g from "./Schema.vue.js";
7
7
  import ne from "./SchemaPropertyHeading.vue.js";
8
8
  const ie = {
9
9
  key: 0,
@@ -52,7 +52,7 @@ const ie = {
52
52
  withExamples: { type: Boolean, default: !0 }
53
53
  },
54
54
  setup(K) {
55
- const Q = K, E = {
55
+ const Q = K, x = {
56
56
  integer: {
57
57
  _default: "Integer numbers.",
58
58
  int32: "Signed 32-bit integers (commonly used integer type).",
@@ -65,21 +65,17 @@ const ie = {
65
65
  byte: "base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",
66
66
  binary: "binary data, used to describe files"
67
67
  }
68
- }, j = function(t, o) {
69
- return o != null && o.properties || o != null && o.additionalProperties || o != null && o.patternProperties ? null : t || (o == null ? void 0 : o.description) || null;
70
- }, B = function(t) {
71
- return !t || !E[t.type] ? null : E[t.type][t.format || "_default"];
72
- }, d = function(t) {
73
- var o;
74
- return (t == null ? void 0 : t.enum) || ((o = t == null ? void 0 : t.items) == null ? void 0 : o.enum) || [];
75
- }, S = h(
68
+ }, E = (t, r) => r != null && r.properties || r != null && r.additionalProperties || r != null && r.patternProperties ? null : t || (r == null ? void 0 : r.description) || null, j = (t) => !t || !x[t.type] ? null : x[t.type][t.format || "_default"], d = (t) => {
69
+ var r;
70
+ return (t == null ? void 0 : t.enum) || ((r = t == null ? void 0 : t.items) == null ? void 0 : r.enum) || [];
71
+ }, B = f(
76
72
  () => d(e.value).length > 9
77
- ), D = h(() => S.value ? 5 : 9), W = h(
78
- () => d(e.value).slice(0, D.value)
79
- ), X = h(
80
- () => d(e.value).slice(D.value)
81
- ), e = h(() => le(Q.value)), v = J.find((t) => !e.value || typeof e.value != "object" ? !1 : t in e.value || e.value.items && typeof e.value.items == "object" && t in e.value.items);
82
- return (t, o) => {
73
+ ), S = f(() => B.value ? 5 : 9), W = f(
74
+ () => d(e.value).slice(0, S.value)
75
+ ), X = f(
76
+ () => d(e.value).slice(S.value)
77
+ ), e = f(() => se(Q.value)), D = J.find((t) => !e.value || typeof e.value != "object" ? !1 : t in e.value || e.value.items && typeof e.value.items == "object" && t in e.value.items);
78
+ return (t, r) => {
83
79
  var w, A, C, P, F, N, V, q, z, I, L, T, H, O, R, U;
84
80
  return l(), a("div", {
85
81
  class: G(["property", [
@@ -99,65 +95,65 @@ const ie = {
99
95
  }, ee({ _: 2 }, [
100
96
  t.name ? {
101
97
  name: "name",
102
- fn: g(() => [
103
- k(u(t.name), 1)
98
+ fn: h(() => [
99
+ b(u(t.name), 1)
104
100
  ]),
105
101
  key: "0"
106
102
  } : void 0,
107
103
  (A = e.value) != null && A.example ? {
108
104
  name: "example",
109
- fn: g(() => [
110
- k(" Example: " + u(e.value.example), 1)
105
+ fn: h(() => [
106
+ b(" Example: " + u(e.value.example), 1)
111
107
  ]),
112
108
  key: "1"
113
109
  } : void 0
114
110
  ]), 1032, ["additional", "enum", "pattern", "required", "value"]),
115
- j(t.description, e.value) ? (l(), a("div", ie, [
116
- i(s(x), {
117
- value: j(t.description, e.value)
111
+ E(t.description, e.value) ? (l(), a("div", ie, [
112
+ i(s(_), {
113
+ value: E(t.description, e.value)
118
114
  }, null, 8, ["value"])
119
- ])) : B(e.value) ? (l(), a("div", ue, [
120
- i(s(x), {
121
- value: B(e.value) || ""
115
+ ])) : j(e.value) ? (l(), a("div", ue, [
116
+ i(s(_), {
117
+ value: j(e.value) || ""
122
118
  }, null, 8, ["value"])
123
119
  ])) : n("", !0),
124
120
  t.withExamples && ((C = e.value) != null && C.example || (F = (P = e.value) == null ? void 0 : P.items) != null && F.example) ? (l(), a("div", pe, [
125
- o[0] || (o[0] = y("span", { class: "property-example-label" }, "Example", -1)),
126
- y("code", ce, u(s(te)(
127
- ((N = e.value) == null ? void 0 : N.example) || s(v) && ((V = e.value) == null ? void 0 : V.items) && typeof e.value.items == "object" && e.value.items[s(v)]
121
+ r[0] || (r[0] = v("span", { class: "property-example-label" }, "Example", -1)),
122
+ v("code", ce, u(s(re)(
123
+ ((N = e.value) == null ? void 0 : N.example) || s(D) && ((V = e.value) == null ? void 0 : V.items) && typeof e.value.items == "object" && e.value.items[s(D)]
128
124
  )), 1)
129
125
  ])) : n("", !0),
130
126
  (q = e.value) != null && q.examples && typeof e.value.examples == "object" && Object.keys(e.value.examples).length > 0 ? (l(), a("div", me, [
131
- y("span", de, u(Object.keys(e.value.examples).length === 1 ? "Example" : "Examples"), 1),
132
- (l(!0), a(p, null, m(e.value.examples, (r, c) => (l(), a("code", {
127
+ v("span", de, u(Object.keys(e.value.examples).length === 1 ? "Example" : "Examples"), 1),
128
+ (l(!0), a(p, null, m(e.value.examples, (o, c) => (l(), a("code", {
133
129
  key: c,
134
130
  class: "property-example-value"
135
- }, u(r), 1))), 128))
131
+ }, u(o), 1))), 128))
136
132
  ])) : n("", !0),
137
133
  ((z = d(e.value)) == null ? void 0 : z.length) > 0 ? (l(), a("div", ve, [
138
134
  Array.isArray((I = e.value) == null ? void 0 : I["x-enumDescriptions"]) ? (l(), a("div", ye, [
139
- (l(!0), a(p, null, m(d(e.value), (r) => (l(), a("div", {
140
- key: r,
135
+ (l(!0), a(p, null, m(d(e.value), (o) => (l(), a("div", {
136
+ key: o,
141
137
  class: "property"
142
138
  }, [
143
- y("div", fe, [
144
- y("div", he, u(r), 1)
139
+ v("div", fe, [
140
+ v("div", he, u(o), 1)
145
141
  ]),
146
- y("div", ge, [
147
- i(s(x), {
148
- value: e.value["x-enumDescriptions"][r]
142
+ v("div", ge, [
143
+ i(s(_), {
144
+ value: e.value["x-enumDescriptions"][o]
149
145
  }, null, 8, ["value"])
150
146
  ])
151
147
  ]))), 128))
152
148
  ])) : (l(), a("ul", be, [
153
- (l(!0), a(p, null, m(W.value, (r) => (l(), a("li", {
154
- key: r,
149
+ (l(!0), a(p, null, m(W.value, (o) => (l(), a("li", {
150
+ key: o,
155
151
  class: "property-enum-value"
156
- }, u(r), 1))), 128)),
157
- S.value ? (l(), _(s(ae), { key: 0 }, {
158
- default: g(({ open: r }) => [
159
- i(s(oe), null, {
160
- default: g(() => [
152
+ }, u(o), 1))), 128)),
153
+ B.value ? (l(), k(s(te), { key: 0 }, {
154
+ default: h(({ open: o }) => [
155
+ i(s(le), null, {
156
+ default: h(() => [
161
157
  (l(!0), a(p, null, m(X.value, (c) => (l(), a("li", {
162
158
  key: c,
163
159
  class: "property-enum-value"
@@ -165,14 +161,14 @@ const ie = {
165
161
  ]),
166
162
  _: 1
167
163
  }),
168
- i(s(re), { class: "enum-toggle-button" }, {
169
- default: g(() => [
170
- i(s(se), {
171
- class: G(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": r }]),
164
+ i(s(ae), { class: "enum-toggle-button" }, {
165
+ default: h(() => [
166
+ i(s(oe), {
167
+ class: G(["enum-toggle-button-icon", { "enum-toggle-button-icon--open": o }]),
172
168
  icon: "Add",
173
169
  size: "sm"
174
170
  }, null, 8, ["class"]),
175
- k(" " + u(r ? "Hide values" : "Show all values"), 1)
171
+ b(" " + u(o ? "Hide values" : "Show all values"), 1)
176
172
  ]),
177
173
  _: 2
178
174
  }, 1024)
@@ -182,7 +178,7 @@ const ie = {
182
178
  ]))
183
179
  ])) : n("", !0),
184
180
  ((L = e.value) == null ? void 0 : L.type) === "object" && ((T = e.value) != null && T.properties || (H = e.value) != null && H.additionalProperties) ? (l(), a("div", ke, [
185
- i(b, {
181
+ i(g, {
186
182
  compact: t.compact,
187
183
  level: t.level + 1,
188
184
  value: e.value
@@ -190,34 +186,34 @@ const ie = {
190
186
  ])) : n("", !0),
191
187
  (O = e.value) != null && O.items && typeof e.value.items == "object" && "type" in e.value.items && typeof e.value.items.type == "string" ? (l(), a(p, { key: 6 }, [
192
188
  ["object"].includes((U = (R = e.value) == null ? void 0 : R.items) == null ? void 0 : U.type) ? (l(), a("div", _e, [
193
- i(b, {
189
+ i(g, {
194
190
  compact: t.compact,
195
191
  level: t.level + 1,
196
192
  value: e.value.items
197
193
  }, null, 8, ["compact", "level", "value"])
198
194
  ])) : n("", !0)
199
195
  ], 64)) : n("", !0),
200
- (l(!0), a(p, null, m(s(J), (r) => {
196
+ (l(!0), a(p, null, m(s(J), (o) => {
201
197
  var c, Z;
202
- return l(), a(p, { key: r }, [
203
- (c = e.value) != null && c[r] ? (l(), a("div", xe, [
204
- (l(!0), a(p, null, m(e.value[r], (f) => {
198
+ return l(), a(p, { key: o }, [
199
+ (c = e.value) != null && c[o] ? (l(), a("div", xe, [
200
+ (l(!0), a(p, null, m(e.value[o], (y) => {
205
201
  var M, $;
206
- return l(), _(b, {
207
- key: f.id,
202
+ return l(), k(g, {
203
+ key: y.id,
208
204
  compact: t.compact,
209
205
  level: t.level + 1,
210
- noncollapsible: Array.isArray((M = e.value) == null ? void 0 : M[r]) && (($ = e.value) == null ? void 0 : $[r].length) === 1,
211
- value: f
206
+ noncollapsible: Array.isArray((M = e.value) == null ? void 0 : M[o]) && (($ = e.value) == null ? void 0 : $[o].length) === 1,
207
+ value: y
212
208
  }, null, 8, ["compact", "level", "noncollapsible", "value"]);
213
209
  }), 128))
214
210
  ])) : n("", !0),
215
- (Z = e.value) != null && Z.items && typeof s(v) == "string" && typeof e.value.items == "object" && s(v) in e.value.items && Array.isArray(e.value.items[s(v)]) && t.level < 3 ? (l(), a("div", Ee, [
216
- (l(!0), a(p, null, m(e.value.items[s(v)], (f) => (l(), _(b, {
217
- key: f.id,
211
+ (Z = e.value) != null && Z.items && typeof o == "string" && typeof e.value.items == "object" && o in e.value.items && Array.isArray(e.value.items[o]) && t.level < 3 ? (l(), a("div", Ee, [
212
+ (l(!0), a(p, null, m(e.value.items[o], (y) => (l(), k(g, {
213
+ key: y.id,
218
214
  compact: t.compact,
219
215
  level: t.level + 1,
220
- value: f
216
+ value: y
221
217
  }, null, 8, ["compact", "level", "value"]))), 128))
222
218
  ])) : n("", !0)
223
219
  ], 64);
@@ -1,7 +1,6 @@
1
- import type { Spec, Tag } from '@scalar/types/legacy';
1
+ import type { Tag } from '@scalar/types/legacy';
2
2
  type __VLS_Props = {
3
3
  tag: Tag;
4
- spec: Spec;
5
4
  };
6
5
  declare function __VLS_template(): {
7
6
  attrs: Partial<{}>;
@@ -1 +1 @@
1
- {"version":3,"file":"TagAccordion.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagAccordion.vue"],"names":[],"mappings":"AAiDA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAQrD,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,GAAG,CAAA;IACR,IAAI,EAAE,IAAI,CAAA;CACX,CAAC;AAUF,iBAAS,cAAc;WA4ET,OAAO,IAA6B;;yBARpB,GAAG;;;;EAahC;AAaD,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
+ {"version":3,"file":"TagAccordion.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/TagAccordion.vue"],"names":[],"mappings":"AA+CA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAQ/C,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,GAAG,CAAA;CACT,CAAC;AAUF,iBAAS,cAAc;WA4ET,OAAO,IAA6B;;yBARpB,GAAG;;;;EAahC;AAaD,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 "./TagAccordion.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-18f8a087"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-43e1c813"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as n, openBlock as i, createBlock as c, unref as e, withCtx as o, createVNode as a, createTextVNode as s, toDisplayString as l, renderSlot as d } from "vue";
1
+ import { defineComponent as n, openBlock as i, createBlock as c, unref as e, withCtx as o, createVNode as a, createTextVNode as l, toDisplayString as s, renderSlot as d } from "vue";
2
2
  import { ScalarMarkdown as m } from "@scalar/components";
3
3
  import p from "../../Section/SectionContainerAccordion.vue.js";
4
4
  import f from "../../Section/SectionHeader.vue.js";
@@ -7,8 +7,7 @@ import { useNavState as g } from "../../../hooks/useNavState.js";
7
7
  const N = /* @__PURE__ */ n({
8
8
  __name: "TagAccordion",
9
9
  props: {
10
- tag: {},
11
- spec: {}
10
+ tag: {}
12
11
  },
13
12
  setup(_) {
14
13
  const { getTagId: r } = g();
@@ -23,7 +22,7 @@ const N = /* @__PURE__ */ n({
23
22
  id: e(r)(t.tag)
24
23
  }, {
25
24
  default: o(() => [
26
- s(l(t.tag.name), 1)
25
+ l(s(t.tag.name), 1)
27
26
  ]),
28
27
  _: 1
29
28
  }, 8, ["id"])
@@ -1 +1 @@
1
- {"version":3,"file":"Layouts.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/Layouts.vue"],"names":[],"mappings":"AAyCA;;GAEG;AACH,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AA4B7E,iBAAS,cAAc;WAuET,OAAO,IAA6B;;;;EAKjD;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;kFAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"Layouts.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Layouts/Layouts.vue"],"names":[],"mappings":"AAwCA;;GAEG;AACH,OAAO,KAAK,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AA2B7E,iBAAS,cAAc;WAuET,OAAO,IAA6B;;;;EAKjD;AAWD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;kFAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAWpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ScreenReader.vue.d.ts","sourceRoot":"","sources":["../../src/components/ScreenReader.vue"],"names":[],"mappings":"AAmCA,KAAK,WAAW,GAAG;IAEf,EAAE,CAAC,EAAE,OAAO,CAAA;CACb,CAAC;AAgBJ,iBAAS,cAAc;WA6CT,OAAO,IAA6B;;yBATrB,GAAG;yBACH,GAAG;;;;EAa/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;QA7EZ,OAAO;6EAoFd,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":"ScreenReader.vue.d.ts","sourceRoot":"","sources":["../../src/components/ScreenReader.vue"],"names":[],"mappings":"AAkCA,KAAK,WAAW,GAAG;IACf,EAAE,CAAC,EAAE,OAAO,CAAA;CACb,CAAC;AAgBJ,iBAAS,cAAc;WA6CT,OAAO,IAA6B;;yBATrB,GAAG;yBACH,GAAG;;;;EAa/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;QA7EZ,OAAO;6EAoFd,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,7 +1,7 @@
1
1
  import e from "./ScreenReader.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../_virtual/_plugin-vue_export-helper.js";
4
- const c = /* @__PURE__ */ o(e, [["__scopeId", "data-v-681ebf2c"]]);
4
+ const f = /* @__PURE__ */ o(e, [["__scopeId", "data-v-df2e1026"]]);
5
5
  export {
6
- c as default
6
+ f as default
7
7
  };