@scalar/api-reference 1.25.122 → 1.25.123

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 +57 -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 +21532 -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 +15 -14
@@ -1,71 +1,85 @@
1
- import { defineComponent as v, computed as c, openBlock as a, createBlock as i, unref as e, withCtx as t, createVNode as l, createTextVNode as k, createElementVNode as y, normalizeClass as M, createElementBlock as b, Fragment as N, renderList as g, createCommentVNode as u } from "vue";
2
- import { ScalarErrorBoundary as C } from "@scalar/components";
3
- import L from "../../ShowMoreButton.vue.js";
4
- import B from "../../Section/SectionContainer.vue.js";
5
- import I from "../../Section/Section.vue.js";
6
- import w from "../../Section/SectionHeader.vue.js";
7
- import f from "../Lazy/Lazy.vue2.js";
8
- import E from "../../Section/CompactSection.vue.js";
9
- import H from "../Schema/SchemaHeading.vue.js";
10
- import O from "../Schema/Schema.vue.js";
11
- import { useSidebar as V } from "../../../hooks/useSidebar.js";
12
- import { useNavState as z } from "../../../hooks/useNavState.js";
13
- const p = 10, J = /* @__PURE__ */ v({
1
+ import { defineComponent as y, useId as k, computed as u, openBlock as s, createBlock as i, unref as e, withCtx as l, createVNode as o, createTextVNode as M, createElementVNode as g, normalizeClass as I, createElementBlock as N, Fragment as C, renderList as L, createCommentVNode as f } from "vue";
2
+ import { ScalarErrorBoundary as B } from "@scalar/components";
3
+ import H from "../../ShowMoreButton.vue.js";
4
+ import w from "../../Section/SectionContainer.vue.js";
5
+ import E from "../../Section/Section.vue.js";
6
+ import O from "../../Section/SectionHeader.vue.js";
7
+ import p from "../../Section/SectionHeaderTag.vue.js";
8
+ import h from "../Lazy/Lazy.vue2.js";
9
+ import V from "../../Section/CompactSection.vue.js";
10
+ import z from "../Schema/SchemaHeading.vue.js";
11
+ import A from "../Schema/Schema.vue.js";
12
+ import { useSidebar as T } from "../../../hooks/useSidebar.js";
13
+ import { useNavState as j } from "../../../hooks/useNavState.js";
14
+ const S = 10, R = /* @__PURE__ */ y({
14
15
  __name: "Models",
15
16
  props: {
16
17
  schemas: {}
17
18
  },
18
- setup(h) {
19
- const d = h, { collapsedSidebarItems: S } = V(), { getModelId: s } = z(), m = c(
20
- () => Object.keys(d.schemas ?? {}).length <= p || S[s()]
21
- ), _ = c(() => {
22
- const r = Object.keys(d.schemas ?? {});
23
- return m.value ? r : r.slice(0, p);
19
+ setup(_) {
20
+ const m = _, n = k(), { collapsedSidebarItems: v } = T(), { getModelId: a } = j(), d = u(
21
+ () => Object.keys(m.schemas ?? {}).length <= S || v[a()]
22
+ ), b = u(() => {
23
+ const r = Object.keys(m.schemas ?? {});
24
+ return d.value ? r : r.slice(0, S);
24
25
  });
25
- return (r, n) => r.schemas ? (a(), i(e(B), {
26
+ return (r, c) => r.schemas ? (s(), i(e(w), {
26
27
  key: 0,
27
28
  id: "models"
28
29
  }, {
29
- default: t(() => [
30
- l(e(I), null, {
31
- default: t(() => [
32
- l(e(w), { level: 2 }, {
33
- default: t(() => n[0] || (n[0] = [
34
- k("Models")
35
- ])),
30
+ default: l(() => [
31
+ o(e(E), { "aria-labelledby": e(n) }, {
32
+ default: l(() => [
33
+ o(e(O), null, {
34
+ default: l(() => [
35
+ o(e(p), {
36
+ id: e(n),
37
+ level: 2
38
+ }, {
39
+ default: l(() => c[0] || (c[0] = [
40
+ M(" Models ")
41
+ ])),
42
+ _: 1
43
+ }, 8, ["id"])
44
+ ]),
36
45
  _: 1
37
46
  }),
38
- l(e(f), {
47
+ o(e(h), {
39
48
  id: "models",
40
49
  isLazy: !1
41
50
  }),
42
- y("div", {
43
- class: M(["models-list", { "models-list-truncated": !m.value }])
51
+ g("div", {
52
+ class: I(["models-list", { "models-list-truncated": !d.value }])
44
53
  }, [
45
- (a(!0), b(N, null, g(_.value, (o) => (a(), i(e(f), {
46
- id: e(s)({ name: o }),
47
- key: o,
54
+ (s(!0), N(C, null, L(b.value, (t) => (s(), i(e(h), {
55
+ id: e(a)({ name: t }),
56
+ key: t,
48
57
  isLazy: ""
49
58
  }, {
50
- default: t(() => [
51
- l(e(E), {
52
- id: e(s)({ name: o }),
59
+ default: l(() => [
60
+ o(e(V), {
61
+ id: e(a)({ name: t }),
53
62
  class: "models-list-item",
54
- label: o
63
+ label: t
55
64
  }, {
56
- heading: t(() => [
57
- l(e(H), {
58
- name: o,
59
- value: r.schemas[o]
60
- }, null, 8, ["name", "value"])
65
+ heading: l(() => [
66
+ o(e(p), { level: 3 }, {
67
+ default: l(() => [
68
+ o(e(z), {
69
+ name: t,
70
+ value: r.schemas[t]
71
+ }, null, 8, ["name", "value"])
72
+ ]),
73
+ _: 2
74
+ }, 1024)
61
75
  ]),
62
- default: t(() => [
63
- l(e(C), null, {
64
- default: t(() => [
65
- l(e(O), {
76
+ default: l(() => [
77
+ o(e(B), null, {
78
+ default: l(() => [
79
+ o(e(A), {
66
80
  hideHeading: !0,
67
81
  noncollapsible: "",
68
- value: r.schemas[o]
82
+ value: r.schemas[t]
69
83
  }, null, 8, ["value"])
70
84
  ]),
71
85
  _: 2
@@ -77,19 +91,19 @@ const p = 10, J = /* @__PURE__ */ v({
77
91
  _: 2
78
92
  }, 1032, ["id"]))), 128))
79
93
  ], 2),
80
- m.value ? u("", !0) : (a(), i(L, {
94
+ d.value ? f("", !0) : (s(), i(H, {
81
95
  key: 0,
82
- id: e(s)(),
96
+ id: e(a)(),
83
97
  class: "show-more-models"
84
98
  }, null, 8, ["id"]))
85
99
  ]),
86
100
  _: 1
87
- })
101
+ }, 8, ["aria-labelledby"])
88
102
  ]),
89
103
  _: 1
90
- })) : u("", !0);
104
+ })) : f("", !0);
91
105
  }
92
106
  });
93
107
  export {
94
- J as default
108
+ R as default
95
109
  };
@@ -1 +1 @@
1
- {"version":3,"file":"ModelsAccordion.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/ModelsAccordion.vue"],"names":[],"mappings":"AAkGA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAc9E,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;;AA4JF,wBAMG"}
1
+ {"version":3,"file":"ModelsAccordion.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Models/ModelsAccordion.vue"],"names":[],"mappings":"AAqGA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAe9E,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;;AAqKF,wBAMG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./ModelsAccordion.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-4396a256"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-7dbbcdb5"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -1,79 +1,85 @@
1
- import { defineComponent as A, computed as C, openBlock as t, createBlock as c, unref as e, withCtx as o, createVNode as d, createTextVNode as N, createElementBlock as s, Fragment as v, renderList as k, createCommentVNode as g } from "vue";
1
+ import { defineComponent as x, computed as A, openBlock as t, createBlock as c, unref as e, withCtx as o, createVNode as n, createTextVNode as C, createElementBlock as u, Fragment as v, renderList as k, createCommentVNode as N } from "vue";
2
2
  import y from "../../Section/SectionContainerAccordion.vue.js";
3
3
  import B from "../../Section/SectionHeader.vue.js";
4
- import M from "../../Section/SectionAccordion.vue.js";
5
- import V from "../../Anchor/Anchor.vue.js";
4
+ import H from "../../Section/SectionAccordion.vue.js";
5
+ import M from "../../Anchor/Anchor.vue.js";
6
+ import V from "../../Section/SectionHeaderTag.vue.js";
6
7
  import j from "../Schema/SchemaHeading.vue.js";
7
8
  import S from "../Schema/SchemaProperty.vue.js";
8
- import { useNavState as H } from "../../../hooks/useNavState.js";
9
- const O = {
9
+ import { useNavState as O } from "../../../hooks/useNavState.js";
10
+ const T = {
10
11
  key: 0,
11
12
  class: "properties"
12
- }, h = { key: 1 }, D = /* @__PURE__ */ A({
13
+ }, h = { key: 1 }, J = /* @__PURE__ */ x({
13
14
  __name: "ModelsAccordion",
14
15
  props: {
15
16
  schemas: {}
16
17
  },
17
18
  setup(b) {
18
- const u = b, q = C(() => u.schemas ? Object.entries(u.schemas).map(([m, n]) => ({
19
+ const s = b, g = A(() => s.schemas ? Object.entries(s.schemas).map(([m, i]) => ({
19
20
  name: m,
20
- schema: n
21
- })) : []), { getModelId: a } = H();
22
- return (m, n) => u.schemas ? (t(), c(e(y), {
21
+ schema: i
22
+ })) : []), { getModelId: a } = O();
23
+ return (m, i) => s.schemas ? (t(), c(e(y), {
23
24
  key: 0,
24
25
  class: "reference-models"
25
26
  }, {
26
27
  title: o(() => [
27
- d(e(B), { level: 2 }, {
28
- default: o(() => n[0] || (n[0] = [
29
- N("Models")
28
+ n(e(B), { level: 2 }, {
29
+ default: o(() => i[0] || (i[0] = [
30
+ C("Models")
30
31
  ])),
31
32
  _: 1
32
33
  })
33
34
  ]),
34
35
  default: o(() => [
35
- (t(!0), s(v, null, k(q.value, ({ name: l, schema: r }) => (t(), c(e(M), {
36
+ (t(!0), u(v, null, k(g.value, ({ name: l, schema: r }) => (t(), c(e(H), {
36
37
  id: e(a)({ name: l }),
37
38
  key: l,
38
39
  label: l
39
40
  }, {
40
41
  title: o(() => [
41
- d(e(V), {
42
+ n(e(M), {
42
43
  id: e(a)({ name: l }),
43
44
  class: "reference-models-anchor"
44
45
  }, {
45
46
  default: o(() => [
46
- d(e(j), {
47
- class: "reference-models-label",
48
- name: l,
49
- value: r
50
- }, null, 8, ["name", "value"])
47
+ n(e(V), { level: 3 }, {
48
+ default: o(() => [
49
+ n(e(j), {
50
+ class: "reference-models-label",
51
+ name: l,
52
+ value: r
53
+ }, null, 8, ["name", "value"])
54
+ ]),
55
+ _: 2
56
+ }, 1024)
51
57
  ]),
52
58
  _: 2
53
59
  }, 1032, ["id"])
54
60
  ]),
55
61
  default: o(() => [
56
- r != null && r.properties ? (t(), s("div", O, [
57
- (t(!0), s(v, null, k(Object.entries(r.properties), ([i, x]) => {
58
- var p, f, _;
62
+ r != null && r.properties ? (t(), u("div", T, [
63
+ (t(!0), u(v, null, k(Object.entries(r.properties), ([d, q]) => {
64
+ var f, p, _;
59
65
  return t(), c(e(S), {
60
- key: i,
61
- name: i,
62
- required: ((p = r.required) == null ? void 0 : p.includes(i)) || ((_ = (f = r.properties) == null ? void 0 : f[i]) == null ? void 0 : _.required) === !0,
63
- value: x
66
+ key: d,
67
+ name: d,
68
+ required: ((f = r.required) == null ? void 0 : f.includes(d)) || ((_ = (p = r.properties) == null ? void 0 : p[d]) == null ? void 0 : _.required) === !0,
69
+ value: q
64
70
  }, null, 8, ["name", "required", "value"]);
65
71
  }), 128))
66
- ])) : (t(), s("div", h, [
67
- d(e(S), { value: r }, null, 8, ["value"])
72
+ ])) : (t(), u("div", h, [
73
+ n(e(S), { value: r }, null, 8, ["value"])
68
74
  ]))
69
75
  ]),
70
76
  _: 2
71
77
  }, 1032, ["id", "label"]))), 128))
72
78
  ]),
73
79
  _: 1
74
- })) : g("", !0);
80
+ })) : N("", !0);
75
81
  }
76
82
  });
77
83
  export {
78
- D as default
84
+ J as default
79
85
  };
@@ -1 +1 @@
1
- {"version":3,"file":"optimizeValueForDisplay.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/optimizeValueForDisplay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAExD,eAAO,MAAM,cAAc,UAAqC,CAAA;AAEhE;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,aAAa,GAAG,SAAS,GAC/B,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAwDjC"}
1
+ {"version":3,"file":"optimizeValueForDisplay.d.ts","sourceRoot":"","sources":["../../../../../src/components/Content/Schema/helpers/optimizeValueForDisplay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAExD,eAAO,MAAM,cAAc,UAAqC,CAAA;AAEhE;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,aAAa,GAAG,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAqDzG"}
@@ -2,6 +2,7 @@ import type { Tag } from '@scalar/types/legacy';
2
2
  type __VLS_Props = {
3
3
  id?: string;
4
4
  tag: Tag;
5
+ headerId?: string;
5
6
  isCollapsed?: boolean;
6
7
  };
7
8
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1 +1 @@
1
- {"version":3,"file":"Endpoints.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Endpoints.vue"],"names":[],"mappings":"AA6IA,OAAO,KAAK,EAAE,GAAG,EAAwB,MAAM,sBAAsB,CAAA;AAkBrE,KAAK,WAAW,GAAG;IAAE,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,GAAG,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;;AAgOpE,wBAOG"}
1
+ {"version":3,"file":"Endpoints.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Endpoints.vue"],"names":[],"mappings":"AA6JA,OAAO,KAAK,EAAE,GAAG,EAAwB,MAAM,sBAAsB,CAAA;AAqBrE,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,GAAG,CAAA;IACR,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,CAAC;;AA4PF,wBAOG"}
@@ -1,7 +1,7 @@
1
1
  import o from "./Endpoints.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-cfef28a1"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f24da23a"]]);
5
5
  export {
6
- a as default
6
+ f as default
7
7
  };
@@ -1,56 +1,73 @@
1
- import { defineComponent as v, computed as y, openBlock as n, createBlock as f, unref as e, withCtx as a, createVNode as o, createTextVNode as m, toDisplayString as p, createElementVNode as c, createElementBlock as g, Fragment as N, renderList as b, withModifiers as V, normalizeClass as w, createCommentVNode as B } from "vue";
2
- import { isOperationDeprecated as E } from "../../../helpers/operation.js";
3
- import { ScalarMarkdown as I } from "@scalar/components";
4
- import $ from "../../ScreenReader.vue.js";
5
- import H from "../../Section/Section.vue.js";
1
+ import { defineComponent as b, computed as I, openBlock as n, createBlock as s, unref as e, withCtx as a, createVNode as o, createTextVNode as d, toDisplayString as i, createCommentVNode as f, createElementVNode as c, createElementBlock as C, Fragment as H, renderList as V, withModifiers as w, normalizeClass as B } from "vue";
2
+ import { ScalarMarkdown as E } from "@scalar/components";
3
+ import { isOperationDeprecated as T } from "../../../helpers/operation.js";
4
+ import h from "../../ScreenReader.vue.js";
5
+ import $ from "../../Section/Section.vue.js";
6
6
  import O from "../../Section/SectionHeader.vue.js";
7
- import T from "../../Anchor/Anchor.vue.js";
8
- import D from "../../Section/SectionContent.vue.js";
9
- import M from "../../Section/SectionColumns.vue.js";
10
- import C from "../../Section/SectionColumn.vue.js";
11
- import z from "../../Card/Card.vue.js";
12
- import A from "../../Card/CardHeader.vue.js";
13
- import F from "../../Card/CardContent.vue.js";
14
- import L from "../../HttpMethod/HttpMethod.vue.js";
15
- import { useNavState as R } from "../../../hooks/useNavState.js";
16
- import { useSidebar as U } from "../../../hooks/useSidebar.js";
17
- const j = ["aria-label"], q = ["href", "onClick"], se = /* @__PURE__ */ v({
7
+ import D from "../../Anchor/Anchor.vue.js";
8
+ import k from "../../Section/SectionHeaderTag.vue.js";
9
+ import M from "../../Section/SectionContent.vue.js";
10
+ import z from "../../Section/SectionColumns.vue.js";
11
+ import S from "../../Section/SectionColumn.vue.js";
12
+ import A from "../../Card/Card.vue.js";
13
+ import F from "../../Card/CardHeader.vue.js";
14
+ import L from "../../Card/CardContent.vue.js";
15
+ import R from "../../HttpMethod/HttpMethod.vue.js";
16
+ import { useNavState as U } from "../../../hooks/useNavState.js";
17
+ import { useSidebar as j } from "../../../hooks/useSidebar.js";
18
+ const q = ["aria-label"], G = ["href", "onClick"], ie = /* @__PURE__ */ b({
18
19
  __name: "Endpoints",
19
20
  props: {
20
21
  id: {},
21
22
  tag: {},
23
+ headerId: {},
22
24
  isCollapsed: { type: Boolean }
23
25
  },
24
- setup(h) {
25
- const s = h, { getOperationId: i, getTagId: _ } = R(), { scrollToOperation: S } = U(), d = y(() => s.tag["x-displayName"] ?? s.tag.name), k = async (t) => {
26
- const l = i(t, s.tag);
27
- S(l);
26
+ setup(v) {
27
+ const m = v, { getOperationId: p, getTagId: y } = U(), { scrollToOperation: _ } = j(), u = I(() => m.tag["x-displayName"] ?? m.tag.name), N = async (t) => {
28
+ const r = p(t, m.tag);
29
+ _(r);
28
30
  };
29
- return (t, l) => (n(), f(e(H), {
31
+ return (t, r) => (n(), s(e($), {
30
32
  id: t.id,
31
- label: t.tag.name.toUpperCase()
33
+ label: t.tag.name.toUpperCase(),
34
+ role: "none"
32
35
  }, {
33
36
  default: a(() => [
34
- o(e(O), { level: 2 }, {
37
+ o(e(O), null, {
35
38
  default: a(() => [
36
- o(e(T), {
37
- id: e(_)(t.tag)
39
+ o(e(D), {
40
+ id: e(y)(t.tag)
38
41
  }, {
39
42
  default: a(() => [
40
- m(p(d.value), 1)
43
+ o(e(k), {
44
+ id: t.headerId,
45
+ level: 2
46
+ }, {
47
+ default: a(() => [
48
+ d(i(u.value) + " ", 1),
49
+ t.isCollapsed ? (n(), s(h, { key: 0 }, {
50
+ default: a(() => r[0] || (r[0] = [
51
+ d(" (Collapsed)")
52
+ ])),
53
+ _: 1
54
+ })) : f("", !0)
55
+ ]),
56
+ _: 1
57
+ }, 8, ["id"])
41
58
  ]),
42
59
  _: 1
43
60
  }, 8, ["id"])
44
61
  ]),
45
62
  _: 1
46
63
  }),
47
- o(e(D), null, {
64
+ o(e(M), null, {
48
65
  default: a(() => [
49
- o(e(M), null, {
66
+ o(e(z), null, {
50
67
  default: a(() => [
51
- o(e(C), null, {
68
+ o(e(S), null, {
52
69
  default: a(() => [
53
- o(e(I), {
70
+ o(e(E), {
54
71
  clamp: t.isCollapsed ? "7" : !1,
55
72
  value: t.tag.description,
56
73
  withImages: ""
@@ -58,62 +75,72 @@ const j = ["aria-label"], q = ["href", "onClick"], se = /* @__PURE__ */ v({
58
75
  ]),
59
76
  _: 1
60
77
  }),
61
- o(e(C), null, {
78
+ o(e(S), null, {
62
79
  default: a(() => {
63
- var u;
80
+ var g;
64
81
  return [
65
- ((u = t.tag.operations) == null ? void 0 : u.length) > 0 ? (n(), f(e(z), {
82
+ ((g = t.tag.operations) == null ? void 0 : g.length) > 0 ? (n(), s(e(A), {
66
83
  key: 0,
67
84
  class: "scalar-card-sticky"
68
85
  }, {
69
86
  default: a(() => [
70
- o(e(A), { muted: "" }, {
87
+ o(e(F), { muted: "" }, {
71
88
  default: a(() => [
72
- o($, null, {
89
+ o(h, null, {
73
90
  default: a(() => [
74
- m(p(d.value), 1)
91
+ d(i(u.value), 1)
75
92
  ]),
76
93
  _: 1
77
94
  }),
78
- l[0] || (l[0] = m(" Endpoints "))
95
+ r[1] || (r[1] = d(" Endpoints "))
79
96
  ]),
80
97
  _: 1
81
98
  }),
82
- o(e(F), {
99
+ o(e(L), {
83
100
  class: "custom-scroll",
84
101
  muted: ""
85
102
  }, {
86
103
  default: a(() => [
87
104
  c("ul", {
88
- "aria-label": `${d.value} endpoints`,
105
+ "aria-label": `${u.value} endpoints`,
89
106
  class: "endpoints"
90
107
  }, [
91
- (n(!0), g(N, null, b(t.tag.operations, (r) => (n(), g("li", {
92
- key: e(i)(r, t.tag),
108
+ (n(!0), C(H, null, V(t.tag.operations, (l) => (n(), C("li", {
109
+ key: e(p)(l, t.tag),
93
110
  class: "contents"
94
111
  }, [
112
+ t.isCollapsed ? (n(), s(e(k), {
113
+ key: 0,
114
+ class: "sr-only",
115
+ level: 3
116
+ }, {
117
+ default: a(() => [
118
+ d(i(l.name) + " (Hidden) ", 1)
119
+ ]),
120
+ _: 2
121
+ }, 1024)) : f("", !0),
95
122
  c("a", {
96
123
  class: "endpoint",
97
- href: `#${e(i)(r, t.tag)}`,
98
- onClick: V((G) => k(r), ["prevent"])
124
+ href: `#${e(p)(l, t.tag)}`,
125
+ onClick: w((J) => N(l), ["prevent"])
99
126
  }, [
100
- o(e(L), {
101
- method: r.httpVerb
127
+ o(e(R), {
128
+ method: l.httpVerb
102
129
  }, null, 8, ["method"]),
103
130
  c("span", {
104
- class: w(["endpoint-path", {
105
- deprecated: e(E)(r)
131
+ class: B(["endpoint-path", {
132
+ deprecated: e(T)(l)
106
133
  }])
107
- }, p(r.path), 3)
108
- ], 8, q)
134
+ }, i(l.path), 3)
135
+ ], 8, G)
109
136
  ]))), 128))
110
- ], 8, j)
137
+ ], 8, q)
111
138
  ]),
112
139
  _: 1
113
140
  })
114
141
  ]),
115
142
  _: 1
116
- })) : B("", !0)
143
+ })) : f("", !0)
117
144
  ];
118
145
  }),
119
146
  _: 1
@@ -130,5 +157,5 @@ const j = ["aria-label"], q = ["href", "onClick"], se = /* @__PURE__ */ v({
130
157
  }
131
158
  });
132
159
  export {
133
- se as default
160
+ ie as default
134
161
  };
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Tag.vue"],"names":[],"mappings":"AAqEA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAY,QAAQ,EAAO,MAAM,KAAK,CAAA;AAS7C,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,GAAG,CAAA;IACR,IAAI,EAAE,IAAI,CAAA;CACX,CAAC;AA8BF,iBAAS,cAAc;WAyFT,OAAO,IAA6B;;yBAVpB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA2Ds2hB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;EA5C5/hB;AAkBD,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":"Tag.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Content/Tag/Tag.vue"],"names":[],"mappings":"AA0EA,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAY,QAAQ,EAAc,MAAM,KAAK,CAAA;AASpD,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,GAAG,CAAA;IACR,IAAI,EAAE,IAAI,CAAA;CACX,CAAC;AAgCF,iBAAS,cAAc;WAyFT,OAAO,IAA6B;;yBAVpB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4Dk/gB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;EA7CxohB;AAmBD,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 "./Tag.vue2.js";
2
2
  /* empty css */
3
- import a from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ a(o, [["__scopeId", "data-v-d47a803a"]]);
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3a840364"]]);
5
5
  export {
6
6
  p as default
7
7
  };