@scalar/api-reference 1.25.122 → 1.25.124

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 (148) hide show
  1. package/CHANGELOG.md +72 -0
  2. package/dist/blocks/constants.d.ts.map +1 -1
  3. package/dist/blocks/helpers/getPointer.d.ts.map +1 -1
  4. package/dist/blocks/hooks/useBlockProps.d.ts.map +1 -1
  5. package/dist/browser/standalone.js +21533 -21032
  6. package/dist/browser/webpack-stats.json +1 -1
  7. package/dist/components/Anchor/Anchor.vue.d.ts +0 -1
  8. package/dist/components/Anchor/Anchor.vue.d.ts.map +1 -1
  9. package/dist/components/Anchor/Anchor.vue.js +2 -2
  10. package/dist/components/Anchor/Anchor.vue2.js +27 -23
  11. package/dist/components/ApiReferenceLayout.vue.d.ts.map +1 -1
  12. package/dist/components/ApiReferenceLayout.vue.js +2 -2
  13. package/dist/components/ApiReferenceLayout.vue2.js +135 -128
  14. package/dist/components/Card/Card.vue.d.ts.map +1 -1
  15. package/dist/components/Card/Card.vue.js +7 -7
  16. package/dist/components/Content/ClientLibraries/ClientSelector.vue.js +1 -1
  17. package/dist/components/Content/Content.vue.d.ts.map +1 -1
  18. package/dist/components/Content/Content.vue.js +2 -2
  19. package/dist/components/Content/Content.vue2.js +33 -33
  20. package/dist/components/Content/Introduction/Description.vue.d.ts.map +1 -1
  21. package/dist/components/Content/Introduction/Description.vue.js +2 -2
  22. package/dist/components/Content/Introduction/Description.vue2.js +7 -7
  23. package/dist/components/Content/Introduction/Introduction.vue.d.ts.map +1 -1
  24. package/dist/components/Content/Introduction/Introduction.vue.js +1 -1
  25. package/dist/components/Content/Introduction/Introduction.vue2.js +44 -39
  26. package/dist/components/Content/Lazy/Loading.vue.d.ts.map +1 -1
  27. package/dist/components/Content/Lazy/Loading.vue.js +65 -59
  28. package/dist/components/Content/Models/Models.vue.d.ts.map +1 -1
  29. package/dist/components/Content/Models/Models.vue.js +2 -2
  30. package/dist/components/Content/Models/Models.vue2.js +66 -52
  31. package/dist/components/Content/Models/ModelsAccordion.vue.d.ts.map +1 -1
  32. package/dist/components/Content/Models/ModelsAccordion.vue.js +1 -1
  33. package/dist/components/Content/Models/ModelsAccordion.vue2.js +37 -31
  34. package/dist/components/Content/Schema/helpers/optimizeValueForDisplay.d.ts.map +1 -1
  35. package/dist/components/Content/Tag/Endpoints.vue.d.ts +1 -0
  36. package/dist/components/Content/Tag/Endpoints.vue.d.ts.map +1 -1
  37. package/dist/components/Content/Tag/Endpoints.vue.js +2 -2
  38. package/dist/components/Content/Tag/Endpoints.vue2.js +79 -52
  39. package/dist/components/Content/Tag/Tag.vue.d.ts.map +1 -1
  40. package/dist/components/Content/Tag/Tag.vue.js +2 -2
  41. package/dist/components/Content/Tag/Tag.vue2.js +29 -26
  42. package/dist/components/Content/Tag/TagAccordion.vue.d.ts.map +1 -1
  43. package/dist/components/Content/Tag/TagAccordion.vue.js +2 -2
  44. package/dist/components/Content/Tag/TagAccordion.vue2.js +22 -19
  45. package/dist/components/Content/Tag/TagList.vue.d.ts.map +1 -1
  46. package/dist/components/GettingStarted.vue.d.ts.map +1 -1
  47. package/dist/components/GettingStarted.vue.js +2 -2
  48. package/dist/components/GettingStarted.vue2.js +25 -25
  49. package/dist/components/HttpMethod/HttpMethod.vue.d.ts.map +1 -1
  50. package/dist/components/Layouts/ClassicLayout.vue.d.ts.map +1 -1
  51. package/dist/components/Layouts/ClassicLayout.vue.js +6 -6
  52. package/dist/components/Section/SectionContainer.vue.d.ts.map +1 -1
  53. package/dist/components/Section/SectionContainer.vue.js +1 -1
  54. package/dist/components/Section/SectionHeader.vue.d.ts +1 -6
  55. package/dist/components/Section/SectionHeader.vue.d.ts.map +1 -1
  56. package/dist/components/Section/SectionHeader.vue.js +1 -1
  57. package/dist/components/Section/SectionHeader.vue2.js +12 -16
  58. package/dist/components/Section/SectionHeaderTag.vue.d.ts +21 -0
  59. package/dist/components/Section/SectionHeaderTag.vue.d.ts.map +1 -0
  60. package/dist/components/Section/SectionHeaderTag.vue.js +7 -0
  61. package/dist/components/Section/SectionHeaderTag.vue2.js +18 -0
  62. package/dist/components/Section/index.d.ts +1 -0
  63. package/dist/components/Section/index.d.ts.map +1 -1
  64. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  65. package/dist/components/Sidebar/Sidebar.vue.js +1 -1
  66. package/dist/components/Sidebar/Sidebar.vue2.js +14 -14
  67. package/dist/components/Sidebar/SidebarElement.vue.d.ts.map +1 -1
  68. package/dist/components/Sidebar/SidebarElement.vue.js +2 -2
  69. package/dist/esm.d.ts.map +1 -1
  70. package/dist/esm.js +1 -3
  71. package/dist/features/ApiClientModal/ApiClientModal.vue.d.ts.map +1 -1
  72. package/dist/features/ApiClientModal/useApiClient.d.ts +414 -510
  73. package/dist/features/ApiClientModal/useApiClient.d.ts.map +1 -1
  74. package/dist/features/BaseUrl/BaseUrl.vue.d.ts.map +1 -1
  75. package/dist/features/BaseUrl/BaseUrl.vue.js +20 -21
  76. package/dist/features/ExampleRequest/ExampleRequest.vue.d.ts.map +1 -1
  77. package/dist/features/ExampleRequest/ExampleRequest.vue.js +1 -1
  78. package/dist/features/ExampleResponses/ExampleResponses.vue.d.ts.map +1 -1
  79. package/dist/features/ExampleResponses/ExampleResponses.vue.js +2 -2
  80. package/dist/features/ExampleResponses/ExampleResponses.vue2.js +47 -47
  81. package/dist/features/Operation/Operation.vue.d.ts.map +1 -1
  82. package/dist/features/Operation/Operation.vue.js +5 -5
  83. package/dist/features/Operation/Webhooks.vue.d.ts.map +1 -1
  84. package/dist/features/Operation/Webhooks.vue.js +3 -3
  85. package/dist/features/Operation/Webhooks.vue2.js +74 -60
  86. package/dist/features/Operation/components/ContentTypeSelect.vue.d.ts.map +1 -1
  87. package/dist/features/Operation/components/ContentTypeSelect.vue.js +2 -2
  88. package/dist/features/Operation/components/ParameterHeaders.vue.d.ts.map +1 -1
  89. package/dist/features/Operation/components/ParameterHeaders.vue.js +3 -3
  90. package/dist/features/Operation/components/ParameterHeaders.vue2.js +8 -8
  91. package/dist/features/Operation/components/ParameterListItem.vue.d.ts.map +1 -1
  92. package/dist/features/Operation/components/ParameterListItem.vue.js +3 -3
  93. package/dist/features/Operation/components/ParameterListItem.vue2.js +16 -16
  94. package/dist/features/Operation/components/RequestBody.vue.d.ts.map +1 -1
  95. package/dist/features/Operation/components/RequestBody.vue.js +2 -2
  96. package/dist/features/Operation/components/RequestBody.vue2.js +26 -47
  97. package/dist/features/Operation/hooks/useResponses.d.ts.map +1 -1
  98. package/dist/features/Operation/layouts/ClassicLayout.vue.d.ts.map +1 -1
  99. package/dist/features/Operation/layouts/ClassicLayout.vue.js +2 -2
  100. package/dist/features/Operation/layouts/ClassicLayout.vue2.js +11 -11
  101. package/dist/features/Operation/layouts/ModernLayout.vue.d.ts.map +1 -1
  102. package/dist/features/Operation/layouts/ModernLayout.vue.js +2 -2
  103. package/dist/features/Operation/layouts/ModernLayout.vue2.js +80 -69
  104. package/dist/features/Search/SearchButton.vue.d.ts.map +1 -1
  105. package/dist/features/Search/SearchButton.vue.js +1 -1
  106. package/dist/features/Search/SearchButton.vue2.js +30 -18
  107. package/dist/features/Search/SearchModal.vue.d.ts.map +1 -1
  108. package/dist/features/Search/SearchModal.vue.js +1 -1
  109. package/dist/features/Search/SearchModal.vue2.js +104 -95
  110. package/dist/features/Search/useSearchIndex.d.ts.map +1 -1
  111. package/dist/features/Search/useSearchIndex.js +11 -17
  112. package/dist/features/TestRequestButton/TestRequestButton.vue.d.ts.map +1 -1
  113. package/dist/features/TestRequestButton/TestRequestButton.vue.js +2 -2
  114. package/dist/features/TestRequestButton/TestRequestButton.vue2.js +6 -6
  115. package/dist/helpers/createEmptySpecification.d.ts.map +1 -1
  116. package/dist/helpers/get-request.d.ts.map +1 -1
  117. package/dist/helpers/getModels.d.ts.map +1 -1
  118. package/dist/helpers/isMacOs.d.ts.map +1 -1
  119. package/dist/helpers/operation.d.ts.map +1 -1
  120. package/dist/helpers/parse.js +62 -62
  121. package/dist/helpers/specDownloads.d.ts.map +1 -1
  122. package/dist/helpers/specHelpers.d.ts.map +1 -1
  123. package/dist/helpers/waitFor.d.ts.map +1 -1
  124. package/dist/hooks/useConfig.d.ts.map +1 -1
  125. package/dist/hooks/useDeprecationWarnings.d.ts.map +1 -1
  126. package/dist/hooks/useDeprecationWarnings.js +1 -5
  127. package/dist/hooks/useNavState.d.ts +1 -2
  128. package/dist/hooks/useNavState.d.ts.map +1 -1
  129. package/dist/hooks/useNavState.js +3 -10
  130. package/dist/hooks/useReactiveSpec.d.ts +8 -8
  131. package/dist/hooks/useReactiveSpec.d.ts.map +1 -1
  132. package/dist/hooks/useReactiveSpec.js +12 -13
  133. package/dist/hooks/useSidebar.d.ts.map +1 -1
  134. package/dist/hooks/useSidebar.js +38 -48
  135. package/dist/index.js +1 -1
  136. package/dist/legacy/helpers/normalizeRequestMethod.d.ts.map +1 -1
  137. package/dist/legacy/helpers/normalizeRequestMethod.js +2 -6
  138. package/dist/legacy/types.d.ts.map +1 -1
  139. package/dist/standalone/lib/html-api.d.ts +11 -0
  140. package/dist/standalone/lib/html-api.d.ts.map +1 -0
  141. package/dist/standalone/lib/html-rendering.d.ts +51 -0
  142. package/dist/standalone/lib/html-rendering.d.ts.map +1 -0
  143. package/dist/standalone/lib/html-rendering.js +54 -0
  144. package/dist/stores/useHttpClientStore.d.ts.map +1 -1
  145. package/dist/style.css +1 -1
  146. package/dist/types.d.ts +0 -3
  147. package/dist/types.d.ts.map +1 -1
  148. package/package.json +16 -15
@@ -1,4 +1,4 @@
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";
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
2
  import { useWorkspace as F, useActiveEntities as G } from "@scalar/api-client/store";
3
3
  import { RequestAuth as I } from "@scalar/api-client/views/Request/RequestSection/RequestAuth";
4
4
  import { ScalarErrorBoundary as O } from "@scalar/components";
@@ -16,7 +16,7 @@ import { hasModels as X } from "../../helpers/hasModels.js";
16
16
  import { getModels as w } from "../../helpers/getModels.js";
17
17
  const Y = { class: "narrow-references-container" }, Z = {
18
18
  key: 0,
19
- class: "scalar-client introduction-card-item [--scalar-address-bar-height:0px] divide-y text-sm"
19
+ class: "scalar-client introduction-card-item divide-y text-sm [--scalar-address-bar-height:0px]"
20
20
  }, _ = {
21
21
  key: 1,
22
22
  class: "scalar-client introduction-card-item"
@@ -32,49 +32,49 @@ const Y = { class: "narrow-references-container" }, Z = {
32
32
  activeEnvVariables: M,
33
33
  activeEnvironment: A,
34
34
  activeServer: B,
35
- activeWorkspace: f
35
+ activeWorkspace: u
36
36
  } = G(), N = L(
37
37
  () => V.layout === "classic" ? "after" : "aside"
38
38
  );
39
- return (e, u) => {
39
+ return (e, f) => {
40
40
  var v, S, y, k;
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)),
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
43
  h("div", Y, [
44
44
  m(e.$slots, "start", {}, void 0, !0),
45
- d(a(R), {
45
+ d(s(R), {
46
46
  layout: e.layout,
47
47
  parsedSpec: e.parsedSpec
48
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 ? (s(), o(a(D), {
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), {
50
50
  key: 0,
51
51
  info: e.parsedSpec.info,
52
52
  parsedSpec: e.parsedSpec
53
53
  }, {
54
54
  [N.value]: g(() => [
55
- d(a(O), null, {
55
+ d(s(O), null, {
56
56
  default: g(() => {
57
- var i, t, c;
57
+ var i, a, c;
58
58
  return [
59
59
  h("div", {
60
60
  class: q(["introduction-card", { "introduction-card-row": e.layout === "classic" }])
61
61
  }, [
62
- (t = (i = a(n)) == null ? void 0 : i.servers) != null && t.length ? (s(), r("div", Z, [
63
- d(a(H))
62
+ (a = (i = s(n)) == null ? void 0 : i.servers) != null && a.length ? (t(), r("div", Z, [
63
+ d(s(H))
64
64
  ])) : l("", !0),
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),
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),
70
70
  layout: "reference",
71
- selectedSecuritySchemeUids: ((c = a(n)) == null ? void 0 : c.selectedSecuritySchemeUids) ?? [],
72
- server: a(B),
71
+ selectedSecuritySchemeUids: ((c = s(n)) == null ? void 0 : c.selectedSecuritySchemeUids) ?? [],
72
+ server: s(B),
73
73
  title: "Authentication",
74
- workspace: a(f)
74
+ workspace: s(u)
75
75
  }, null, 8, ["collection", "envVariables", "environment", "selectedSecuritySchemeUids", "server", "workspace"])
76
76
  ])) : l("", !0),
77
- d(a(J), { class: "introduction-card-item" })
77
+ d(s(J), { class: "introduction-card-item" })
78
78
  ], 2)
79
79
  ];
80
80
  }),
@@ -83,33 +83,33 @@ const Y = { class: "narrow-references-container" }, Z = {
83
83
  ]),
84
84
  _: 2
85
85
  }, 1032, ["info", "parsedSpec"])) : m(e.$slots, "empty-state", { key: 1 }, void 0, !0),
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), {
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
88
  key: i.name,
89
89
  layout: e.layout,
90
90
  spec: e.parsedSpec,
91
- tags: i.tags.map((t) => {
91
+ tags: i.tags.map((a) => {
92
92
  var c;
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), {
93
+ return (c = e.parsedSpec.tags) == null ? void 0 : c.find((U) => U.name === a);
94
+ }).filter((a) => !!a)
95
+ }, null, 8, ["layout", "spec", "tags"]))), 128)) : (t(), o(s(b), {
96
96
  key: 1,
97
97
  layout: e.layout,
98
98
  spec: e.parsedSpec,
99
99
  tags: e.parsedSpec.tags
100
100
  }, null, 8, ["layout", "spec", "tags"]))
101
101
  ], 64)) : l("", !0),
102
- e.parsedSpec.webhooks ? (s(), o(a(K), {
102
+ e.parsedSpec.webhooks ? (t(), o(s(K), {
103
103
  key: 3,
104
104
  webhooks: e.parsedSpec.webhooks
105
105
  }, null, 8, ["webhooks"])) : l("", !0),
106
- a(X)(e.parsedSpec) && !a(E) ? (s(), r(p, { key: 4 }, [
107
- e.layout === "classic" ? (s(), o(a(P), {
106
+ s(X)(e.parsedSpec) && !s(E) ? (t(), r(p, { key: 4 }, [
107
+ e.layout === "classic" ? (t(), o(s(P), {
108
108
  key: 0,
109
- schemas: a(w)(e.parsedSpec)
110
- }, null, 8, ["schemas"])) : (s(), o(a(Q), {
109
+ schemas: s(w)(e.parsedSpec)
110
+ }, null, 8, ["schemas"])) : (t(), o(s(Q), {
111
111
  key: 1,
112
- schemas: a(w)(e.parsedSpec)
112
+ schemas: s(w)(e.parsedSpec)
113
113
  }, null, 8, ["schemas"]))
114
114
  ], 64)) : l("", !0),
115
115
  m(e.$slots, "end", {}, void 0, !0)
@@ -1 +1 @@
1
- {"version":3,"file":"Description.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Description.vue"],"names":[],"mappings":"AAiIA,KAAK,WAAW,GAAG;IACjB,wBAAwB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;;AAyKF,wBAMG"}
1
+ {"version":3,"file":"Description.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Description.vue"],"names":[],"mappings":"AAmIA,KAAK,WAAW,GAAG;IACjB,wBAAwB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;;AAyKF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Description.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-fa3d93c5"]]);
4
+ const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-509a7035"]]);
5
5
  export {
6
- c as default
6
+ i as default
7
7
  };
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as H, computed as I, openBlock as n, createElementBlock as a, Fragment as u, renderList as S, createBlock as s, unref as i, withCtx as w, createVNode as C, createCommentVNode as B } from "vue";
2
- import N from "../../IntersectionObserver.vue.js";
3
- import { useNavState as b } from "../../../hooks/useNavState.js";
4
- import { splitContent as x, getHeadings as E } from "@scalar/code-highlight/markdown";
2
+ import { splitContent as N, getHeadings as b } from "@scalar/code-highlight/markdown";
5
3
  import { ScalarMarkdown as c } from "@scalar/components";
6
4
  import d from "github-slugger";
5
+ import x from "../../IntersectionObserver.vue.js";
6
+ import { useNavState as E } from "../../../hooks/useNavState.js";
7
7
  const F = {
8
8
  key: 0,
9
9
  class: "introduction-description"
@@ -17,8 +17,8 @@ const F = {
17
17
  if (!o.value)
18
18
  return [];
19
19
  const e = new d();
20
- return x(o.value).map((t) => {
21
- const [r] = E(t);
20
+ return N(o.value).map((t) => {
21
+ const [r] = b(t);
22
22
  return {
23
23
  id: r ? l({
24
24
  ...r,
@@ -27,7 +27,7 @@ const F = {
27
27
  content: t
28
28
  };
29
29
  });
30
- }), { getHeadingId: l, getFullHash: g, isIntersectionEnabled: f, replaceUrlState: v } = b();
30
+ }), { getHeadingId: l, getFullHash: g, isIntersectionEnabled: f, replaceUrlState: v } = E();
31
31
  function h(e = "") {
32
32
  f.value && v(e);
33
33
  }
@@ -44,7 +44,7 @@ const F = {
44
44
  (n(!0), a(u, null, S(p.value, (t) => (n(), a(u, {
45
45
  key: t.id
46
46
  }, [
47
- t.id ? (n(), s(N, {
47
+ t.id ? (n(), s(x, {
48
48
  key: 0,
49
49
  id: i(g)(t.id),
50
50
  class: "introduction-description-heading",
@@ -1 +1 @@
1
- {"version":3,"file":"Introduction.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Introduction/Introduction.vue"],"names":[],"mappings":"AAoGA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAkBhD,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;WAyIT,OAAO,IAA6B;;uBATtB,GAAG;uBACH,GAAG;;;;EAa9B;AAoBD,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;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,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-0336cd4f"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2ce99a34"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as $, computed as u, onMounted as w, openBlock as l, createBlock as s, unref as t, withCtx as i, createVNode as n, createElementVNode as S, createTextVNode as f, toDisplayString as d, createCommentVNode as p, renderSlot as _ } from "vue";
1
+ import { defineComponent as V, computed as f, onMounted as $, openBlock as l, createBlock as s, unref as o, withCtx as t, createVNode as n, createElementVNode as S, createTextVNode as u, toDisplayString as d, createCommentVNode as m, renderSlot as _ } from "vue";
2
+ import w from "github-slugger";
2
3
  import { useConfig as N } from "../../../hooks/useConfig.js";
3
- import T from "github-slugger";
4
4
  import b from "../../../features/DownloadLink/DownloadLink.vue.js";
5
5
  import B from "./Description.vue.js";
6
6
  import D from "../../Section/SectionContainer.vue.js";
@@ -8,80 +8,85 @@ import H from "../../Section/Section.vue.js";
8
8
  import A from "../../Section/SectionContent.vue.js";
9
9
  import C from "../../Badge/Badge.vue.js";
10
10
  import E from "../../Section/SectionHeader.vue.js";
11
- import F from "../../Section/SectionColumns.vue.js";
11
+ import F from "../../Section/SectionHeaderTag.vue.js";
12
+ import G from "../../Section/SectionColumns.vue.js";
12
13
  import k from "../../Section/SectionColumn.vue.js";
13
- const G = { class: "badges" }, I = { class: "sticky-cards" }, W = /* @__PURE__ */ $({
14
+ const I = { class: "badges" }, M = { class: "sticky-cards" }, Y = /* @__PURE__ */ V({
14
15
  __name: "Introduction",
15
16
  props: {
16
17
  info: {},
17
18
  parsedSpec: {}
18
19
  },
19
20
  setup(y) {
20
- const o = y, m = u(
21
+ const i = y, p = f(
21
22
  () => {
22
23
  var e, r;
23
- return ((e = o.parsedSpec) == null ? void 0 : e.openapi) ?? ((r = o.parsedSpec) == null ? void 0 : r.swagger) ?? "";
24
+ return ((e = i.parsedSpec) == null ? void 0 : e.openapi) ?? ((r = i.parsedSpec) == null ? void 0 : r.swagger) ?? "";
24
25
  }
25
- ), h = new T(), V = u(() => {
26
+ ), h = new w(), T = f(() => {
26
27
  var e;
27
- return h.slug(((e = o.info) == null ? void 0 : e.title) ?? "");
28
- }), c = u(() => {
28
+ return h.slug(((e = i.info) == null ? void 0 : e.title) ?? "");
29
+ }), c = f(() => {
29
30
  var e, r;
30
- return typeof ((e = o.info) == null ? void 0 : e.version) == "string" ? o.info.version.toString().match(/^\d/) ? `v${o.info.version}` : o.info.version : typeof ((r = o.info) == null ? void 0 : r.version) == "number" ? `v${o.info.version}` : void 0;
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 ((r = i.info) == null ? void 0 : r.version) == "number" ? `v${i.info.version}` : void 0;
31
32
  }), { onLoaded: a } = N();
32
- return w(() => a == null ? void 0 : a()), (e, r) => (l(), s(t(D), null, {
33
- default: i(() => [
34
- n(t(H), { class: "introduction-section gap-12" }, {
35
- default: i(() => {
33
+ return $(() => a == null ? void 0 : a()), (e, r) => (l(), s(o(D), null, {
34
+ default: t(() => [
35
+ n(o(H), { class: "introduction-section gap-12" }, {
36
+ default: t(() => {
36
37
  var v, g;
37
38
  return [
38
- n(t(A), {
39
+ n(o(A), {
39
40
  loading: !((v = e.info) != null && v.description) && !((g = e.info) != null && g.title)
40
41
  }, {
41
- default: i(() => [
42
- S("div", G, [
43
- c.value ? (l(), s(t(C), { key: 0 }, {
44
- default: i(() => [
45
- f(d(c.value), 1)
42
+ default: t(() => [
43
+ S("div", I, [
44
+ c.value ? (l(), s(o(C), { key: 0 }, {
45
+ default: t(() => [
46
+ u(d(c.value), 1)
46
47
  ]),
47
48
  _: 1
48
- })) : p("", !0),
49
- m.value ? (l(), s(t(C), { key: 1 }, {
50
- default: i(() => [
51
- f("OAS " + d(m.value), 1)
49
+ })) : m("", !0),
50
+ p.value ? (l(), s(o(C), { key: 1 }, {
51
+ default: t(() => [
52
+ u("OAS " + d(p.value), 1)
52
53
  ]),
53
54
  _: 1
54
- })) : p("", !0)
55
+ })) : m("", !0)
55
56
  ]),
56
- n(t(E), {
57
- level: 1,
57
+ n(o(E), {
58
58
  loading: !e.info.title,
59
59
  tight: ""
60
60
  }, {
61
- default: i(() => [
62
- f(d(e.info.title), 1)
61
+ default: t(() => [
62
+ n(o(F), { level: 1 }, {
63
+ default: t(() => [
64
+ u(d(e.info.title), 1)
65
+ ]),
66
+ _: 1
67
+ })
63
68
  ]),
64
69
  _: 1
65
70
  }, 8, ["loading"]),
66
- n(b, { specTitle: V.value }, null, 8, ["specTitle"]),
67
- n(t(F), null, {
68
- default: i(() => [
69
- n(t(k), null, {
70
- default: i(() => [
71
+ n(b, { specTitle: T.value }, null, 8, ["specTitle"]),
72
+ n(o(G), null, {
73
+ default: t(() => [
74
+ n(o(k), null, {
75
+ default: t(() => [
71
76
  n(B, {
72
77
  value: e.info.description
73
78
  }, null, 8, ["value"])
74
79
  ]),
75
80
  _: 1
76
81
  }),
77
- e.$slots.aside ? (l(), s(t(k), { key: 0 }, {
78
- default: i(() => [
79
- S("div", I, [
82
+ e.$slots.aside ? (l(), s(o(k), { key: 0 }, {
83
+ default: t(() => [
84
+ S("div", M, [
80
85
  _(e.$slots, "aside", {}, void 0, !0)
81
86
  ])
82
87
  ]),
83
88
  _: 3
84
- })) : p("", !0)
89
+ })) : m("", !0)
85
90
  ]),
86
91
  _: 3
87
92
  })
@@ -99,5 +104,5 @@ const G = { class: "badges" }, I = { class: "sticky-cards" }, W = /* @__PURE__ *
99
104
  }
100
105
  });
101
106
  export {
102
- W as default
107
+ Y as default
103
108
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Loading.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Lazy/Loading.vue"],"names":[],"mappings":"AAmOA,OAAO,KAAK,EACV,IAAI,EAGL,MAAM,sBAAsB,CAAA;AAkB7B;;;;;;;;;;;;GAYG;AACH,KAAK,WAAW,GAAG;IACf,MAAM,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC7B,UAAU,EAAE,IAAI,CAAA;CACjB,CAAC;;YAFS,QAAQ,GAAG,SAAS;;AAwQjC,wBAQG"}
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,4 +1,4 @@
1
- import { defineComponent as D, ref as v, watch as K, onMounted as M, withDirectives as j, openBlock as n, createElementBlock as f, normalizeClass as F, Fragment as g, renderList as k, createBlock as m, unref as t, withCtx as p, createCommentVNode as w, createVNode as C, createTextVNode as H, toDisplayString as P, vShow as q } from "vue";
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 c, createCommentVNode as T, createVNode as h, createTextVNode as F, toDisplayString as P, vShow as q } from "vue";
2
2
  import { useActiveEntities as G } from "@scalar/api-client/store";
3
3
  import { lazyBus as J } from "./lazyBus.js";
4
4
  import Q from "../Tag/Tag.vue.js";
@@ -8,19 +8,20 @@ import X from "../../Section/Section.vue.js";
8
8
  import Y from "../../Section/SectionContent.vue.js";
9
9
  import Z from "../../Section/SectionHeader.vue.js";
10
10
  import ee from "../../Anchor/Anchor.vue.js";
11
- import te from "../Schema/Schema.vue.js";
12
- import { useNavState as oe } from "../../../hooks/useNavState.js";
13
- import { getModels as h } from "../../../helpers/getModels.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";
14
+ import { getModels as S } from "../../../helpers/getModels.js";
14
15
  import { scrollToId as x } from "../../../helpers/scrollToId.js";
15
- const he = /* @__PURE__ */ D({
16
+ const ye = /* @__PURE__ */ D({
16
17
  __name: "Loading",
17
18
  props: {
18
19
  layout: { default: "modern" },
19
20
  parsedSpec: {}
20
21
  },
21
22
  setup(L) {
22
- const i = L, T = v(!1), S = v([]), y = v([]), { activeCollection: O, activeServer: V } = G(), { getModelId: z, getSectionId: B, getTagId: N, hash: a, isIntersectionEnabled: I } = oe(), _ = v(i.layout !== "classic" && a.value);
23
- K(
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(
24
25
  () => {
25
26
  var r;
26
27
  return (r = i.parsedSpec.tags) == null ? void 0 : r.length;
@@ -29,51 +30,51 @@ const he = /* @__PURE__ */ D({
29
30
  var e, u;
30
31
  if (!a.value || typeof r != "number" || !i.parsedSpec.tags)
31
32
  return;
32
- const s = B();
33
- if (s.startsWith("tag")) {
33
+ const l = B();
34
+ if (l.startsWith("tag")) {
34
35
  let o = 0;
35
- const c = ((e = i.parsedSpec.tags) == null ? void 0 : e.findIndex(
36
- (b) => N(b) === s
37
- )) ?? 0, l = a.value.match(/tag\/([^/]+)\/([^/]+)\/(.+)/);
38
- if ((l == null ? void 0 : l.length) === 4) {
39
- const b = l[2], W = "/" + l[3];
40
- o = (u = i.parsedSpec.tags[c]) == null ? void 0 : u.operations.findIndex(
41
- ({ httpVerb: $, path: A }) => b === $ && W === A
36
+ const d = ((e = i.parsedSpec.tags) == null ? void 0 : e.findIndex(
37
+ (k) => N(k) === l
38
+ )) ?? 0, s = a.value.match(/tag\/([^/]+)\/([^/]+)\/(.+)/);
39
+ if ((s == null ? void 0 : s.length) === 4) {
40
+ const k = s[2], W = "/" + s[3];
41
+ o = (u = i.parsedSpec.tags[d]) == null ? void 0 : u.operations.findIndex(
42
+ ({ httpVerb: $, path: A }) => k === $ && W === A
42
43
  );
43
44
  }
44
- const d = i.parsedSpec.tags[c];
45
- if (!d) return;
46
- d.name !== "default" && (T.value = s !== a.value && s.startsWith("tag")), S.value.push({
47
- ...d,
48
- lazyOperations: d.operations.slice(
45
+ const p = i.parsedSpec.tags[d];
46
+ if (!p) return;
47
+ p.name !== "default" && (_.value = l !== a.value && l.startsWith("tag")), y.value.push({
48
+ ...p,
49
+ lazyOperations: p.operations.slice(
49
50
  o,
50
51
  o + 2
51
52
  )
52
53
  });
53
54
  } else if (a.value.startsWith("model")) {
54
- const o = Object.keys(h(i.parsedSpec) ?? {}), [, c] = a.value.toLowerCase().split("/"), l = a.value === "models" ? 0 : o.findIndex((d) => d.toLowerCase() === c);
55
- if (l === -1) return;
56
- y.value = o.slice(l, l + 3);
55
+ const o = Object.keys(S(i.parsedSpec) ?? {}), [, d] = a.value.toLowerCase().split("/"), s = a.value === "models" ? 0 : o.findIndex((p) => p.toLowerCase() === d);
56
+ if (s === -1) return;
57
+ I.value = o.slice(s, s + 3);
57
58
  } else
58
- typeof window < "u" && x(a.value), setTimeout(() => I.value = !0, 1e3);
59
+ typeof window < "u" && x(a.value), setTimeout(() => b.value = !0, 1e3);
59
60
  },
60
61
  { immediate: !0 }
61
62
  );
62
63
  const E = J.on(({ id: r }) => {
63
- const s = a.value;
64
- !s || r !== s || (E(), setTimeout(() => {
65
- typeof window < "u" && x(s), _.value = !1, setTimeout(() => I.value = !0, 1e3);
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);
66
67
  }, 300));
67
68
  });
68
- return M(() => {
69
- a.value || setTimeout(() => I.value = !0, 1e3);
70
- }), (r, s) => j((n(), f("div", {
71
- class: F(["references-loading", {
72
- "references-loading-hidden-tag": T.value,
73
- "references-loading-top-spacer": S.value.length
69
+ return K(() => {
70
+ 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,
74
+ "references-loading-top-spacer": y.value.length
74
75
  }])
75
76
  }, [
76
- (n(!0), f(g, null, k(S.value, (e, u) => (n(), f(g, {
77
+ (n(!0), f(g, null, w(y.value, (e, u) => (n(), f(g, {
77
78
  key: e.name + u
78
79
  }, [
79
80
  e.operations && e.operations.length > 0 ? (n(), m(t(Q), {
@@ -81,8 +82,8 @@ const he = /* @__PURE__ */ D({
81
82
  spec: r.parsedSpec,
82
83
  tag: e
83
84
  }, {
84
- default: p(() => [
85
- (n(!0), f(g, null, k(e.lazyOperations, (o) => (n(), m(t(R), {
85
+ default: c(() => [
86
+ (n(!0), f(g, null, w(e.lazyOperations, (o) => (n(), m(t(R), {
86
87
  key: `${o.httpVerb}-${o.operationId}`,
87
88
  collection: t(O),
88
89
  layout: r.layout,
@@ -91,58 +92,63 @@ const he = /* @__PURE__ */ D({
91
92
  }, null, 8, ["collection", "layout", "server", "transformedOperation"]))), 128))
92
93
  ]),
93
94
  _: 2
94
- }, 1032, ["spec", "tag"])) : w("", !0)
95
+ }, 1032, ["spec", "tag"])) : T("", !0)
95
96
  ], 64))), 128)),
96
- y.value.length ? (n(), m(t(U), { key: 0 }, {
97
- default: p(() => [
98
- (n(!0), f(g, null, k(y.value, (e) => (n(), m(t(X), {
97
+ I.value.length ? (n(), m(t(U), { key: 0 }, {
98
+ default: c(() => [
99
+ (n(!0), f(g, null, w(I.value, (e) => (n(), m(t(X), {
99
100
  key: e,
100
101
  label: e
101
102
  }, {
102
- default: p(() => {
103
+ default: c(() => {
103
104
  var u;
104
105
  return [
105
- (u = t(h)(r.parsedSpec)) != null && u[e] ? (n(), m(t(Y), { key: 0 }, {
106
- default: p(() => {
106
+ (u = t(S)(r.parsedSpec)) != null && u[e] ? (n(), m(t(Y), { key: 0 }, {
107
+ default: c(() => {
107
108
  var o;
108
109
  return [
109
- C(t(Z), { level: 2 }, {
110
- default: p(() => [
111
- C(t(ee), {
110
+ h(t(Z), null, {
111
+ default: c(() => [
112
+ h(t(ee), {
112
113
  id: t(z)({ name: e })
113
114
  }, {
114
- default: p(() => {
115
- var c;
116
- return [
117
- H(P(((c = t(h)(r.parsedSpec)) == null ? void 0 : c[e]).title ?? e), 1)
118
- ];
119
- }),
115
+ default: c(() => [
116
+ h(t(te), { level: 2 }, {
117
+ default: c(() => {
118
+ var d;
119
+ return [
120
+ F(P(((d = t(S)(r.parsedSpec)) == null ? void 0 : d[e]).title ?? e), 1)
121
+ ];
122
+ }),
123
+ _: 2
124
+ }, 1024)
125
+ ]),
120
126
  _: 2
121
127
  }, 1032, ["id"])
122
128
  ]),
123
129
  _: 2
124
130
  }, 1024),
125
- C(t(te), {
131
+ h(t(oe), {
126
132
  name: e,
127
133
  noncollapsible: "",
128
- value: (o = t(h)(r.parsedSpec)) == null ? void 0 : o[e]
134
+ value: (o = t(S)(r.parsedSpec)) == null ? void 0 : o[e]
129
135
  }, null, 8, ["name", "value"])
130
136
  ];
131
137
  }),
132
138
  _: 2
133
- }, 1024)) : w("", !0)
139
+ }, 1024)) : T("", !0)
134
140
  ];
135
141
  }),
136
142
  _: 2
137
143
  }, 1032, ["label"]))), 128))
138
144
  ]),
139
145
  _: 1
140
- })) : w("", !0)
146
+ })) : T("", !0)
141
147
  ], 2)), [
142
- [q, _.value]
148
+ [q, C.value]
143
149
  ]);
144
150
  }
145
151
  });
146
152
  export {
147
- he as default
153
+ ye as default
148
154
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Models.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/Models.vue"],"names":[],"mappings":"AAwGA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAgB9E,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;CACZ,CAAC;;AAiLF,wBAMG"}
1
+ {"version":3,"file":"Models.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/Models.vue"],"names":[],"mappings":"AAkHA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAiB9E,KAAK,WAAW,GAAG;IACjB,OAAO,CAAC,EACJ,SAAS,CAAC,iBAAiB,GAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,YAAY,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,YAAY,CAAC,GACxC,OAAO,CAAA;CACZ,CAAC;;AAoMF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Models.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7c1cd4b4"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c7c5f295"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };