@scalar/api-reference 1.28.1 → 1.28.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/blocks/hooks/useBlockProps.d.ts +4 -5
  3. package/dist/blocks/hooks/useBlockProps.d.ts.map +1 -1
  4. package/dist/blocks/hooks/useBlockProps.js +10 -14
  5. package/dist/browser/standalone.js +11624 -11582
  6. package/dist/browser/webpack-stats.json +1 -1
  7. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  8. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  9. package/dist/components/ApiReferenceLayout.vue2.js +103 -109
  10. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.d.ts.map +1 -1
  11. package/dist/components/Content/ClientLibraries/ClientLibraries.vue.js +2 -2
  12. package/dist/components/Content/ClientLibraries/ClientLibraries.vue2.js +48 -40
  13. package/dist/components/Content/ClientLibraries/ClientSelector.vue.d.ts.map +1 -1
  14. package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +2 -2
  15. package/dist/components/Content/ClientLibraries/ClientSelector.vue2.js +6 -7
  16. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  17. package/dist/components/Content/Content.vue.js +2 -2
  18. package/dist/components/Content/Content.vue2.js +97 -71
  19. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  20. package/dist/components/Content/Introduction/Introduction.vue.js +2 -2
  21. package/dist/components/Content/Introduction/Introduction.vue2.js +18 -18
  22. package/dist/components/Content/Lazy/Loading.vue.d.ts +3 -0
  23. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
  24. package/dist/components/Content/Lazy/Loading.vue.js +58 -56
  25. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.d.ts.map +1 -1
  26. package/dist/components/Content/Schema/SchemaPropertyHeading.vue.js +1 -1
  27. package/dist/components/Content/Schema/SchemaPropertyHeading.vue2.js +77 -77
  28. package/dist/components/Content/Tag/OperationsList.vue.d.ts +2 -0
  29. package/dist/components/Content/Tag/OperationsList.vue.d.ts.map +1 -1
  30. package/dist/components/Content/Tag/OperationsList.vue.js +2 -2
  31. package/dist/components/Content/Tag/OperationsList.vue2.js +22 -20
  32. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts +2 -0
  33. package/dist/components/Content/Tag/OperationsListItem.vue.d.ts.map +1 -1
  34. package/dist/components/Content/Tag/OperationsListItem.vue.js +2 -2
  35. package/dist/components/Content/Tag/OperationsListItem.vue2.js +10 -8
  36. package/dist/components/Content/Tag/Tag.vue.d.ts +2 -0
  37. package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
  38. package/dist/components/Content/Tag/Tag.vue.js +38 -34
  39. package/dist/components/Content/Tag/TagList.vue.d.ts +3 -0
  40. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  41. package/dist/components/Content/Tag/TagList.vue.js +32 -30
  42. package/dist/components/Content/Tag/TagSection.vue.d.ts +2 -0
  43. package/dist/components/Content/Tag/TagSection.vue.d.ts.map +1 -1
  44. package/dist/components/Content/Tag/TagSection.vue.js +2 -2
  45. package/dist/components/Content/Tag/TagSection.vue2.js +16 -14
  46. package/dist/components/Section/CompactSection.vue.d.ts.map +1 -1
  47. package/dist/components/Section/CompactSection.vue.js +1 -1
  48. package/dist/components/ShowMoreButton.vue.d.ts.map +1 -1
  49. package/dist/components/ShowMoreButton.vue.js +2 -2
  50. package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
  51. package/dist/components/Sidebar/SidebarElement.vue.js +2 -2
  52. package/dist/components/Sidebar/SidebarElement.vue2.js +41 -40
  53. package/dist/features/ApiClientModal/useApiClient.d.ts +6 -6
  54. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  55. package/dist/features/BaseUrl/BaseUrl.vue.d.ts +6 -1
  56. package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
  57. package/dist/features/BaseUrl/BaseUrl.vue.js +36 -32
  58. package/dist/features/Operation/Operation.vue.d.ts +1 -1
  59. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  60. package/dist/features/Operation/Operation.vue.js +13 -12
  61. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  62. package/dist/features/Operation/components/ParameterListItem.vue.js +2 -2
  63. package/dist/features/Operation/components/ParameterListItem.vue2.js +11 -8
  64. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  65. package/dist/features/Operation/layouts/ModernLayout.vue.js +1 -1
  66. package/dist/features/Operation/layouts/ModernLayout.vue2.js +9 -8
  67. package/dist/helpers/scrollToId.d.ts +3 -1
  68. package/dist/helpers/scrollToId.d.ts.map +1 -1
  69. package/dist/helpers/scrollToId.js +4 -4
  70. package/dist/hooks/useMultipleDocuments.d.ts.map +1 -1
  71. package/dist/hooks/useMultipleDocuments.js +49 -41
  72. package/dist/hooks/useSidebar.d.ts +2 -2
  73. package/dist/hooks/useSidebar.d.ts.map +1 -1
  74. package/dist/hooks/useSidebar.js +84 -84
  75. package/dist/index.d.ts +1 -1
  76. package/dist/index.d.ts.map +1 -1
  77. package/dist/index.js +1 -1
  78. package/dist/standalone/lib/html-api.d.ts +8 -9
  79. package/dist/standalone/lib/html-api.d.ts.map +1 -1
  80. package/dist/style.css +1 -1
  81. package/dist/types.d.ts +2 -2
  82. package/dist/types.d.ts.map +1 -1
  83. package/package.json +11 -10
@@ -1,80 +1,102 @@
1
- import { defineComponent as W, computed as L, openBlock as t, createElementBlock as r, Fragment as p, createStaticVNode as j, createElementVNode as h, renderSlot as m, createVNode as d, unref as s, 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";
1
+ import { defineComponent as F, computed as p, openBlock as s, createElementBlock as i, Fragment as v, createStaticVNode as G, createElementVNode as w, renderSlot as m, createBlock as o, unref as r, createCommentVNode as l, withCtx as V, createVNode as u, normalizeClass as I, renderList as O } from "vue";
2
+ import { useWorkspace as R, useActiveEntities as D } from "@scalar/api-client/store";
3
+ import { RequestAuth as H } from "@scalar/api-client/views/Request/RequestSection/RequestAuth";
4
+ import { ScalarErrorBoundary as J } from "@scalar/components";
5
+ import { getSlugUid as K } from "@scalar/oas-utils/transforms";
6
+ import { useConfig as P } from "../../hooks/useConfig.js";
7
+ import Q from "./Lazy/Loading.vue.js";
6
8
  /* empty css */
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
- import b from "./Tag/TagList.vue.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
- import { getModels as w } from "../../helpers/getModels.js";
17
- const Y = { class: "narrow-references-container" }, Z = {
9
+ import T from "./Introduction/Introduction.vue.js";
10
+ import X from "../../features/BaseUrl/BaseUrl.vue.js";
11
+ import Y from "./ClientLibraries/ClientLibraries.vue.js";
12
+ import E from "./Tag/TagList.vue.js";
13
+ import Z from "../../features/Operation/Webhooks.vue.js";
14
+ import _ from "./Models/ModelsAccordion.vue.js";
15
+ import x from "./Models/Models.vue.js";
16
+ import { useSidebar as ee } from "../../hooks/useSidebar.js";
17
+ import { hasModels as re } from "../../helpers/hasModels.js";
18
+ import { getModels as U } from "../../helpers/getModels.js";
19
+ const te = { class: "narrow-references-container" }, se = {
18
20
  key: 0,
19
21
  class: "scalar-client introduction-card-item divide-y text-sm [--scalar-address-bar-height:0px]"
20
- }, _ = {
22
+ }, oe = {
21
23
  key: 1,
22
24
  class: "scalar-client introduction-card-item"
23
- }, ve = /* @__PURE__ */ W({
25
+ }, Ve = /* @__PURE__ */ F({
24
26
  __name: "Content",
25
27
  props: {
26
28
  parsedSpec: {},
27
29
  layout: { default: "modern" }
28
30
  },
29
- setup(C) {
30
- const V = C, { hideModels: E } = T(), { securitySchemes: $ } = F(), {
31
- activeCollection: n,
32
- activeEnvVariables: M,
33
- activeEnvironment: A,
34
- activeServer: B,
35
- activeWorkspace: u
36
- } = G(), N = L(
37
- () => V.layout === "classic" ? "after" : "aside"
31
+ setup($) {
32
+ const M = $, f = P(), { hideModels: A } = ee(), { collections: B, securitySchemes: N, servers: S } = R(), {
33
+ activeCollection: W,
34
+ activeEnvVariables: L,
35
+ activeEnvironment: j,
36
+ activeServer: ae,
37
+ activeWorkspace: y
38
+ } = D(), t = p(() => {
39
+ if (f.value.slug) {
40
+ const e = B[K(f.value.slug)];
41
+ if (e) return e;
42
+ }
43
+ return W.value;
44
+ }), c = p(() => {
45
+ if (t.value) {
46
+ if (t.value.selectedServerUid) {
47
+ const e = S[t.value.selectedServerUid];
48
+ if (e) return e;
49
+ }
50
+ return S[t.value.servers[0]];
51
+ }
52
+ }), q = p(
53
+ () => M.layout === "classic" ? "after" : "aside"
38
54
  );
39
- return (e, f) => {
40
- var v, S, y, k;
41
- return t(), r(p, null, [
42
- f[0] || (f[0] = j('<div class="section-flare" data-v-8c18ef22><div class="section-flare-item" data-v-8c18ef22></div><div class="section-flare-item" data-v-8c18ef22></div><div class="section-flare-item" data-v-8c18ef22></div><div class="section-flare-item" data-v-8c18ef22></div><div class="section-flare-item" data-v-8c18ef22></div><div class="section-flare-item" data-v-8c18ef22></div><div class="section-flare-item" data-v-8c18ef22></div><div class="section-flare-item" data-v-8c18ef22></div></div>', 1)),
43
- h("div", Y, [
55
+ return (e, k) => {
56
+ var h, b, g, C;
57
+ return s(), i(v, null, [
58
+ k[0] || (k[0] = G('<div class="section-flare" data-v-4f85cfb1><div class="section-flare-item" data-v-4f85cfb1></div><div class="section-flare-item" data-v-4f85cfb1></div><div class="section-flare-item" data-v-4f85cfb1></div><div class="section-flare-item" data-v-4f85cfb1></div><div class="section-flare-item" data-v-4f85cfb1></div><div class="section-flare-item" data-v-4f85cfb1></div><div class="section-flare-item" data-v-4f85cfb1></div><div class="section-flare-item" data-v-4f85cfb1></div></div>', 1)),
59
+ w("div", te, [
44
60
  m(e.$slots, "start", {}, void 0, !0),
45
- d(s(R), {
46
- layout: e.layout,
47
- parsedSpec: e.parsedSpec
48
- }, null, 8, ["layout", "parsedSpec"]),
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 ? (t(), o(s(D), {
61
+ t.value ? (s(), o(r(Q), {
50
62
  key: 0,
63
+ collection: t.value,
64
+ layout: e.layout,
65
+ parsedSpec: e.parsedSpec,
66
+ server: c.value
67
+ }, null, 8, ["collection", "layout", "parsedSpec", "server"])) : l("", !0),
68
+ (b = (h = e.parsedSpec) == null ? void 0 : h.info) != null && b.title || (C = (g = e.parsedSpec) == null ? void 0 : g.info) != null && C.description ? (s(), o(r(T), {
69
+ key: 1,
51
70
  info: e.parsedSpec.info,
52
71
  parsedSpec: e.parsedSpec
53
72
  }, {
54
- [N.value]: g(() => [
55
- d(s(O), null, {
56
- default: g(() => {
57
- var i, a, c;
73
+ [q.value]: V(() => [
74
+ u(r(J), null, {
75
+ default: V(() => {
76
+ var n, a, d;
58
77
  return [
59
- h("div", {
60
- class: q(["introduction-card", { "introduction-card-row": e.layout === "classic" }])
78
+ w("div", {
79
+ class: I(["introduction-card", { "introduction-card-row": e.layout === "classic" }])
61
80
  }, [
62
- (a = (i = s(n)) == null ? void 0 : i.servers) != null && a.length ? (t(), r("div", Z, [
63
- d(s(H))
81
+ (a = (n = t.value) == null ? void 0 : n.servers) != null && a.length ? (s(), i("div", se, [
82
+ u(r(X), {
83
+ collection: t.value,
84
+ server: c.value
85
+ }, null, 8, ["collection", "server"])
64
86
  ])) : l("", !0),
65
- s(n) && s(u) && Object.keys(s($) ?? {}).length ? (t(), r("div", _, [
66
- d(s(I), {
67
- collection: s(n),
68
- envVariables: s(M),
69
- environment: s(A),
87
+ t.value && r(y) && Object.keys(r(N) ?? {}).length ? (s(), i("div", oe, [
88
+ u(r(H), {
89
+ collection: t.value,
90
+ envVariables: r(L),
91
+ environment: r(j),
70
92
  layout: "reference",
71
- selectedSecuritySchemeUids: ((c = s(n)) == null ? void 0 : c.selectedSecuritySchemeUids) ?? [],
72
- server: s(B),
93
+ selectedSecuritySchemeUids: ((d = t.value) == null ? void 0 : d.selectedSecuritySchemeUids) ?? [],
94
+ server: c.value,
73
95
  title: "Authentication",
74
- workspace: s(u)
96
+ workspace: r(y)
75
97
  }, null, 8, ["collection", "envVariables", "environment", "selectedSecuritySchemeUids", "server", "workspace"])
76
98
  ])) : l("", !0),
77
- d(s(J), { class: "introduction-card-item" })
99
+ u(r(Y), { class: "introduction-card-item" })
78
100
  ], 2)
79
101
  ];
80
102
  }),
@@ -82,34 +104,38 @@ const Y = { class: "narrow-references-container" }, Z = {
82
104
  })
83
105
  ]),
84
106
  _: 2
85
- }, 1032, ["info", "parsedSpec"])) : m(e.$slots, "empty-state", { key: 1 }, void 0, !0),
86
- e.parsedSpec.tags ? (t(), r(p, { key: 2 }, [
87
- e.parsedSpec["x-tagGroups"] ? (t(!0), r(p, { key: 0 }, z(e.parsedSpec["x-tagGroups"], (i) => (t(), o(s(b), {
88
- key: i.name,
107
+ }, 1032, ["info", "parsedSpec"])) : m(e.$slots, "empty-state", { key: 2 }, void 0, !0),
108
+ e.parsedSpec.tags && t.value ? (s(), i(v, { key: 3 }, [
109
+ e.parsedSpec["x-tagGroups"] ? (s(!0), i(v, { key: 0 }, O(e.parsedSpec["x-tagGroups"], (n) => (s(), o(r(E), {
110
+ key: n.name,
111
+ collection: t.value,
89
112
  layout: e.layout,
113
+ server: c.value,
90
114
  spec: e.parsedSpec,
91
- tags: i.tags.map((a) => {
92
- var c;
93
- return (c = e.parsedSpec.tags) == null ? void 0 : c.find((U) => U.name === a);
115
+ tags: n.tags.map((a) => {
116
+ var d;
117
+ return (d = e.parsedSpec.tags) == null ? void 0 : d.find((z) => z.name === a);
94
118
  }).filter((a) => !!a)
95
- }, null, 8, ["layout", "spec", "tags"]))), 128)) : (t(), o(s(b), {
119
+ }, null, 8, ["collection", "layout", "server", "spec", "tags"]))), 128)) : (s(), o(r(E), {
96
120
  key: 1,
121
+ collection: t.value,
97
122
  layout: e.layout,
123
+ server: c.value,
98
124
  spec: e.parsedSpec,
99
125
  tags: e.parsedSpec.tags
100
- }, null, 8, ["layout", "spec", "tags"]))
126
+ }, null, 8, ["collection", "layout", "server", "spec", "tags"]))
101
127
  ], 64)) : l("", !0),
102
- e.parsedSpec.webhooks ? (t(), o(s(K), {
103
- key: 3,
128
+ e.parsedSpec.webhooks ? (s(), o(r(Z), {
129
+ key: 4,
104
130
  webhooks: e.parsedSpec.webhooks
105
131
  }, null, 8, ["webhooks"])) : l("", !0),
106
- s(X)(e.parsedSpec) && !s(E) ? (t(), r(p, { key: 4 }, [
107
- e.layout === "classic" ? (t(), o(s(P), {
132
+ r(re)(e.parsedSpec) && !r(A) ? (s(), i(v, { key: 5 }, [
133
+ e.layout === "classic" ? (s(), o(r(_), {
108
134
  key: 0,
109
- schemas: s(w)(e.parsedSpec)
110
- }, null, 8, ["schemas"])) : (t(), o(s(Q), {
135
+ schemas: r(U)(e.parsedSpec)
136
+ }, null, 8, ["schemas"])) : (s(), o(r(x), {
111
137
  key: 1,
112
- schemas: s(w)(e.parsedSpec)
138
+ schemas: r(U)(e.parsedSpec)
113
139
  }, null, 8, ["schemas"]))
114
140
  ], 64)) : l("", !0),
115
141
  m(e.$slots, "end", {}, void 0, !0)
@@ -119,5 +145,5 @@ const Y = { class: "narrow-references-container" }, Z = {
119
145
  }
120
146
  });
121
147
  export {
122
- ve as default
148
+ Ve as default
123
149
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Introduction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Introduction.vue"],"names":[],"mappings":"AAsGA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAqBhD,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,OAAO,CACX,SAAS,CAAC,UAAU,GAAG,SAAS,CAAC,UAAU,GAAG,WAAW,CAAC,UAAU,CACrE,CAAA;IACD,UAAU,EAAE,IAAI,CAAA;CACjB,CAAC;AAwCF,iBAAS,cAAc;WAiJT,OAAO,IAA6B;;uBATtB,GAAG;uBACH,GAAG;;;;EAa9B;AAqBD,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":"Introduction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Introduction.vue"],"names":[],"mappings":"AAsGA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAqBhD,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,OAAO,CACX,SAAS,CAAC,UAAU,GAAG,SAAS,CAAC,UAAU,GAAG,WAAW,CAAC,UAAU,CACrE,CAAA;IACD,UAAU,EAAE,IAAI,CAAA;CACjB,CAAC;AAwCF,iBAAS,cAAc;WAkJT,OAAO,IAA6B;;uBATtB,GAAG;uBACH,GAAG;;;;EAa9B;AAqBD,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 "./Introduction.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-53fa9a98"]]);
4
+ const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-4302362d"]]);
5
5
  export {
6
- m as default
6
+ _ as default
7
7
  };
@@ -1,41 +1,41 @@
1
- import { defineComponent as V, computed as a, onMounted as $, openBlock as l, createBlock as s, unref as o, withCtx as t, createVNode as r, createElementVNode as g, createTextVNode as d, toDisplayString as f, createCommentVNode as u, renderSlot as S } from "vue";
1
+ import { defineComponent as V, computed as s, onMounted as $, openBlock as l, createBlock as a, unref as o, withCtx as t, createVNode as r, createElementVNode as g, createTextVNode as d, toDisplayString as f, createCommentVNode as u, renderSlot as S } from "vue";
2
2
  import w from "github-slugger";
3
3
  import { useConfig as N } from "../../../hooks/useConfig.js";
4
- import b from "../../../features/DownloadLink/DownloadLink.vue.js";
5
- import B from "./Description.vue.js";
6
- import D from "../../Section/SectionContainer.vue.js";
7
- import H from "../../Section/Section.vue.js";
4
+ import B from "../../../features/DownloadLink/DownloadLink.vue.js";
5
+ import D from "./Description.vue.js";
6
+ import H from "../../Section/SectionContainer.vue.js";
7
+ import b from "../../Section/Section.vue.js";
8
8
  import L from "../../Section/SectionContent.vue.js";
9
9
  import _ from "../../Badge/Badge.vue.js";
10
10
  import A from "../../Section/SectionHeader.vue.js";
11
11
  import E from "../../Section/SectionHeaderTag.vue.js";
12
12
  import F from "../../Section/SectionColumns.vue.js";
13
13
  import C from "../../Section/SectionColumn.vue.js";
14
- const G = { class: "badges" }, I = { class: "sticky-cards" }, Y = /* @__PURE__ */ V({
14
+ const G = { class: "flex gap-1" }, I = { class: "sticky-cards" }, Y = /* @__PURE__ */ V({
15
15
  __name: "Introduction",
16
16
  props: {
17
17
  info: {},
18
18
  parsedSpec: {}
19
19
  },
20
20
  setup(k) {
21
- const i = k, m = a(
21
+ const i = k, p = s(
22
22
  () => {
23
23
  var e, n;
24
24
  return ((e = i.parsedSpec) == null ? void 0 : e.openapi) ?? ((n = i.parsedSpec) == null ? void 0 : n.swagger) ?? "";
25
25
  }
26
- ), y = new w(), h = a(() => {
26
+ ), y = new w(), h = s(() => {
27
27
  var e;
28
28
  return y.slug(((e = i.info) == null ? void 0 : e.title) ?? "");
29
- }), p = a(() => {
29
+ }), m = s(() => {
30
30
  var e, n;
31
31
  return typeof ((e = i.info) == null ? void 0 : e.version) == "string" ? i.info.version.toString().match(/^\d/) ? `v${i.info.version}` : i.info.version : typeof ((n = i.info) == null ? void 0 : n.version) == "number" ? `v${i.info.version}` : void 0;
32
32
  }), T = N();
33
33
  return $(() => {
34
34
  var e, n;
35
35
  return (n = (e = T.value).onLoaded) == null ? void 0 : n.call(e);
36
- }), (e, n) => (l(), s(o(D), null, {
36
+ }), (e, n) => (l(), a(o(H), null, {
37
37
  default: t(() => [
38
- r(o(H), { class: "introduction-section gap-12" }, {
38
+ r(o(b), { class: "introduction-section gap-12" }, {
39
39
  default: t(() => {
40
40
  var c, v;
41
41
  return [
@@ -44,15 +44,15 @@ const G = { class: "badges" }, I = { class: "sticky-cards" }, Y = /* @__PURE__ *
44
44
  }, {
45
45
  default: t(() => [
46
46
  g("div", G, [
47
- p.value ? (l(), s(o(_), { key: 0 }, {
47
+ m.value ? (l(), a(o(_), { key: 0 }, {
48
48
  default: t(() => [
49
- d(f(p.value), 1)
49
+ d(f(m.value), 1)
50
50
  ]),
51
51
  _: 1
52
52
  })) : u("", !0),
53
- m.value ? (l(), s(o(_), { key: 1 }, {
53
+ p.value ? (l(), a(o(_), { key: 1 }, {
54
54
  default: t(() => [
55
- d("OAS " + f(m.value), 1)
55
+ d("OAS " + f(p.value), 1)
56
56
  ]),
57
57
  _: 1
58
58
  })) : u("", !0)
@@ -71,18 +71,18 @@ const G = { class: "badges" }, I = { class: "sticky-cards" }, Y = /* @__PURE__ *
71
71
  ]),
72
72
  _: 1
73
73
  }, 8, ["loading"]),
74
- r(b, { specTitle: h.value }, null, 8, ["specTitle"]),
74
+ r(B, { specTitle: h.value }, null, 8, ["specTitle"]),
75
75
  r(o(F), null, {
76
76
  default: t(() => [
77
77
  r(o(C), null, {
78
78
  default: t(() => [
79
- r(B, {
79
+ r(D, {
80
80
  value: e.info.description
81
81
  }, null, 8, ["value"])
82
82
  ]),
83
83
  _: 1
84
84
  }),
85
- e.$slots.aside ? (l(), s(o(C), { key: 0 }, {
85
+ e.$slots.aside ? (l(), a(o(C), { key: 0 }, {
86
86
  default: t(() => [
87
87
  g("div", I, [
88
88
  S(e.$slots, "aside", {}, void 0, !0)
@@ -1,3 +1,4 @@
1
+ import type { Collection, Server } from '@scalar/oas-utils/entities/spec';
1
2
  import type { Spec } from '@scalar/types/legacy';
2
3
  /**
3
4
  * Loads a "fake" tag/modal/operation if the user is deep linking
@@ -13,6 +14,8 @@ import type { Spec } from '@scalar/types/legacy';
13
14
  * - need to find an event for codemirror loaded, currently using timeout for models
14
15
  */
15
16
  type __VLS_Props = {
17
+ collection: Collection;
18
+ server?: Server;
16
19
  layout?: 'modern' | 'classic';
17
20
  parsedSpec: Spec;
18
21
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Loading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Lazy/Loading.vue"],"names":[],"mappings":"AAsOA,OAAO,KAAK,EACV,IAAI,EAGL,MAAM,sBAAsB,CAAA;AAqB7B;;;;;;;;;;;;GAYG;AACH,KAAK,WAAW,GAAG;IACf,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,UAAU,EAAE,IAAI,CAAA;CACjB,CAAC;;YAFS,QAAQ,GAAG,SAAS;;AAiRjC,wBAQG"}
1
+ {"version":3,"file":"Loading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Lazy/Loading.vue"],"names":[],"mappings":"AAwOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAA;AAEzE,OAAO,KAAK,EACV,IAAI,EAGL,MAAM,sBAAsB,CAAA;AAqB7B;;;;;;;;;;;;GAYG;AACH,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,UAAU,EAAE,IAAI,CAAA;CACjB,CAAC;;YAFS,QAAQ,GAAG,SAAS;;AA8QjC,wBAQG"}
@@ -1,50 +1,51 @@
1
- import { defineComponent as D, ref as v, watch as H, onMounted as K, withDirectives as M, openBlock as n, createElementBlock as f, normalizeClass as j, Fragment as g, renderList as w, createBlock as m, unref as t, withCtx as d, createCommentVNode as T, createVNode as h, createTextVNode as F, toDisplayString as P, vShow as q } from "vue";
2
- import { useActiveEntities as G } from "@scalar/api-client/store";
3
- import { lazyBus as J } from "./lazyBus.js";
4
- import Q from "../Tag/TagSection.vue.js";
5
- import R from "../../../features/Operation/Operation.vue.js";
6
- import U from "../../Section/SectionContainer.vue.js";
7
- import X from "../../Section/Section.vue.js";
8
- import Y from "../../Section/SectionContent.vue.js";
9
- import Z from "../../Section/SectionHeader.vue.js";
10
- import ee from "../../Anchor/Anchor.vue.js";
11
- import te from "../../Section/SectionHeaderTag.vue.js";
12
- import oe from "../Schema/Schema.vue.js";
13
- import { useNavState as re } from "../../../hooks/useNavState.js";
1
+ import { defineComponent as D, ref as v, watch as E, onMounted as H, withDirectives as K, openBlock as l, createElementBlock as f, normalizeClass as M, Fragment as g, renderList as w, createBlock as m, unref as r, withCtx as d, createCommentVNode as T, createVNode as h, createTextVNode as j, toDisplayString as A, vShow as F } from "vue";
2
+ import { lazyBus as P } from "./lazyBus.js";
3
+ import q from "../Tag/TagSection.vue.js";
4
+ import G from "../../../features/Operation/Operation.vue.js";
5
+ import J from "../../Section/SectionContainer.vue.js";
6
+ import Q from "../../Section/Section.vue.js";
7
+ import R from "../../Section/SectionContent.vue.js";
8
+ import U from "../../Section/SectionHeader.vue.js";
9
+ import X from "../../Anchor/Anchor.vue.js";
10
+ import Y from "../../Section/SectionHeaderTag.vue.js";
11
+ import Z from "../Schema/Schema.vue.js";
12
+ import { useNavState as ee } from "../../../hooks/useNavState.js";
14
13
  import { getModels as S } from "../../../helpers/getModels.js";
15
- import { scrollToId as x } from "../../../helpers/scrollToId.js";
16
- const ye = /* @__PURE__ */ D({
14
+ import { scrollToId as L } from "../../../helpers/scrollToId.js";
15
+ const ve = /* @__PURE__ */ D({
17
16
  __name: "Loading",
18
17
  props: {
18
+ collection: {},
19
+ server: {},
19
20
  layout: { default: "modern" },
20
21
  parsedSpec: {}
21
22
  },
22
- setup(L) {
23
- const i = L, _ = v(!1), y = v([]), I = v([]), { activeCollection: O, activeServer: V } = G(), { getModelId: z, getSectionId: B, getTagId: N, hash: a, isIntersectionEnabled: b } = re(), C = v(i.layout !== "classic" && a.value);
24
- H(
23
+ setup(O) {
24
+ const i = O, C = v(!1), y = v([]), I = v([]), { getModelId: V, getSectionId: z, getTagId: B, hash: a, isIntersectionEnabled: b } = ee(), _ = v(i.layout !== "classic" && a.value);
25
+ E(
25
26
  () => {
26
- var r;
27
- return (r = i.parsedSpec.tags) == null ? void 0 : r.length;
27
+ var t;
28
+ return (t = i.parsedSpec.tags) == null ? void 0 : t.length;
28
29
  },
29
- (r) => {
30
+ (t) => {
30
31
  var e, u;
31
- if (!a.value || typeof r != "number" || !i.parsedSpec.tags)
32
+ if (!a.value || typeof t != "number" || !i.parsedSpec.tags)
32
33
  return;
33
- const l = B();
34
- if (l.startsWith("tag")) {
34
+ const n = z();
35
+ if (n.startsWith("tag")) {
35
36
  let o = 0;
36
37
  const c = ((e = i.parsedSpec.tags) == null ? void 0 : e.findIndex(
37
- (k) => N(k) === l
38
+ (k) => B(k) === n
38
39
  )) ?? 0, s = a.value.match(/tag\/([^/]+)\/([^/]+)\/(.+)/);
39
40
  if ((s == null ? void 0 : s.length) === 4) {
40
41
  const k = s[2], W = "/" + s[3];
41
42
  o = (u = i.parsedSpec.tags[c]) == null ? void 0 : u.operations.findIndex(
42
- ({ httpVerb: $, path: A }) => k === $ && W === A
43
+ ({ httpVerb: $, path: x }) => k === $ && W === x
43
44
  );
44
45
  }
45
46
  const p = i.parsedSpec.tags[c];
46
47
  if (!p) return;
47
- p.name !== "default" && (_.value = l !== a.value && l.startsWith("tag")), y.value.push({
48
+ p.name !== "default" && (C.value = n !== a.value && n.startsWith("tag")), y.value.push({
48
49
  ...p,
49
50
  lazyOperations: p.operations.slice(
50
51
  o,
@@ -56,68 +57,69 @@ const ye = /* @__PURE__ */ D({
56
57
  if (s === -1) return;
57
58
  I.value = o.slice(s, s + 3);
58
59
  } else
59
- typeof window < "u" && x(a.value), setTimeout(() => b.value = !0, 1e3);
60
+ typeof window < "u" && L(a.value), setTimeout(() => b.value = !0, 1e3);
60
61
  },
61
62
  { immediate: !0 }
62
63
  );
63
- const E = J.on(({ id: r }) => {
64
- const l = a.value;
65
- !l || r !== l || (E(), setTimeout(() => {
66
- typeof window < "u" && x(l), C.value = !1, setTimeout(() => b.value = !0, 1e3);
64
+ const N = P.on(({ id: t }) => {
65
+ const n = a.value;
66
+ !n || t !== n || (N(), setTimeout(() => {
67
+ typeof window < "u" && L(n), _.value = !1, setTimeout(() => b.value = !0, 1e3);
67
68
  }, 300));
68
69
  });
69
- return K(() => {
70
+ return H(() => {
70
71
  a.value || setTimeout(() => b.value = !0, 1e3);
71
- }), (r, l) => M((n(), f("div", {
72
- class: j(["references-loading", {
73
- "references-loading-hidden-tag": _.value,
72
+ }), (t, n) => K((l(), f("div", {
73
+ class: M(["references-loading", {
74
+ "references-loading-hidden-tag": C.value,
74
75
  "references-loading-top-spacer": y.value.length
75
76
  }])
76
77
  }, [
77
- (n(!0), f(g, null, w(y.value, (e, u) => (n(), f(g, {
78
+ (l(!0), f(g, null, w(y.value, (e, u) => (l(), f(g, {
78
79
  key: e.name + u
79
80
  }, [
80
- e.operations && e.operations.length > 0 ? (n(), m(t(Q), {
81
+ e.operations && e.operations.length > 0 ? (l(), m(r(q), {
81
82
  key: 0,
82
- spec: r.parsedSpec,
83
+ collection: t.collection,
84
+ spec: t.parsedSpec,
83
85
  tag: e
84
86
  }, {
85
87
  default: d(() => [
86
- (n(!0), f(g, null, w(e.lazyOperations, (o) => (n(), m(t(R), {
88
+ (l(!0), f(g, null, w(e.lazyOperations, (o) => (l(), m(r(G), {
87
89
  key: `${o.httpVerb}-${o.operationId}`,
88
- collection: t(O),
89
- layout: r.layout,
90
- server: t(V),
90
+ collection: t.collection,
91
+ layout: t.layout,
92
+ server: t.server,
91
93
  transformedOperation: o
92
94
  }, null, 8, ["collection", "layout", "server", "transformedOperation"]))), 128))
93
95
  ]),
94
96
  _: 2
95
- }, 1032, ["spec", "tag"])) : T("", !0)
97
+ }, 1032, ["collection", "spec", "tag"])) : T("", !0)
96
98
  ], 64))), 128)),
97
- I.value.length ? (n(), m(t(U), { key: 0 }, {
99
+ I.value.length ? (l(), m(r(J), { key: 0 }, {
98
100
  default: d(() => [
99
- (n(!0), f(g, null, w(I.value, (e) => (n(), m(t(X), {
101
+ (l(!0), f(g, null, w(I.value, (e) => (l(), m(r(Q), {
100
102
  key: e,
101
103
  label: e
102
104
  }, {
103
105
  default: d(() => {
104
106
  var u;
105
107
  return [
106
- (u = t(S)(r.parsedSpec)) != null && u[e] ? (n(), m(t(Y), { key: 0 }, {
108
+ (u = r(S)(t.parsedSpec)) != null && u[e] ? (l(), m(r(R), { key: 0 }, {
107
109
  default: d(() => {
108
110
  var o;
109
111
  return [
110
- h(t(Z), null, {
112
+ h(r(U), null, {
111
113
  default: d(() => [
112
- h(t(ee), {
113
- id: t(z)({ name: e })
114
+ h(r(X), {
115
+ id: r(V)({ name: e })
114
116
  }, {
115
117
  default: d(() => [
116
- h(t(te), { level: 2 }, {
118
+ h(r(Y), { level: 2 }, {
117
119
  default: d(() => {
118
120
  var c;
119
121
  return [
120
- F(P(((c = t(S)(r.parsedSpec)) == null ? void 0 : c[e]).title ?? e), 1)
122
+ j(A(((c = r(S)(t.parsedSpec)) == null ? void 0 : c[e]).title ?? e), 1)
121
123
  ];
122
124
  }),
123
125
  _: 2
@@ -128,10 +130,10 @@ const ye = /* @__PURE__ */ D({
128
130
  ]),
129
131
  _: 2
130
132
  }, 1024),
131
- h(t(oe), {
133
+ h(r(Z), {
132
134
  name: e,
133
135
  noncollapsible: "",
134
- value: (o = t(S)(r.parsedSpec)) == null ? void 0 : o[e]
136
+ value: (o = r(S)(t.parsedSpec)) == null ? void 0 : o[e]
135
137
  }, null, 8, ["name", "value"])
136
138
  ];
137
139
  }),
@@ -145,10 +147,10 @@ const ye = /* @__PURE__ */ D({
145
147
  _: 1
146
148
  })) : T("", !0)
147
149
  ], 2)), [
148
- [q, C.value]
150
+ [F, _.value]
149
151
  ]);
150
152
  }
151
153
  });
152
154
  export {
153
- ye as default
155
+ ve as default
154
156
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SchemaPropertyHeading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Schema/SchemaPropertyHeading.vue"],"names":[],"mappings":"AA2OA,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;CAClB,CAAC;AA0BJ,iBAAS,cAAc;WAgUT,OAAO,IAA6B;;sBATxB,GAAG;sBACH,GAAG;;;;EAa5B;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;cAjXN,OAAO;wFAyXpB,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":"AAgPA,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;CAClB,CAAC;AA0BJ,iBAAS,cAAc;WAkUT,OAAO,IAA6B;;sBATxB,GAAG;sBACH,GAAG;;;;EAa5B;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;cAnXN,OAAO;wFA2XpB,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 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-96db3524"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-4b65b768"]]);
5
5
  export {
6
6
  m as default
7
7
  };